/* ─────────────────────────────────────────────────────────────
   Shared styling for the three standalone legal pages.

   These pages sit in public/ as plain HTML rather than React routes:
   the site is a single-page Vite app with no router, and adding one
   for three static documents would mean shipping a router bundle to
   every visitor to serve pages almost nobody opens. Vite serves
   public/ at the web root, and /privacy/index.html resolves at
   /privacy on both `vite preview` and Vercel.

   Tokens are duplicated from tailwind.config.js by necessity — these
   pages are outside the Tailwind build. Keep them in sync by hand.
   ───────────────────────────────────────────────────────────── */

:root {
  --basalt: #1c1a17;
  --copper: #b4602f;
  --bleached: #f2ede4;
  --ink: #2a2621;
  --sand: #dcd3c4;
  /* 4.85:1 on bleached. Was #8a8175 = 3.29:1, which fails AA for the
     small text this drives (.stamp, .back). Keep in sync with dust in
     tailwind.config.js; verify with scripts/contrast.py. */
  --dust: #6e665b;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bleached);
  color: var(--ink);
  font-family: 'Inter Tight', Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--copper);
  color: var(--bleached);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Masthead ── */
.masthead {
  border-bottom: 1px solid var(--sand);
  padding: 1.5rem 0;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead img {
  height: 30px;
  width: auto;
  display: block;
}
.back {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dust);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}
.back:hover,
.back:focus-visible {
  color: var(--copper);
}

/* ── Document body ── */
main {
  padding: 4rem 0 5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--copper);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--copper);
}

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
h1 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--copper);
}

.stamp {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dust);
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 3rem 0 0.9rem;
  display: flex;
  gap: 0.85rem;
  text-wrap: balance;
}
h2 .n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--copper);
  padding-top: 0.42rem;
  flex-shrink: 0;
}

h3 {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.9rem 0 0.6rem;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}
li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}
li::marker {
  color: var(--copper);
}

a {
  color: var(--ink);
  text-decoration-color: var(--sand);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
a:hover,
a:focus-visible {
  color: var(--copper);
  text-decoration-color: var(--copper);
}

strong {
  font-weight: 600;
}

/* Callout for the disclaimers that carry actual legal weight. */
.note {
  border-left: 2px solid var(--copper);
  background: #ede7dc;
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0;
  font-size: 13.5px;
}
.note :last-child {
  margin-bottom: 0;
}

.contact {
  border: 1px solid var(--sand);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-top: 3.5rem;
  font-size: 13.5px;
}
.contact p:first-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.9rem;
}
.contact :last-child {
  margin-bottom: 0;
}

/* ── Footer ── */
footer {
  background: var(--basalt);
  color: var(--bleached);
  border-radius: 2.5rem 2.5rem 0 0;
  padding: 3rem 0 2.5rem;
}
footer .wrap > * {
  margin: 0 0 0.6rem;
}
.compliance {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 228, 0.45);
}
.fineprint {
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(242, 237, 228, 0.35);
  max-width: 40rem;
}
.legalnav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(242, 237, 228, 0.12);
}
.legalnav a {
  font-size: 11.5px;
  color: rgba(242, 237, 228, 0.4);
  text-decoration: none;
}
.legalnav a:hover,
.legalnav a:focus-visible {
  color: rgba(242, 237, 228, 0.75);
}
.legalnav a[aria-current='page'] {
  color: var(--copper);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .masthead .back,
  .legalnav {
    display: none;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  footer {
    background: none;
    color: #000;
    border-top: 1px solid #999;
    border-radius: 0;
  }
  .compliance,
  .fineprint {
    color: #333;
  }
}
