/* ============================================================
   LEGAL PAGES (privacy-policy, terms-of-use)
   Uses the landing palette from main.css (--brand-color, --font-*).
   ============================================================ */

.legal-page {
    background-color: #F7F9FA;
}

.legal-wrap {
    padding: 2.5rem 0 4rem;
}

.legal-content {
    background: var(--main-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(20, 40, 55, 0.07);
    padding: 2.25rem 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .legal-content {
        padding: 3.25rem 3rem;
    }
}

.legal-content h1 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.25;
    color: #1b2f3e;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-color);
}

@media (min-width: 1024px) {
    .legal-content h1 {
        font-size: 2.3rem;
    }
}

.legal-content h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--brand-color);
    margin: 2.1rem 0 0.8rem;
}

.legal-content h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    color: #1b2f3e;
    margin: 1.4rem 0 0.6rem;
}

.legal-content p,
.legal-content li {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.75;
    color: #3c424a;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.4rem;
    margin: 0 0 1.25rem;
}

.legal-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #1b2f3e;
    font-weight: 700;
}

.legal-content a {
    color: var(--brand-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: #3c7b96;
}

.legal-content > *:first-child {
    margin-top: 0;
}

.legal-updated {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: #6b7480;
    margin-bottom: 1.75rem;
}

/* Header/footer trimmings shared with the landing */
.legal-page .header h1 {
    font-size: 1.6rem;
}

.legal-page .header h1 a {
    color: inherit;
}

.legal-page .footer {
    background-color: var(--main-bg-color);
}

@media (max-width: 780px) {
    .legal-page .footer .container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .legal-page .footer-policies a {
        margin: 0 0.75rem;
    }
}
