/* The four static pages (/privacy, /support, /terms, /delete-account;
   accounts-and-safety spec 14). They sit under the site's CSP, which allows no
   inline style, so every rule they use is here. The colours are the game's own
   (src/styles.css): ink, muted text and the amber of links on its paper, pairs
   that src/ui/palette.test.ts already holds to WCAG AA in both schemes. */
:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  --paper: #fbfaf6;
  --ink: #262a35;
  --muted: #5d6170;
  --line: rgb(40 44 56 / 14%);
  --link: #8f5e00;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17191f;
    --ink: #e3e6ed;
    --muted: #979dab;
    --line: rgb(226 230 240 / 14%);
    --link: #f2ba40;
  }
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: var(--link);
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.home {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

.updated {
  color: var(--muted);
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.4rem;
}

/* The privacy table: four columns on a wide screen. On a phone each row
   stacks, and its cells are labelled from their data-label. */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 40rem) {
  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  th,
  td {
    padding: 0.15rem 0;
    border: 0;
  }

  td::before {
    content: attr(data-label) ': ';
    color: var(--muted);
    font-weight: 600;
  }
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer [aria-current='page'] {
  color: var(--ink);
  text-decoration: none;
}
