/* =====================================================
   Legal pages (Terms of Service / Privacy Policy)
   Reuses the site-theme CSS variables (--site-primary,
   --site-navy, etc.) defined in site-theme.css so these
   pages stay visually consistent with the rest of the
   public marketing site.
   ===================================================== */

.legal-hero {
    background-color: var(--site-navy);
    color: #fff;
    padding: 3.5rem 0 2.75rem;
    text-align: center;
}

.legal-hero h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: #fff;
}

.legal-hero .legal-effective-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.legal-hero .legal-effective-date strong {
    color: #fff;
}

.legal-page-section {
    background: var(--ba-surface-alt);
    padding: 2.5rem 0 4rem;
}

.legal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 27, 45, 0.06);
    padding: 2.5rem;
}

@media (max-width: 767.98px) {
    .legal-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

.legal-content {
    color: var(--ba-text-700);
    line-height: 1.75;
    font-size: 1rem;
}

.legal-content h2 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--site-navy);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ba-border-soft);
}

.legal-content h2:first-of-type {
    margin-top: 0.5rem;
}

.legal-content h3 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--site-navy);
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}

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

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--site-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.legal-content hr {
    margin: 2rem 0;
    border-color: var(--ba-border-soft);
}

.legal-intro {
    font-size: 1.05rem;
    color: var(--ba-text-600);
}

/* Simple in-page table of contents / jump nav, optional on wider screens */
.legal-toc {
    background: var(--ba-surface-alt);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.legal-toc h6 {
    font-weight: 700;
    color: var(--site-navy);
    margin-bottom: 0.75rem;
}

.legal-toc ol {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.legal-toc a {
    color: var(--ba-text-600);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--site-primary);
}

@media (max-width: 575.98px) {
    .legal-toc ol {
        columns: 1;
    }
}
