/* ===== Barrakuda Quant — legal pages shared styles ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0e14;
  --bg-2: #080b10;
  --surface: #121a25;
  --border: #1f2a37;
  --divider: #18222e;
  --text: #e7ecf3;
  --text-muted: #97a3b8;
  --text-faint: #74839d;
  --primary: #2dd4bf;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16.5px; line-height: 1.68;
  letter-spacing: -0.005em; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
::selection { background: rgba(45,212,191,.25); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

a { color: var(--primary); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
strong, b { color: var(--text); font-weight: 600; }

/* nav */
header.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,14,20,.78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.legal-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 32px; height: auto; color: var(--primary); flex: none; filter: drop-shadow(0 0 12px rgba(45,212,191,.32)); }
.brand .wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--text); }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.back-link:hover { color: var(--text); opacity: 1; }

/* hero */
.legal-hero { padding: 56px 0 28px; border-bottom: 1px solid var(--divider); }
.legal-hero .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.legal-hero h1 {
  margin: 0; font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.028em; line-height: 1.1; text-wrap: balance;
}
.legal-hero .updated {
  margin-top: 16px; font-family: var(--font-mono); font-size: 13px;
  color: var(--text-faint); letter-spacing: .04em;
}

/* prose */
article.prose { padding: 44px 0 72px; }
article.prose p { margin: 0 0 18px; color: var(--text-muted); text-wrap: pretty; }
article.prose h2 {
  margin: 44px 0 14px; font-size: 1.32rem; font-weight: 700;
  letter-spacing: -0.018em; color: var(--text); scroll-margin-top: 80px;
}
article.prose h3 {
  margin: 28px 0 10px; font-size: 1.05rem; font-weight: 600;
  letter-spacing: -0.012em; color: var(--text);
}
article.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--text-muted); }
article.prose ul li { margin-bottom: 8px; }
article.prose ul li::marker { color: var(--primary); }

/* company details box */
.entity {
  margin: 32px 0; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 14.5px; color: var(--text-muted);
}
.entity dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 8px 18px; }
.entity dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-faint); align-self: center; }
.entity dd { margin: 0; color: var(--text); font-size: 14.5px; }
@media (max-width: 540px) {
  .entity dl { grid-template-columns: 1fr; gap: 0; }
  .entity dt { margin-top: 12px; }
  .entity dt:first-child { margin-top: 0; }
}

/* callout */
.callout {
  margin: 26px 0; padding: 18px 22px;
  background: rgba(45,212,191,.07); border: 1px solid rgba(45,212,191,.22);
  border-radius: 10px; color: var(--text); font-size: 14.5px; line-height: 1.6;
}
.callout strong { color: var(--primary); }

/* TOC */
nav.toc {
  margin: 24px 0 0; padding: 20px 24px;
  background: var(--bg-2); border: 1px solid var(--divider); border-radius: 10px;
}
nav.toc h3 {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}
nav.toc ol { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 14.5px; }
nav.toc ol li { margin-bottom: 6px; }
nav.toc a { color: var(--text-muted); }
nav.toc a:hover { color: var(--text); opacity: 1; }

/* footer */
footer.legal-foot {
  border-top: 1px solid var(--divider); background: var(--bg-2);
  padding: 28px 0; font-size: 13px; color: var(--text-faint);
}
footer.legal-foot .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
footer.legal-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.legal-foot .links a { color: var(--text-muted); }
footer.legal-foot .links a:hover { color: var(--text); }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .legal-hero { padding: 40px 0 24px; }
  article.prose { padding: 32px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
