/* Shared styles for legal/info pages */

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.page-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.page-content section {
    margin-top: 2rem;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.page-content p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.page-content ul {
    color: #94a3b8;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content li {
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.page-content a {
    color: #60a5fa;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

nav .active {
    color: #fff;
}

/* Contact form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    background: #161625;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #475569;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.success-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    margin-top: 2rem;
    background: #161625;
    border-radius: 16px;
    border: 1px solid #2a2a4a;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-message h2 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #94a3b8;
}

@media (max-width: 600px) {
    .page-content {
        padding: 1.5rem 1rem 2.5rem;
    }

    .page-content h1 {
        font-size: 1.5rem;
    }

    .page-content h2 {
        font-size: 1.1rem;
    }

    .page-content p,
    .page-content li {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 0.7rem 0.8rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .success-message {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 400px) {
    .page-content {
        padding: 1.2rem 0.8rem 2rem;
    }

    .page-content h1 {
        font-size: 1.3rem;
    }

    .page-content h2 {
        font-size: 1rem;
    }
}
