/* NeuralWallet — Legal pages stylesheet
   Self-contained: matches landing brand without pulling its full stylesheet. */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url("fonts/font-2.woff2") format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: optional;
  src: url("fonts/font-5.woff2") format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url("fonts/font-12.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url("fonts/font-13.woff2") format('woff2');
  font-weight: 500; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url("fonts/font-14.woff2") format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url("fonts/font-15.woff2") format('woff2');
  font-weight: 700; font-style: normal; font-display: optional;
}

:root {
  --bg: #f6f5f1;
  --ink: #14140f;
  --ink-secondary: #5b5a52;
  --ink-faint: #8a8a80;
  --line-warm: #e5e2d8;
  --sage: #8aa18e;
  --sage-mid: #6d8a72;
  --sage-deep: #4a6a55;
  --moss: #314A3E;
  --accent: #577254;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--moss); }

/* Nav */
.nav { border-bottom: 1px solid var(--line-warm); background: var(--bg); }
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 68px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; display: block;
  background-image: url("img/logo.png");
  /* `contain` shows the full logo mark, matching the landing nav (which uses
     an <img> with object-fit: contain). `220%` here zoom-cropped to the spine. */
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.brand-name { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand-name strong { font-weight: 800; color: var(--accent); }
.nav-right { margin-left: auto; font-size: 14px; }
.nav-right a { color: var(--ink-secondary); text-decoration: none; }
.nav-right a:hover { color: var(--ink); }

/* Page container */
.legal {
  max-width: 720px; margin: 0 auto; padding: 64px 32px 96px;
}
.legal-eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  color: var(--sage-deep); font-weight: 600; margin-bottom: 16px;
}
.legal h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 16px;
}
.legal .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 48px; }

.legal .toc {
  background: rgba(255,255,255,0.55); border: 1px solid var(--line-warm);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 56px;
  font-size: 14.5px;
}
.legal .toc-title {
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-secondary); margin-bottom: 10px;
}
.legal .toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 28px; }
.legal .toc li { counter-increment: toc; padding: 3px 0; break-inside: avoid; }
.legal .toc li::before { content: counter(toc, decimal-leading-zero) ". "; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.legal .toc a { color: var(--ink); text-decoration: none; }
.legal .toc a:hover { color: var(--accent); }

.legal h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 26px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 56px 0 14px; scroll-margin-top: 24px;
}
.legal h2 .num { color: var(--ink-faint); font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
.legal h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.legal p { color: var(--ink-secondary); margin-bottom: 14px; }
.legal p strong, .legal li strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 8px 0 16px 22px; color: var(--ink-secondary); }
.legal ul li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--line-warm); margin: 56px 0; }

.legal .note {
  background: #efeee7; border-left: 3px solid var(--sage); padding: 16px 18px;
  border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--ink-secondary);
  margin: 20px 0;
}
.legal .note strong { color: var(--ink); }

.legal .contact {
  margin-top: 64px; padding: 28px; background: rgba(255,255,255,0.55);
  border: 1px solid var(--line-warm); border-radius: 14px;
}
.legal .contact h2 { margin-top: 0; }
.legal .contact a { font-weight: 600; }

/* Footer */
.footer {
  border-top: 1px solid var(--line-warm); padding: 32px;
  text-align: center; color: var(--ink-faint); font-size: 13px;
}
.footer a { color: var(--ink-secondary); margin: 0 10px; text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-inner, .legal { padding-left: 20px; padding-right: 20px; }
  .legal { padding-top: 40px; padding-bottom: 64px; }
  .legal .toc ol { columns: 1; }
}
