/* ═══════════════════════════════════════════════════════════════════
   Legal documents — Terms and Privacy
   ═══════════════════════════════════════════════════════════════════
   Four pages, two documents, two languages, one stylesheet.

   What this replaces was an inline <style> block repeated in each file
   with the colours written in: a #0a1f1f card, #00d9ff headings, #8892a6
   body text. A dark card sat in the middle of a light page and neither
   theme could correct it, because none of it passed through a token.

   These are documents, so they are set as documents: one measured column,
   a readable line length, headings that separate rather than shout.
   ═══════════════════════════════════════════════════════════════════ */

.legal-document {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
    color: var(--hub-ink);
}

.legal-document h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.legal-document .subtitle {
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hub-hairline);
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--hub-ink-muted);
}

.legal-document .subtitle strong { color: var(--hub-ink); font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────── */

.legal-document h2 {
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--hub-hairline);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-wrap: balance;
}

.legal-document h3 {
    margin: 1.75rem 0 0.6rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hub-ink);
}

.legal-document p,
.legal-document li {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--hub-ink-muted);
}

.legal-document p { margin: 0 0 0.9rem; }

.legal-document ul,
.legal-document ol {
    margin: 0 0 1.1rem;
    padding-left: 1.35rem;
}

.legal-document li { margin-bottom: 0.5rem; }

.legal-document strong { color: var(--hub-ink); font-weight: 700; }

.legal-document a {
    color: var(--hub-accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-document a:hover { text-decoration-thickness: 2px; }

/* ── The summary and closing boxes ───────────────────────────────
   The one place a fill earns its keep: it marks the plain-language
   summary as not being part of the numbered text. */

.legal-document .info-box {
    margin: 0 0 2rem;
    padding: 1.1rem 1.25rem 0.35rem;
    border: 1px solid var(--hub-hairline);
    border-left: 3px solid var(--hub-accent);
    border-radius: 0 10px 10px 0;
    background: rgb(var(--hub-accent-rgb) / 0.06);
}

.legal-document .info-box p { font-size: 0.9rem; }
.legal-document .info-box p:last-child { margin-bottom: 0.75rem; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .legal-document { padding: 2rem 1.15rem 0.5rem; }
    .legal-document p,
    .legal-document li { font-size: 0.9rem; }
    .legal-document h2 { margin-top: 2.25rem; font-size: 1.08rem; }
}
