/* legal.css — Ssup v3 legal pages (Privacy Policy, Terms of Use)
   Inherits Electric Midnight tokens from styles.css. Reuses .lp- atoms where
   possible; legal-specific classes are prefixed .lg-. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--surface-app); color: var(--text-primary);
  font-family: var(--font-display, 'Gabarito', system-ui);
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); }

:root { --lg-max: 1080px; --lg-mono: 'DM Mono', ui-monospace, monospace; --lg-ease: cubic-bezier(.22,.7,.2,1); }

/* faint top glow */
.lg-page { position: relative; min-height: 100vh; }
.lg-page::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 48% at 50% -6%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); }
.lg-wrap { position: relative; z-index: 1; max-width: var(--lg-max); margin: 0 auto; padding: 0 28px; }

/* ── nav ─────────────────────────────────────────────────── */
.lg-nav { position: sticky; top: 0; z-index: 50; padding: 14px 0;
  background: color-mix(in oklab, var(--surface-app) 80%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-hairline); }
.lg-nav-in { max-width: var(--lg-max); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lg-back { display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px; border-radius: 99px; white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--border-strong); color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 700; transition: transform .25s var(--lg-ease), color .2s, box-shadow .2s, background .2s; }
.lg-back svg { flex: 0 0 auto; }
.lg-back:hover { transform: translateX(-3px); color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-tint-18); }
.lg-back svg { transform: rotate(180deg); }

/* ── header ──────────────────────────────────────────────── */
.lg-header { padding: clamp(54px, 8vw, 96px) 0 clamp(34px, 5vw, 52px); }
.lg-eyebrow { font-family: var(--lg-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; gap: 9px; align-items: center; }
.lg-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: var(--live);
  box-shadow: 0 0 10px var(--live); }
.lg-title { margin: 20px 0 0; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  font-size: clamp(40px, 6.4vw, 76px); text-wrap: balance; }
.lg-sticker { display: inline-block; background: var(--accent); color: #fff; padding: 0.02em 0.16em 0.08em; white-space: nowrap;
  border-radius: 0.16em; transform: rotate(-2deg); box-shadow: 0 14px 36px var(--blue-glow); }
.lg-updated { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--lg-mono); font-size: 12.5px; color: var(--text-tertiary); letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--border-hairline); }
.lg-updated b { color: var(--text-secondary); font-weight: 500; }
.lg-intro { margin: 26px 0 0; max-width: 720px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6;
  color: var(--text-secondary); font-weight: 500; text-wrap: pretty; }

/* ── body grid: sticky TOC + prose ───────────────────────── */
.lg-body { display: grid; grid-template-columns: 232px 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: start; padding-bottom: clamp(60px, 9vw, 120px); }

.lg-toc { position: sticky; top: 88px; }
.lg-toc-h { font-family: var(--lg-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 14px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.lg-toc a { counter-increment: toc; display: flex; gap: 12px; padding: 8px 12px; border-radius: 11px;
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35;
  transition: color .2s, background .2s; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--lg-mono); font-size: 11.5px;
  color: var(--text-tertiary); font-weight: 500; padding-top: 1px; transition: color .2s; }
.lg-toc a:hover { color: var(--text-primary); background: var(--surface-card); }
.lg-toc a:hover::before { color: var(--accent); }

/* prose */
.lg-prose { max-width: 720px; min-width: 0; }
.lg-sec { padding-top: 8px; margin-top: 40px; scroll-margin-top: 88px; }
.lg-sec:first-child { margin-top: 0; }
.lg-sec h2 { margin: 0; font-size: clamp(22px, 2.7vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  display: flex; align-items: baseline; gap: 14px; }
.lg-sec h2 .lg-num { font-family: var(--lg-mono); font-size: 14px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.02em; flex: 0 0 auto; }
.lg-sec h3 { margin: 26px 0 0; font-size: 17.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.lg-sec p { margin: 14px 0 0; font-size: 16px; line-height: 1.66; color: var(--text-secondary); font-weight: 450; text-wrap: pretty; }
.lg-sec p:first-of-type { margin-top: 16px; }
.lg-sec a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.lg-sec a:hover { border-bottom-color: var(--accent); }
.lg-sec ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.lg-sec li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); font-weight: 450; text-wrap: pretty; }
.lg-sec li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg); }
.lg-sec li b { color: var(--text-primary); font-weight: 700; }
.lg-sec strong { color: var(--text-primary); font-weight: 700; }

/* callout */
.lg-note { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--border-hairline); border-left: 3px solid var(--live); }
.lg-note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.lg-note .lg-note-h { font-family: var(--lg-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--live); display: block; margin-bottom: 8px; }

/* contact card */
.lg-contact { margin-top: 48px; padding: clamp(26px, 4vw, 40px); border-radius: 26px; background: var(--surface-alt);
  box-shadow: inset 0 0 0 1px var(--border-hairline); }
.lg-contact h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.lg-contact p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }
.lg-contact .lg-mailbtn { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 99px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15.5px; box-shadow: 0 12px 34px var(--blue-glow);
  transition: transform .25s var(--lg-ease), box-shadow .25s; border-bottom: none; }
.lg-contact .lg-mailbtn:hover { transform: translateY(-3px); box-shadow: 0 20px 50px var(--blue-glow); }

@media (max-width: 860px) {
  .lg-body { grid-template-columns: 1fr; gap: 8px; }
  .lg-toc { position: static; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--border-hairline); }
  .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
}
@media (max-width: 520px) {
  .lg-wrap, .lg-nav-in { padding: 0 20px; }
  .lg-toc ol { grid-template-columns: 1fr; }
}

/* ── footer ──────────────────────────────────────────────── */
.lg-footer { border-top: 1px solid var(--border-hairline); padding: 34px 0; }
.lg-footer-in { max-width: var(--lg-max); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lg-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.lg-footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.lg-footer-links a:hover { color: var(--accent); }
.lg-footer small { font-family: var(--lg-mono); font-size: 11.5px; color: var(--text-tertiary); letter-spacing: 0.04em; }
@media (max-width: 520px) { .lg-footer-in { flex-direction: column; align-items: center; text-align: center; gap: 14px; } }
