/*
 * `/privacy` — the canonical copy of `PRIVACY.md`, rendered by `build.mjs`.
 *
 * A separate stylesheet from the landing page, and an external one rather than
 * a `<style>` block, because this site's CSP is `style-src 'self'` with no
 * `unsafe-inline`. The game's bundled fallback copy can use a style block; it
 * ships under the game's policy, which already needs `unsafe-inline` for the
 * app. This page needs nothing of the kind, so it does not ask for it.
 *
 * Long-form and quiet: a policy is read, not scanned, so the measure is narrow
 * and nothing on it glows.
 */

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

body {
  margin: 0;
  padding: clamp(40px, 7vw, 72px) clamp(18px, 5vw, 32px) clamp(64px, 9vw, 96px);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2 {
  margin: 2.4em 0 0.5em;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.8em 0 0.4em;
  font-size: 1rem;
}

p,
li {
  color: var(--ink);
}

/* `--amber-text`, not `--amber`: this is body text at body size, and the route
   colour is about 2.9:1 on Daylight's paper. See tokens.css. */
a {
  color: var(--amber-text);
  text-underline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6em 0;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  font: 700 0.85em var(--mono);
}

table {
  display: block;
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  /* Tables in a policy carry the field-by-field detail and are the one thing
     here that cannot reflow, so they scroll rather than squeeze. */
  overflow-x: auto;
}

th,
td {
  padding: 9px 12px;
  border: 1px solid var(--rule);
  font-size: 0.93rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--chrome);
  font-weight: 700;
}

ul {
  padding-left: 20px;
}

li {
  margin: 5px 0;
}

.back {
  display: inline-block;
  margin-top: 3em;
  color: var(--ink-soft);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
