/* ============================================================
   NookMarker legal pages — shared styles
   (privacy.html / terms.html / refunds.html / contact.html)

   Hand-written ON PURPOSE: landing.css is purged Tailwind output
   and only contains classes used by index.html + landing.js at
   build time, so these pages cannot rely on it. No build step.
   Palette mirrors landing/tw.css @theme values.
   ============================================================ */
:root {
  --paper: #f6f9f8;
  --snow: #ffffff;
  --heading: #10211e;
  --body: #4e615c;
  --faint: #7d8d89;
  --line: rgb(16 33 30 / 0.12);
  --teal: #0c7e73;        /* teal-650: AA on light */
  --teal-bright: #0e9488; /* brand */
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1110;     /* ink-900 */
    --snow: #101615;      /* ink-850 */
    --heading: #edf2f0;   /* fog */
    --body: #96a5a1;      /* mute */
    --faint: #6b7975;     /* dim */
    --line: rgb(255 255 255 / 0.12);
    --teal: #2cc4b2;      /* teal-400: readable on dark */
    --teal-bright: #5eddcb;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1rem/1.7 "Inter", ui-sans-serif, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-bright); }
::selection { background: rgb(14 148 136 / 0.25); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.legal-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 46rem; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.legal-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--heading); text-decoration: none;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.legal-brand:hover { color: var(--heading); }
.legal-brand img { width: 28px; height: 28px; display: block; }
.brand-teal { color: var(--teal-bright); }
.home-link { font-size: 0.85rem; color: var(--faint); text-decoration: none; white-space: nowrap; }
.home-link:hover { color: var(--teal); }

main { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
h1 {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15;
  color: var(--heading); letter-spacing: -0.02em; margin: 0 0 0.5rem;
}
.updated { font-size: 0.85rem; color: var(--faint); margin: 0 0 2.25rem; }
h2 {
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem; color: var(--heading); letter-spacing: -0.01em;
  margin: 2.25rem 0 0.6rem;
}
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--heading); font-weight: 600; }
.callout {
  background: var(--snow); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0 0 1.5rem;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 34rem; }
th { text-align: left; color: var(--heading); font-weight: 600; }
th, td { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.legal-footer {
  border-top: 1px solid var(--line);
  max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem;
  font-size: 0.85rem; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
}
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.legal-footer a { color: var(--faint); text-decoration: none; }
.legal-footer a:hover { color: var(--teal); }
