/* Fightless — the shell for the legal pages (privacy, terms, refunds).
   Same Dusk/Dawn tokens and Canopy type as the marketing page, and nothing
   else: index.html keeps its own stylesheet, this file stays deliberately
   small. Dusk is the default; Dawn arrives with the OS light setting. */

:root {
  --ink-deep: #100c15;
  --ink: #191220;
  --dusk: #241a2e;
  --line: rgba(243, 236, 228, 0.09);
  --line-strong: rgba(243, 236, 228, 0.18);
  --cream: #f3ece4;
  --cream-dim: rgba(243, 236, 228, 0.64);
  --cream-faint: rgba(243, 236, 228, 0.4);
  --ember: #e26d4f;
  --ember-soft: #ec9273;
  --lilac: #c3b2e6;
  --lilac-deep: #8d78bd;
  --sage: #9dbfae;
  --sage-deep: #5f8a75;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --body: 'Figtree', 'Helvetica Neue', sans-serif;
  --mono: 'Spline Sans Mono', 'Menlo', monospace;
  --r: 14px;
  --measure: 720px;
}

/* Dawn — the app's light palette; follows the OS scheme automatically */
@media (prefers-color-scheme: light) {
  :root {
    --ink-deep: #f4eee7;
    --ink: #ebe3da;
    --dusk: #fdfaf6;
    --line: rgba(47, 32, 58, 0.1);
    --line-strong: rgba(47, 32, 58, 0.24);
    --cream: #2f2038;
    --cream-dim: rgba(47, 32, 58, 0.66);
    --cream-faint: rgba(47, 32, 58, 0.45);
    --ember: #d85f40;
    --ember-soft: #bf5236;
    --lilac: #7a63ad;
    --lilac-deep: #574289;
    --sage: #55836d;
    --sage-deep: #47705d;
  }
}

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

body {
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 340;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the temperature thread, laid flat across the top of the page */
body::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--lilac) 55%, var(--sage));
}

::selection { background: var(--lilac-deep); color: #fff; }

a { color: var(--lilac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
a:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ——— header ——— */
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 0;
}
.back {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
}
.back:hover { color: var(--lilac); }
.doc-kind {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ——— title block ——— */
main { padding: clamp(44px, 8vw, 76px) 0 clamp(56px, 8vw, 88px); }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 12px;
}
.updated {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.lede {
  margin-top: 22px;
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.6;
  color: var(--cream-dim);
}

/* ——— body ——— */
h2 {
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(21px, 2.8vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: clamp(38px, 5vw, 52px) 0 14px;
  padding-top: clamp(30px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 28px 0 8px;
}
p { margin-bottom: 16px; color: var(--cream-dim); }
p strong, li strong { color: var(--cream); font-weight: 600; }
em { color: var(--cream); font-style: italic; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--sage);
  word-break: break-word;
}

ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
li { color: var(--cream-dim); padding-left: 20px; position: relative; }
li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}

/* ——— the callout: for the things a reader must not skim past ——— */
.callout {
  margin: 26px 0;
  background: var(--dusk);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lilac);
  border-radius: var(--r);
  padding: 20px 24px;
}
.callout--warm { border-left-color: var(--ember); }
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 8px;
}
.callout--warm .label { color: var(--ember-soft); }

/* the postal block reads as an address, not a paragraph */
.addr {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--cream-dim);
}

/* ——— footer ——— */
.doc-foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.doc-foot a { color: var(--cream-dim); text-decoration: none; }
.doc-foot a:hover { color: var(--cream); }
.doc-foot .entity { text-transform: none; letter-spacing: 0.02em; max-width: 46ch; }
