/* Shared by the rules and privacy pages: the landing page's look (tokens,
   line numbers, 30px rows, inverted section titles) for long text. */

:root {
  --fg: #f2f2f2;
  --dim: #8f8f8f;
  --faint: #4d4d4d;
  --line: #262626;
  /* One text size on a grid of --row-tall lines, as on the landing page. */
  --fs: 16px;
  --row: 30px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: var(--fg);
  font: var(--fs)/var(--row) var(--mono);
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fg); color: #000; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.doc {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--row) * 2) 32px 80px 84px;
  text-transform: uppercase;
}

/* Line numbers down the left, filled in by doc.js to the page height. */
.gutter {
  position: absolute;
  top: calc(var(--row) * 2);
  left: 24px;
  width: 32px;
  color: var(--faint);
  font-size: 12px;
  text-align: right;
  white-space: pre;
  user-select: none;
  pointer-events: none;
}

p, h1, h2, ol { margin: 0; }
h1, h2 { font: inherit; }
.row { display: flex; justify-content: space-between; gap: 24px; }
.row > :last-child { text-align: right; }

.inv { display: inline-block; background: var(--fg); color: #000; padding: 0 8px; line-height: calc(var(--row) - 2px); }
.dim { color: var(--dim); }

.rule { overflow: hidden; white-space: nowrap; color: var(--faint); margin: var(--row) 0; }
.rule::before { content: "=========================================================================================================================================================================================================="; }

.sec { text-align: center; }

/* One row between blocks. */
header > * + *, section > * + * { margin-top: var(--row); }

/* The page title on a double-height line, like the landing page's prize figure. */
.dbl { font-size: 32px; line-height: calc(var(--row) * 2); }

/* Running text reads in normal case. */
.text { text-transform: none; letter-spacing: 0; max-width: 72ch; }

/* Numbered clauses: the number in its own column, the text beside it. */
.clauses { list-style: none; padding: 0; }
.clauses > li { display: grid; grid-template-columns: 5ch minmax(0, 1fr); column-gap: 24px; }
.clauses > li + li { margin-top: var(--row); }
.clauses > li > span { color: var(--dim); font-variant-numeric: tabular-nums; }

/* A short table inside a clause, ruled like the landing page's prize rows. */
.table { list-style: none; padding: 0; max-width: 56ch; }
.table li { display: flex; justify-content: space-between; gap: 24px; box-shadow: inset 0 -1px var(--line); }
.table li > :last-child { text-align: right; }
/* Two columns of words rather than a label and a figure. */
.table.words { max-width: none; }
.table.words li > * { flex: 1 1 0; }
.table.words li > :last-child { text-align: left; color: var(--dim); }

@media (max-width: 760px) {
  .doc { padding: 40px 20px 60px; }
  .gutter { display: none; }
  .row.wrap { flex-direction: column; gap: 0; }
  .row.wrap > :last-child { text-align: left; }
  .clauses > li { grid-template-columns: 4ch minmax(0, 1fr); column-gap: 8px; }
  .table.words li { display: block; padding: 6px 0; }
}
