/* ============================================================
   Legal pages — Privacy, Terms, Cookies, Accessibility
   - Mobile-first; all values reference brand tokens
   ============================================================ */

/* ---------- Hero band ---------- */
.legal-hero {
    padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
    background:
        radial-gradient(120% 80% at 50% 0%, #0E2A4D 0%, #061629 60%, #03101F 100%);
    color: #E8EEF7;
}
.legal-hero__inner { max-width: 760px; }
.legal-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent-light);
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.legal-hero__title {
    color: #FFFFFF;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.legal-hero__meta {
    color: #9BB0CC;
    font-size: var(--text-sm);
    margin: 0;
}

/* ---------- Article body ---------- */
.legal {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
    background: var(--color-bg);
}
.legal__inner {
    max-width: 760px;
}
.legal__lede {
    font-size: var(--text-base);
    color: var(--color-text);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-divider);
}
.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 2.25rem 0 0.75rem;
    scroll-margin-top: 88px;
}
.legal h2:first-of-type { margin-top: 0.5rem; }
.legal p {
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal a { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal a:hover { color: var(--color-primary-dark); }
[data-theme="dark"] .legal a:hover { color: var(--color-primary-light); }

.legal__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding-left: 0;
}
.legal__list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.6;
}
.legal__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
}

.legal code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 0.1em 0.4em;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

/* ---------- Cookies table ---------- */
.legal__table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}
.legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 540px;
}
.legal__table th,
.legal__table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-divider);
}
.legal__table thead th {
    background: var(--color-surface-alt);
    color: var(--color-primary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.legal__table tbody tr:last-child th,
.legal__table tbody tr:last-child td { border-bottom: 0; }
.legal__table tbody th {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

/* ---------- Footnote ---------- */
.legal__footnote {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-divider);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-style: italic;
}
