/* Shared shell for Elovate's document pages: privacy, terms, delete-account.
   The homepage keeps its CSS inline because it is the page that has to paint
   fast; these four share a layout the homepage never uses, so they share a
   file instead of four drifting copies of the same tokens. */

:root {
  --abyss:  #04191E;
  --deep:   #072830;
  --raise:  #0B3B45;
  --edge:      rgba(255,255,255,0.09);
  --edge-lit:  rgba(255,255,255,0.20);

  --chalk: #EAF4F2;
  --haze:  #A8C3C4;
  --faint: #8BA9AD;

  --gold:    #F0C158;
  --emerald: #46CE87;
  --ember:   #FF7A55;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--chalk);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--abyss);
  font-weight: 600; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- chrome ---------- */
.doc-head {
  border-bottom: 1px solid var(--edge);
  background: rgba(4,25,30,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.doc-head .row {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-variation-settings: 'wdth' 90, 'wght' 800;
  font-size: 16px; letter-spacing: 0.16em;
  text-decoration: none; color: var(--chalk);
}
.brand-mark {
  width: 25px; height: 25px; border-radius: 8px; flex: none;
  background: linear-gradient(150deg, var(--emerald), #0E7F72 62%, var(--abyss));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.brand-mark::after {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg);
}
.doc-head nav { display: flex; gap: 20px; }
.doc-head nav a {
  color: var(--haze); text-decoration: none; font-size: 14.5px;
  transition: color .18s var(--ease);
}
.doc-head nav a:hover, .doc-head nav a[aria-current] { color: var(--gold); }

/* ---------- document ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }

.doc .eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.doc .eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .5; }

.doc h1 {
  font-family: var(--display); font-variation-settings: 'wdth' 115, 'wght' 800;
  font-size: clamp(34px, 5.6vw, 52px); line-height: 1.04;
  letter-spacing: -0.03em; margin: 18px 0 10px;
}
.doc .updated { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: .04em; }
.doc .lead {
  font-size: clamp(17px, 2vw, 20px); color: var(--haze);
  margin: 26px 0 8px; line-height: 1.6;
}

.doc h2 {
  font-family: var(--display); font-variation-settings: 'wdth' 108, 'wght' 700;
  font-size: 22px; letter-spacing: -0.015em;
  margin: 48px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--edge);
}
/* Headings and rules keep the full column so the hierarchy still reads,
   but prose caps at a comfortable measure — long-form legal text is exactly
   where an 85-character line does the most damage. */
.doc p { margin: 12px 0; color: var(--haze); max-width: 58ch; text-wrap: pretty; }
.doc p b, .doc li b { color: var(--chalk); font-weight: 600; }
.doc ul, .doc ol { margin: 14px 0; padding-left: 0; list-style: none; }
.doc li {
  margin: 10px 0; color: var(--haze); padding-left: 26px; position: relative;
  max-width: 58ch; text-wrap: pretty;
}
.doc ul li::before {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
}
.doc ol { counter-reset: step; }
.doc ol li { counter-increment: step; }
.doc ol li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 12px; color: var(--gold);
}
.doc a { color: var(--gold); text-decoration-color: rgba(240,193,88,0.4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--gold); }

/* The accent is an inset shadow, not a border: a square 3px border overhung
   the card's rounded corners and notched both of them. Gold, because orange
   means a negative food score everywhere else in this system. */
.callout {
  background: var(--raise); border-radius: 16px; padding: 20px 22px;
  margin: 22px 0;
  box-shadow: inset 0 0 0 1px var(--edge), inset 3px 0 0 var(--gold);
}
.callout p { margin: 0; color: var(--chalk); max-width: none; }

.note { margin-top: 44px; font-size: 13.5px; color: var(--faint); }

.btn {
  font-weight: 600; font-size: 15.5px; padding: 14px 24px; border-radius: 999px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--abyss); border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(240,193,88,0.28); }

/* ---------- footer ---------- */
.doc-foot { border-top: 1px solid var(--edge); }
.doc-foot .row {
  max-width: 760px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.doc-foot a { color: var(--haze); text-decoration: none; font-size: 14.5px; }
.doc-foot a:hover { color: var(--gold); }
.doc-foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.doc-foot .copy { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .doc { padding: 44px 20px 72px; }
  .doc-head .row, .doc-foot .row { padding-left: 20px; padding-right: 20px; }
  .doc-head nav { gap: 14px; }
  .doc-head nav a { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
  .btn:hover { transform: none !important; }
}
