/* ===== Supersonic — shared styles for legal pages =====
   Tokens mirror index.html so the legal pages read as part of the same site. */

:root {
  --paper: #FAFAF7;
  --cream: #F1EDE6;
  --sand:  #E4DED4;
  --mist:  #B9B5AE;
  --smoke: #6B6560;
  --ink:   #1A1A1A;
  --accent: #E8572C;
  /* Text-safe variants: --mist (1.95:1) and --accent (3.44:1) fail WCAG AA as
     foreground on --paper. These clear AA for their respective text sizes. */
  --muted-lg: #8A857F;   /* 3.50:1 on --paper — large text only (>=24px) */
  --accent-text: #C4400F; /* 4.91:1 on --paper — normal-size text */
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sand); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: 14px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--sans);
  font-size: 20px; font-weight: 600; letter-spacing: -0.5px;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 10px; height: 10px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 14px; color: var(--smoke); font-weight: 500; text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- page head ---------- */
.legal-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--sand);
}
.eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--smoke); font-weight: 500; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--accent); display: inline-block; flex-shrink: 0;
}
.legal-head h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 76px); font-weight: 500;
  line-height: 0.98; letter-spacing: -2px; color: var(--ink);
  max-width: 16ch;
}
.legal-head h1 .m { color: var(--muted-lg); }
.dates {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 36px;
}
.date-k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 6px;
}
.date-v { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }

/* ---------- identity card ---------- */
.identity {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 28px 32px;
  margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.identity dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 8px;
}
.identity dd { font-size: 15px; line-height: 1.5; letter-spacing: -0.1px; }
.identity dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mist); }
.identity dd a:hover { text-decoration-color: var(--accent); }

/* ---------- layout ---------- */
.legal-main {
  display: grid; grid-template-columns: 260px 1fr; gap: 72px;
  padding: 64px 0 120px; align-items: start;
}

/* ---------- table of contents ---------- */
.toc { position: sticky; top: 96px; }
.toc-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--smoke);
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sand);
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 11px; }
.toc a {
  font-size: 14px; color: var(--smoke); text-decoration: none;
  line-height: 1.4; display: flex; gap: 12px; transition: color 0.15s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 10px; color: var(--smoke); flex-shrink: 0; padding-top: 3px;
}
.toc a:hover, .toc a:focus-visible { color: var(--ink); }

/* ---------- article ---------- */
.legal-body { max-width: 720px; }
.legal-body > section { margin-bottom: 52px; scroll-margin-top: 88px; }
.legal-body > section:last-child { margin-bottom: 0; }
.legal-body h2 {
  font-family: var(--sans);
  font-size: 26px; font-weight: 600; letter-spacing: -0.8px;
  line-height: 1.15; margin-bottom: 18px; color: var(--ink);
  display: flex; gap: 16px; align-items: baseline;
}
.legal-body h2 .n {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent-text); letter-spacing: 1px; flex-shrink: 0; padding-top: 2px;
}
.legal-body h3 {
  font-family: var(--sans);
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
  margin: 28px 0 10px; color: var(--ink);
}
.legal-body p { font-size: 16px; line-height: 1.7; color: var(--smoke); margin-bottom: 16px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mist); }
.legal-body a:hover, .legal-body a:focus-visible { text-decoration-color: var(--accent); }
.legal-body ul, .legal-body ol { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.legal-body li {
  font-size: 16px; line-height: 1.65; color: var(--smoke);
  margin-bottom: 11px; padding-left: 26px; position: relative;
}
.legal-body ul > li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; background: var(--accent);
}
.legal-body ol { counter-reset: li; }
.legal-body ol > li { counter-increment: li; }
.legal-body ol > li::before {
  content: counter(li) '.'; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px; color: var(--smoke); padding-top: 4px;
}

/* callout */
.callout {
  background: var(--cream); border-left: 2px solid var(--accent);
  padding: 20px 24px; margin: 24px 0;
}
.callout p { margin-bottom: 10px; color: var(--smoke); font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

/* table */
.table-scroll { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--sand); }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--paper); }
th, td {
  text-align: left; padding: 14px 18px; font-size: 15px;
  border-bottom: 1px solid var(--sand); vertical-align: top; line-height: 1.55;
}
th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--smoke); font-weight: 500;
  background: var(--cream); white-space: nowrap;
}
td { color: var(--smoke); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */
.foot {
  background: var(--paper); border-top: 1px solid var(--sand);
  padding: 64px 0 40px;
}
.foot-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.foot-brand {
  font-family: var(--sans);
  font-size: 22px; font-weight: 600; letter-spacing: -0.6px;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.foot-brand-mark { width: 12px; height: 12px; background: var(--accent); display: inline-block; }
.foot-addr {
  font-style: normal; font-size: 14px; line-height: 1.6; color: var(--smoke); max-width: 300px;
}
.foot-addr a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mist); }
.foot-addr a:hover { text-decoration-color: var(--accent); }
.foot-legalname { color: var(--ink); font-weight: 500; }
.foot-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 18px;
}
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-list a {
  font-size: 14px; color: var(--ink); text-decoration: none; letter-spacing: -0.1px;
  transition: color 0.15s ease;
}
.foot-list a:hover, .foot-list a:focus-visible { color: var(--accent-text); }
.foot-bottom {
  border-top: 1px solid var(--sand); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot-small { font-size: 12px; color: var(--smoke); letter-spacing: -0.1px; }
.foot-small-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-small-links a { font-size: 12px; color: var(--smoke); text-decoration: none; }
.foot-small-links a:hover, .foot-small-links a:focus-visible { color: var(--accent-text); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .legal-main { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .toc {
    position: static; border: 1px solid var(--sand); background: var(--cream); padding: 24px 28px;
  }
  .toc ol { columns: 2; column-gap: 32px; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 860px) {
  .container, .nav-inner { padding: 0 20px !important; }
  .legal-head { padding: 48px 0 32px; }
  .legal-head h1 { font-size: clamp(34px, 10vw, 52px); letter-spacing: -1.4px; }
  .dates { gap: 24px; }
  .identity { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .nav-links { gap: 16px; }
  .nav-links li.hide-sm { display: none; }
  .legal-main { padding-bottom: 72px; }
  .legal-body h2 { font-size: 22px; }
  .toc ol { columns: 1; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-small-links { gap: 16px; }
}

@media print {
  .nav, .toc, .foot, .skip { display: none !important; }
  .legal-main { grid-template-columns: 1fr; padding: 0; }
  body { background: #fff; }
  .legal-body p, .legal-body li { color: #333; }
}
