/* =============================================================================
   Long-form document pages (privacy.html, terms.html).

   Same ink palette as site.css but a separate, much smaller stylesheet: these
   pages are plain prose and have none of the home page's layout. They used to
   carry their own inline block of light-mode styles, which meant clicking
   Privacy in the footer dropped you onto a white page.
============================================================================= */

:root {
  --ink: #f4efe8;
  --muted: rgba(244, 239, 232, 0.72);
  --faint: rgba(244, 239, 232, 0.38);
  --accent: #ff8a4c;
  --line: rgba(244, 239, 232, 0.11);
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* Width is held on the body rather than on `body > *`. The children carry their
   own `margin` shorthands for vertical rhythm, and any shorthand later in the
   file silently cancels a `margin-inline: auto` set on the same elements. */
body {
  max-width: 808px;   /* 760 of text plus the 24px gutters */
  margin: 0 auto;
  padding: 0 24px 96px;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 107, 44, 0.13), transparent 46%),
    linear-gradient(160deg, #232b34 0%, #1b2129 52%, #14181e 100%)
    #14181e;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.doc-back {
  display: block;
  padding: 28px 0 44px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}
.doc-back:hover { color: var(--accent); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
}

h2 {
  margin: 46px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 21px;
}

h3 { margin: 30px 0 8px; font-size: 17.5px; }
h4 { margin: 24px 0 8px; font-size: 15.5px; letter-spacing: 0; }

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-decoration-color: rgba(255, 138, 76, 0.4); }

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

::selection { background: rgba(255, 138, 76, 0.28); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
