/* ─── legal.css ────────────────────────────────────────────────────────────
   Shared styles for the long-form legal pages (/terms, /privacy). Sits on
   top of site.css for tokens, header, footer and buttons. Single-column,
   readable max-width, numbered sections.
   ─────────────────────────────────────────────────────────────────────── */

/* HERO ---------------------------------------------------------------- */
.lg-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 96px 24px 36px;
    text-align: center;
    position: relative;
}
.lg-hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(108, 99, 255, .12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.lg-hero > * { position: relative; z-index: 1; }
.lg-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(166, 128, 255, .08);
    border: 1px solid rgba(166, 128, 255, .25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 22px;
}
.lg-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -1.6px;
    line-height: 1.05;
    color: var(--head);
    margin: 0 0 18px;
}
.lg-hero h1 .grad {
    background: linear-gradient(135deg, var(--accent-2), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lg-hero p.lg-sub {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 22px;
}
.lg-meta {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 100px;
}

/* BODY layout --------------------------------------------------------- */
.lg-body {
    max-width: 820px;
    margin: 48px auto 96px;
    padding: 0 24px;
}

/* Section */
.lg-section { margin-bottom: 56px; }
.lg-section:last-of-type { margin-bottom: 0; }
.lg-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 10px;
    display: block;
}
.lg-title {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    letter-spacing: -.4px;
    color: var(--head);
    margin: 0 0 18px;
    line-height: 1.2;
}

/* Body text */
.lg-p {
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 14px;
    letter-spacing: .005em;
}
.lg-p:last-child { margin-bottom: 0; }
.lg-p strong { color: var(--head); font-weight: 600; }
.lg-link {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(166, 128, 255, .35);
    transition: color .15s, border-color .15s;
}
.lg-link:hover { color: #c4bdff; border-bottom-color: rgba(166, 128, 255, .8); }

/* Lists */
.lg-ul, .lg-ol {
    margin: 12px 0 14px;
    padding-left: 22px;
    color: var(--text);
}
.lg-ul li, .lg-ol li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.lg-ul li::marker { color: var(--accent-2); }
.lg-ol li::marker { color: var(--accent-2); font-weight: 600; }

/* Callout - highlighted paragraph */
.lg-callout {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(166, 128, 255, .06);
    border: 1px solid rgba(166, 128, 255, .2);
    border-left: 3px solid var(--accent-2);
}
.lg-callout .lg-p { color: var(--head); }
.lg-callout.warn {
    background: rgba(251, 146, 60, .06);
    border-color: rgba(251, 146, 60, .25);
    border-left-color: #fb923c;
}

/* Subsection heading */
.lg-sub-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--head);
    margin: 22px 0 8px;
    letter-spacing: -.2px;
}

/* Contact card at bottom */
.lg-contact {
    max-width: 820px;
    margin: 64px auto 0;
    padding: 26px 28px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lg-contact h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--head);
    margin: 0 0 8px;
}
.lg-contact p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.lg-contact p + p { margin-top: 6px; }

/* Pricing table (only on terms) */
.lg-pricing-table {
    margin: 14px 0 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
}
.lg-pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.lg-pricing-row:last-child { border-bottom: none; }
.lg-pricing-row.head {
    background: rgba(255, 255, 255, .03);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.lg-pricing-row.head + .lg-pricing-row { border-top: 1px solid rgba(255, 255, 255, .05); }

/* Table of contents */
.lg-toc {
    max-width: 820px;
    margin: 0 auto 56px;
    padding: 0 24px;
}
.lg-toc-inner {
    padding: 20px 24px;
    border-radius: 14px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lg-toc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 12px;
}
.lg-toc-list {
    columns: 2;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.lg-toc-list li {
    font-size: 13.5px;
    margin-bottom: 7px;
    break-inside: avoid;
}
.lg-toc-list a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}
.lg-toc-list a:hover { color: var(--accent-2); }
.lg-toc-list a::before {
    content: attr(data-num);
    display: inline-block;
    width: 24px;
    color: var(--muted-2);
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    .lg-toc-list { columns: 1; }
    .lg-body { margin: 32px auto 64px; }
    .lg-section { margin-bottom: 40px; }
    .lg-pricing-row { padding: 10px 12px; font-size: 13px; }
}
