/* =========================================================
   Legal / Info pages (Privacy, TnC, MemberTnC, Copyright, Disclaimer)
   Shared cinematic design system — matches FAQ page
   Display font: Archivo  |  Body font: Roboto
   ========================================================= */

.legal-page {
    --lp-bg: #0d0d0f;
    --lp-surface: #16161a;
    --lp-surface-2: #1c1c22;
    --lp-border: rgba(255, 255, 255, 0.06);
    --lp-border-strong: rgba(255, 255, 255, 0.12);
    --lp-text: #e8e8ea;
    --lp-muted: #8a8a92;
    --lp-accent: #00a8ff;
    --lp-accent-soft: rgba(0, 168, 255, 0.12);
    --lp-gold: #f5c518;

    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Roboto', sans-serif;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(0,168,255,0.18), transparent 60%),
        radial-gradient(700px 500px at -10% 20%, rgba(245,197,24,0.07), transparent 60%);
    pointer-events: none;
}

.legal-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Hero ---------- */
.legal-eyebrow {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    letter-spacing: .2em;
    font-size: 12px;
    color: var(--lp-accent);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}
.legal-eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--lp-accent);
    display: inline-block;
}

.legal-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(44px, 7vw, 96px);
    line-height: .95;
    margin: 0 0 22px;
    letter-spacing: -0.025em;
    color: var(--lp-text);
}
.legal-title em {
    font-style: normal;
    color: var(--lp-accent);
}

.legal-lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--lp-muted);
    max-width: 760px;
    margin: 0 0 32px;
}

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    letter-spacing: .15em;
    font-size: 11px;
    color: var(--lp-muted);
    margin-bottom: 48px;
    text-transform: uppercase;
}
.legal-meta::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-gold);
}

/* ---------- Table of contents (sticky bookmarks) ---------- */
.legal-toc-wrap {
    position: sticky;
    top: 88px;
    z-index: 10;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
    padding: 14px 0;
    margin: 0 0 48px;
}
.legal-toc {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--lp-border-strong) transparent;
}
.legal-toc::-webkit-scrollbar { height: 4px; }
.legal-toc::-webkit-scrollbar-thumb { background: var(--lp-border-strong); border-radius: 4px; }

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 11px 18px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .1em;
    color: var(--lp-text);
    background: transparent;
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    flex-shrink: 0;
    text-transform: uppercase;
}
.legal-chip .legal-chip-num {
    font-size: 10px;
    font-weight: 500;
    color: var(--lp-muted);
    letter-spacing: .05em;
    transition: color .25s ease;
}
.legal-chip:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}
.legal-chip:hover .legal-chip-num { color: var(--lp-accent); }
.legal-chip.is-active {
    background: var(--lp-accent);
    color: #001420;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 4px var(--lp-accent-soft);
}
.legal-chip.is-active .legal-chip-num { color: #001420; }

/* ---------- Prose / sections ---------- */
.legal-prose { max-width: 920px; }

.legal-section {
    margin-top: 72px;
    scroll-margin-top: 200px;
}
.legal-section:first-child { margin-top: 0; }

.legal-section-head {
    display: flex;
    align-items: baseline;
    gap: 22px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lp-border);
}
.legal-section-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    color: var(--lp-accent);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.legal-section-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--lp-text);
}

.legal-prose p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--lp-body, #c9c9d0);
    margin: 0 0 18px;
    text-align: justify;
}
.legal-prose p:last-child { margin-bottom: 0; }

.legal-prose strong { color: var(--lp-text); font-weight: 600; }
.legal-prose a {
    color: var(--lp-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,168,255,0.3);
    transition: border-color .2s ease;
}
.legal-prose a:hover { border-bottom-color: var(--lp-accent); }

/* subsection / inline heading */
.legal-subhead {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .1em;
    color: var(--lp-gold);
    margin: 28px 0 12px;
    text-transform: uppercase;
}

/* clause list (a., b., 1.1, etc.) */
.legal-clauses {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    counter-reset: none;
}
.legal-clauses > li {
    position: relative;
    padding: 10px 0 10px 52px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #c9c9d0;
    border-bottom: 1px dashed var(--lp-border);
}
.legal-clauses > li:last-child { border-bottom: 0; }
.legal-clauses > li .legal-clause-label {
    position: absolute;
    left: 0;
    top: 10px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--lp-accent);
    min-width: 44px;
}

/* simple bullet list */
.legal-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.legal-bullets li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #c9c9d0;
}
.legal-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 2px;
    background: var(--lp-accent);
}

/* contact card (Privacy Policy) */
.legal-contact {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 22px;
    padding: 24px 28px;
    margin: 20px 0;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    border-left: 3px solid var(--lp-accent);
    border-radius: 2px;
    font-size: 14.5px;
    line-height: 1.7;
}
.legal-contact dt {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--lp-muted);
    font-size: 11px;
    padding-top: 3px;
    text-transform: uppercase;
}
.legal-contact dd {
    margin: 0;
    color: var(--lp-text);
}

/* callout box (operator / company notice) */
.legal-callout {
    padding: 22px 26px;
    margin: 0 0 28px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    border-left: 3px solid var(--lp-gold);
    border-radius: 2px;
    font-size: 15px;
    line-height: 1.8;
    color: #c9c9d0;
}
.legal-callout ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.legal-callout ul li {
    position: relative;
    padding: 4px 0 4px 20px;
}
.legal-callout ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--lp-gold);
    font-size: 12px;
}

/* emphasis / helper */
.legal-prose em.legal-example {
    display: inline-block;
    margin-top: 6px;
    color: var(--lp-gold);
    font-style: normal;
    font-size: 13.5px;
    letter-spacing: .02em;
}

/* footer / closing strip */
.legal-footer-strip {
    margin-top: 96px;
    padding-top: 32px;
    border-top: 1px solid var(--lp-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    letter-spacing: .15em;
    font-size: 11px;
    color: var(--lp-muted);
    text-transform: uppercase;
}

/* responsive */
@media (max-width: 768px) {
    .legal-page { padding: 100px 0 80px; }
    .legal-section-head { flex-wrap: wrap; gap: 10px; }
    .legal-section-num { font-size: 32px; }
    .legal-section-title { font-size: 20px; }
    .legal-contact { grid-template-columns: 1fr; padding: 20px; }
    .legal-contact dt { padding-top: 10px; }
    .legal-contact dt:first-child { padding-top: 0; }
}
