/* Bonus Round legal pages (owner: legal-pages). Builds on /assets/ui.css tokens. Long-form reading layout. */
.lg-top { position: sticky; top: 0; z-index: 60; background: rgba(10,11,16,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
/* same frame as the marketing nav: 64 px bar, 1200 px container (1320 / 1480 on big monitors) */
:root { --lg-max: 1200px; --lg-gut: 20px; }
@media (min-width: 1600px) { :root { --lg-max: 1320px; --lg-gut: 32px; } }
@media (min-width: 2200px) { :root { --lg-max: 1600px; --lg-gut: 40px; } }
.lg-top .in { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--lg-gut); max-width: var(--lg-max); margin: 0 auto; }
.lg-logo { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; color: var(--text); }
.lg-logo .mark { display: inline-flex; width: 28px; height: 28px; }
.lg-logo .mark:empty { border-radius: 50%; background: var(--grad-gold); }
.lg-top .tag { font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.lg-top .links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.lg-top .links a.l { color: var(--text-2); text-decoration: none; font-size: 14.5px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
.lg-top .links a.l:hover, .lg-top .links a.l[aria-current="page"] { color: var(--text); background: var(--surface-1); }

.lg-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); max-width: var(--lg-max); margin: 0 auto; padding: 0 var(--lg-gut); }
.lg-toc { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 34px 4px 40px 0; }
.lg-toc summary { list-style: none; cursor: default; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 0 0 10px 10px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 2px; padding: 6px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.lg-toc a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { background: var(--surface-1); color: var(--text); }
.lg-toc a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.lg-toc .other { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.lg-toc .other a { grid-template-columns: 1fr; }
.lg-toc .other a::before { content: none; }

.lg-doc { min-width: 0; max-width: 720px; padding: 44px 0 96px; } /* ~70 characters a line */
.lg-doc .eyebrow { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.lg-doc h1 { font-size: clamp(34px, 2vw + 24px, 56px); letter-spacing: -.03em; margin-bottom: 16px; }
.lg-doc h2 { font-size: clamp(21px, .6vw + 17px, 26px); line-height: 1.2; margin: 52px 0 14px; padding-top: 6px; scroll-margin-top: 84px; counter-increment: sec; }
.lg-doc h2::before { content: counter(sec) ". "; color: var(--muted); font-weight: 600; }
.lg-doc.unnumbered h2::before { content: none; }
.lg-doc { counter-reset: sec; }
.lg-doc h3 { font-size: 17px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.lg-doc p, .lg-doc li { color: var(--text-2); font-size: 16px; line-height: 1.72; text-wrap: pretty; }
.lg-doc li::marker { color: var(--muted); }
.lg-doc li { margin: 4px 0; }
.lg-doc ul, .lg-doc ol { padding-left: 22px; margin: 0 0 1em; }
.lg-doc strong { color: var(--text); font-weight: 650; }
.lg-doc a { color: var(--text); text-decoration-color: rgba(255,201,60,.55); text-underline-offset: 3px; }
.lg-doc a:hover { text-decoration-color: var(--gold); }
.lg-doc code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .86em; color: var(--text); word-break: break-word; }
.lg-doc .lede { font-size: 17.5px; line-height: 1.6; color: var(--text-2); margin: 18px 0 8px; }

.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.lg-meta b { color: var(--text-2); font-weight: 600; }
.lg-draft { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; border: 1px solid #5a4512; background: #1d1606; border-radius: var(--r-lg); padding: 14px 16px; margin: 6px 0 24px; }
.lg-draft svg { color: var(--warning); margin-top: 2px; }
.lg-draft p { margin: 0; color: #f4e2b4; font-size: 14.5px; line-height: 1.55; }
.lg-draft strong { color: #ffd27a; }

/* placeholders and open decisions: visible at a glance */
.ph { display: inline; background: rgba(255,201,60,.12); color: var(--gold); border: 1px dashed rgba(255,201,60,.55); border-radius: 6px; padding: 0 5px; font-weight: 600; font-size: .94em; white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ph.dec { background: rgba(124,92,255,.14); color: #c4b5ff; border-color: rgba(124,92,255,.6); }
.lg-key { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); margin: -10px 0 22px; }

.summary-box { background: var(--surface-1); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px 14px; margin: 22px 0 8px; }
.summary-box h3 { margin: 0 0 10px; font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.summary-box ul { margin: 0; }
.note { border-left: 3px solid var(--violet); background: rgba(124,92,255,.07); border-radius: 0 var(--r) var(--r) 0; padding: 10px 14px; margin: 14px 0; }
.note p { margin: 0; font-size: 14px; color: #cfc6ff; }
.note p + p { margin-top: 6px; }
.note .t { display: block; font: 700 11.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: #a897ff; margin-bottom: 4px; }

.lg-doc .table-wrap { margin: 14px 0 20px; }
.lg-doc table.data td, .lg-doc table.data th { vertical-align: top; }
.lg-doc table.data td { color: var(--text-2); font-size: 14px; line-height: 1.5; min-width: 120px; }
.lg-doc table.data td:first-child { color: var(--text); font-weight: 600; }

/* hub */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.hub a { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 20px; background: var(--surface-1); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1), background .2s; }
.hub a:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hub a, .hub a:hover { transition: none; transform: none; } }
.hub a b { font: 700 17px var(--display); color: var(--text); letter-spacing: -.01em; }
.hub a span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.hub a small { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; }

.lg-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.lg-foot .in { max-width: var(--lg-max); margin: 0 auto; padding: 0 var(--lg-gut); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: 13.5px; color: var(--muted); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lg-foot a { color: var(--text-2); text-decoration: none; }
.lg-foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 0; }
  .lg-toc { position: static; max-height: none; padding: 18px 0 0; }
  .lg-toc details { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 8px 8px; }
  .lg-toc summary { cursor: pointer; margin: 0 8px 4px; display: flex; justify-content: space-between; align-items: center; }
  .lg-toc summary::after { content: "+"; font-size: 16px; color: var(--text-2); }
  .lg-toc details[open] summary::after { content: "−"; }
  .lg-toc details[open] summary { margin-bottom: 8px; }
  .lg-toc .other { display: none; }
  .lg-doc { padding-top: 22px; }
  .hub { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lg-top .in { padding: 0 16px; gap: 10px; }
  .lg-top .links a.hide-sm { display: none; }
  .lg-top .tag { display: none; }
  .lg-wrap, .lg-foot .in { padding: 0 16px; }
  .lg-top .links a.l { padding: 10px 10px; }
  .lg-doc p, .lg-doc li { font-size: 15px; }
  .lg-doc .lede { font-size: 16px; }
  .lg-doc table.data td { min-width: 140px; }
}
@media print {
  .lg-top, .lg-toc, .lg-foot { display: none; }
  .lg-wrap { display: block; }
  body { background: #fff; color: #000; }
  .lg-doc p, .lg-doc li, .lg-doc td { color: #111 !important; }
}

/* phones: tables become one card per row, each cell labelled with its column header */
@media (max-width: 640px) {
  .lg-doc .table-wrap { border: 0; overflow: visible; }
  .lg-doc table.data.lg-cards, .lg-doc table.data.lg-cards tbody, .lg-doc table.data.lg-cards tr, .lg-doc table.data.lg-cards td { display: block; width: 100%; }
  .lg-doc table.data.lg-cards thead { display: none; }
  .lg-doc table.data.lg-cards tr { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; margin-bottom: 10px; }
  .lg-doc table.data.lg-cards tbody tr:hover { background: var(--surface-1); }
  .lg-doc table.data.lg-cards td { min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .lg-doc table.data.lg-cards td:last-child { border-bottom: 0; }
  .lg-doc table.data.lg-cards td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
  .lg-doc table.data.lg-cards td:first-child { font-size: 15px; }
}
@media (max-width: 380px) { .lg-logo span:last-child { display: none; } } /* 320 px phones: mark only, keep both nav links on screen */
