/* Nash legal hub — shared styling for /legal and /legal/<slug>.
   Editorial pacing: long-form prose with a sticky table of contents
   on desktop, generous line height, restrained chartreuse (eyebrow,
   active TOC marker). Dark by default; flips on body.light. */

/* ──────────────── Base canvas (mirrors contact.html) ──────────────── */
html,body{background:#01051E;color:#fff;margin:0;font-family:'Host Grotesk',system-ui,sans-serif}
body.light{background:#F8FAFC;color:#01051E}
html:has(body.light){background:#F8FAFC}

/* ──────────────── Site-wide aurora (verbatim) ──────────────── */
.nash-aurora-site{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:.35;isolation:isolate;transform:translateZ(0);will-change:transform;contain:layout paint;backface-visibility:hidden;filter:blur(60px) saturate(1.15)}
.nash-aurora-site svg{position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0);width:120%;height:140%}
.nash-aurora-site .aurora-ribbon{animation:nash-sway 22s ease-in-out infinite;mix-blend-mode:screen;transform-box:fill-box;transform-origin:50% 50%;will-change:transform}
.nash-aurora-site .aurora-ribbon:nth-child(2){animation-duration:19s;animation-delay:-4s}
.nash-aurora-site .aurora-ribbon:nth-child(3){animation-duration:26s;animation-delay:-9s}
.nash-aurora-site .aurora-ribbon:nth-child(4){animation-duration:21s;animation-delay:-3s}
.nash-aurora-site .aurora-ribbon:nth-child(5){animation-duration:28s;animation-delay:-12s}
.nash-aurora-site .aurora-ribbon:nth-child(6){animation-duration:18s;animation-delay:-6s}
@keyframes nash-sway{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(2.5%,0,0)}}
@media (prefers-reduced-motion:reduce){.nash-aurora-site .aurora-ribbon{animation:none}}
body.light .nash-aurora-site{opacity:.2}

/* ──────────────── Page scope ──────────────── */
.legal-main{position:relative;z-index:1}

/* §1 Hero — left-aligned editorial */
.legal-hero{padding:9rem 0 3rem;position:relative}
.legal-hero__inner{max-width:880px}
.legal-hero .platform_eyebrow{margin-bottom:1.25rem}
.legal-hero h1{font-family:'Host Grotesk',sans-serif;font-size:clamp(2.5rem,5.5vw,4.25rem);font-weight:500;letter-spacing:-.02em;line-height:1.05;margin:0 0 1.25rem;color:#fff}
body.light .legal-hero h1{color:#01051E}
.legal-hero__sub{font-size:1.1rem;color:#B1C4DC;line-height:1.55;max-width:60ch;margin:0 0 1.5rem}
body.light .legal-hero__sub{color:#314868}
.legal-hero__meta{font-family:'Geist Mono',monospace;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.55);font-weight:500;display:inline-flex;align-items:center;gap:.6rem}
.legal-hero__meta::before{content:'';width:6px;height:6px;border-radius:50%;background:#c9ff00;flex-shrink:0}
body.light .legal-hero__meta{color:rgba(1,5,30,.55)}
body.light .legal-hero__meta::before{background:#769917}

/* §2 Body — TOC + prose, two-column on desktop, stacked on mobile */
.legal-body{padding:2rem 0 6rem}
.legal-grid{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:5rem;align-items:start}

/* TOC — sticky on desktop, becomes a small inline list on mobile */
.legal-toc{position:sticky;top:6rem;font-family:'Geist Mono',monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.legal-toc__label{color:rgba(255,255,255,.45);margin:0 0 .85rem;font-weight:500}
body.light .legal-toc__label{color:rgba(1,5,30,.45)}
.legal-toc a{display:block;color:rgba(255,255,255,.6);text-decoration:none;padding:.45rem 0 .45rem 1rem;border-left:1px solid rgba(255,255,255,.07);transition:color .2s ease,border-color .2s ease;line-height:1.35}
.legal-toc a:hover,.legal-toc a.is-active{color:#fff;border-left-color:#c9ff00}
body.light .legal-toc a{color:rgba(1,5,30,.6);border-left-color:rgba(1,5,30,.07)}
body.light .legal-toc a:hover,body.light .legal-toc a.is-active{color:#01051E;border-left-color:#769917}

/* Prose — long-form text, generous line height */
.legal-prose{max-width:72ch;font-size:1rem;line-height:1.7;color:#B1C4DC}
body.light .legal-prose{color:#314868}
.legal-prose > *:first-child{margin-top:0}
.legal-prose h2{font-family:'Host Grotesk',sans-serif;font-size:1.55rem;font-weight:500;letter-spacing:-.01em;color:#fff;margin:3rem 0 1.1rem;line-height:1.2;scroll-margin-top:6rem}
body.light .legal-prose h2{color:#01051E}
.legal-prose h3{font-family:'Host Grotesk',sans-serif;font-size:1.1rem;font-weight:500;color:#fff;margin:2rem 0 .8rem;line-height:1.3;scroll-margin-top:6rem}
body.light .legal-prose h3{color:#01051E}
.legal-prose p{margin:0 0 1.1rem}
.legal-prose ul,.legal-prose ol{margin:0 0 1.1rem;padding-left:1.5rem}
.legal-prose li{margin:0 0 .55rem}
.legal-prose li::marker{color:rgba(255,255,255,.45)}
body.light .legal-prose li::marker{color:rgba(1,5,30,.45)}
.legal-prose a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.25);text-underline-offset:4px;text-decoration-thickness:1px;transition:text-decoration-color .2s ease}
body.light .legal-prose a{color:#01051E;text-decoration-color:rgba(1,5,30,.25)}
.legal-prose a:hover{text-decoration-color:#c9ff00}
body.light .legal-prose a:hover{text-decoration-color:#769917}
.legal-prose strong{color:#fff;font-weight:600}
body.light .legal-prose strong{color:#01051E}
.legal-prose em{color:#fff;font-style:italic}
body.light .legal-prose em{color:#01051E}
.legal-prose hr{border:0;border-top:1px solid rgba(255,255,255,.08);margin:2.5rem 0}
body.light .legal-prose hr{border-top-color:rgba(1,5,30,.08)}

/* Definition row — used in defined-term sections */
.legal-prose .legal-def{display:block;margin:0 0 1rem}
.legal-prose .legal-def strong{display:inline}

/* Caps blocks — disclaimers, limitations of liability */
.legal-prose .legal-caps{font-size:.85rem;line-height:1.65;letter-spacing:.01em;color:#9DB3CD}
body.light .legal-prose .legal-caps{color:#475A7A}

/* Tables — used by the subprocessors list. Editorial pacing: thin top
   rules, generous row padding, mono-caps header. Word-break: break-word
   on cells so long location lists wrap cleanly. */
.legal-prose table{width:100%;border-collapse:collapse;margin:1.5rem 0 2rem;font-size:.95rem}
.legal-prose thead th{text-align:left;font-family:'Geist Mono',monospace;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;font-weight:500;color:rgba(255,255,255,.55);padding:.65rem .85rem .75rem;border-bottom:1px solid rgba(255,255,255,.18)}
body.light .legal-prose thead th{color:rgba(1,5,30,.55);border-bottom-color:rgba(1,5,30,.18)}
.legal-prose tbody td{padding:.85rem .85rem;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top;line-height:1.45;word-break:break-word}
body.light .legal-prose tbody td{border-bottom-color:rgba(1,5,30,.06)}
.legal-prose tbody tr:last-child td{border-bottom:0}
.legal-prose td:first-child{padding-left:0;font-weight:500;color:#fff}
body.light .legal-prose td:first-child{color:#01051E}
.legal-prose th:first-child{padding-left:0}

/* "New" tag — flags subprocessors added in this update. Restrained
   chartreuse: outline + tiny dot, never a fill. */
.legal-tag-new{display:inline-flex;align-items:center;gap:.4rem;margin-left:.55rem;padding:.1rem .5rem .15rem;border:1px solid rgba(201,255,0,.45);border-radius:999px;font-family:'Geist Mono',monospace;font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:#c9ff00;font-weight:500;vertical-align:middle}
.legal-tag-new::before{content:'';width:5px;height:5px;border-radius:50%;background:#c9ff00;flex-shrink:0}
body.light .legal-tag-new{color:#769917;border-color:#769917}
body.light .legal-tag-new::before{background:#769917}

/* Last-updated chip floats top-right of hero on wide screens */
.legal-hero__row{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-top:1.25rem}

/* Footnote — single subtle card at bottom of detail pages */
.legal-footnote{margin-top:4rem;padding:1.75rem 1.85rem;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.02)}
body.light .legal-footnote{border-color:rgba(1,5,30,.08);background:rgba(1,5,30,.02)}
.legal-footnote__label{font-family:'Geist Mono',monospace;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.55);margin:0 0 .5rem;font-weight:500}
body.light .legal-footnote__label{color:rgba(1,5,30,.55)}
.legal-footnote__body{margin:0;font-size:.95rem;color:#B1C4DC;line-height:1.55}
body.light .legal-footnote__body{color:#314868}
.legal-footnote__body a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.25);text-underline-offset:4px;text-decoration-thickness:1px;transition:text-decoration-color .2s ease}
body.light .legal-footnote__body a{color:#01051E;text-decoration-color:rgba(1,5,30,.25)}
.legal-footnote__body a:hover{text-decoration-color:#c9ff00}
body.light .legal-footnote__body a:hover{text-decoration-color:#769917}

/* ──────────────── Hub-only: doc grid ──────────────── */
.legal-hub-section{padding:2rem 0 6rem;position:relative;z-index:1}
.legal-hub-group{margin-bottom:3.5rem}
.legal-hub-group__label{font-family:'Geist Mono',monospace;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:#c9ff00;font-weight:500;margin:0 0 1.25rem;padding-bottom:.85rem;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:.6rem}
body.light .legal-hub-group__label{color:#769917;border-bottom-color:rgba(1,5,30,.08)}
.legal-hub-group__label::before{content:'';width:6px;height:6px;border-radius:50%;background:#c9ff00;flex-shrink:0}
body.light .legal-hub-group__label::before{background:#769917}
.legal-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem}

.legal-hub-card{position:relative;display:flex;flex-direction:column;gap:.85rem;padding:1.85rem 1.85rem 1.65rem;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.015);text-decoration:none;color:inherit;transition:border-color .25s ease,background .25s ease,transform .25s ease}
body.light .legal-hub-card{border-color:rgba(1,5,30,.08);background:rgba(1,5,30,.015)}
.legal-hub-card:hover{border-color:rgba(201,255,0,.45);background:rgba(255,255,255,.03);transform:translateY(-2px)}
body.light .legal-hub-card:hover{border-color:rgba(118,153,23,.45);background:rgba(1,5,30,.025)}
.legal-hub-card__meta{font-family:'Geist Mono',monospace;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);font-weight:500;margin:0}
body.light .legal-hub-card__meta{color:rgba(1,5,30,.5)}
.legal-hub-card__title{font-family:'Host Grotesk',sans-serif;font-size:1.2rem;font-weight:500;letter-spacing:-.01em;line-height:1.25;color:#fff;margin:0}
body.light .legal-hub-card__title{color:#01051E}
.legal-hub-card__blurb{font-size:.92rem;line-height:1.55;color:#B1C4DC;margin:0;flex:1}
body.light .legal-hub-card__blurb{color:#314868}
.legal-hub-card__cta{font-family:'Geist Mono',monospace;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#fff;display:inline-flex;align-items:center;gap:.4rem;margin-top:.5rem;transition:gap .25s ease,color .25s ease}
body.light .legal-hub-card__cta{color:#01051E}
.legal-hub-card:hover .legal-hub-card__cta{gap:.65rem;color:#c9ff00}
body.light .legal-hub-card:hover .legal-hub-card__cta{color:#01051E}

/* ──────────────── Responsive ──────────────── */
@media(max-width:1000px){
  .legal-hero{padding:7rem 0 2rem}
  .legal-grid{grid-template-columns:1fr;gap:2rem}
  .legal-toc{position:static;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.08)}
  body.light .legal-toc{border-bottom-color:rgba(1,5,30,.08)}
  .legal-prose h2{margin-top:2.25rem}
}
@media(max-width:640px){
  .legal-hub-grid{grid-template-columns:1fr}
}
