/*
 * The two policy pages, which are files rather than screens.
 *
 * `checkout-done.html` set the precedent: a page in `public/` is copied
 * verbatim and never joined to the app's bundle, so somebody reading what we
 * keep does not download a 3D renderer to do it. These two are longer than that
 * one, which is the only reason the styles are a file of their own instead of a
 * block in each head: two copies of the same rules would drift, and the second
 * page would end up looking like a different shop.
 *
 * Nothing here is generated from the app's stylesheet. Tailwind's output is
 * built from the classes the app uses and these pages use none of them, so the
 * colours are written out. They are the same values: stone-950 under
 * stone-200, emerald-300 on the links.
 */

:root {
  color-scheme: dark;
  --ground: #0c0a09;
  --raised: #1c1917;
  --edge: #292524;
  --ink: #e7e5e4;
  --quiet: #a8a29e;
  --faint: #78716c;
  --accent: #6ee7b7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--ground);
  color: var(--ink);
  font:
    16px/1.65 ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}

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

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

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

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

p {
  margin: 0 0 1rem;
}

li {
  margin: 0 0 0.5rem;
}

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

.lead {
  color: var(--ink);
  font-size: 1.05rem;
}

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.scroller {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
  color: var(--quiet);
}

th {
  color: var(--ink);
  font-weight: 600;
  background: var(--raised);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--ink);
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge);
  font-size: 0.8rem;
  color: var(--faint);
}

footer a {
  margin-right: 1rem;
}
