/*
  THE LEGAL PAGES, AND WHY THEY DO NOT LOAD styles.css.

  styles.css is thirteen thousand lines describing a map, a fleet column, a
  vehicle card and a bar along the foot. None of it is a page of prose, and
  all of it would have to be downloaded and parsed before a privacy policy
  could paint. These two pages are read once, often by somebody who is not
  signed in and may be on a phone in a yard, so they carry their own sheet
  and nothing else.

  THE TOKENS ARE THE PRODUCT'S, copied rather than imported for the same
  reason. If the palette moves, `check-console.js` is what notices — see the
  palette check, which reads styles.css. These five values are the ones a
  reader sees; they are not a second opinion about the brand, they are the
  same opinion written where it can be served on its own.
*/
:root {
  --brand: #2f7780;
  --text: #111b1d;
  --text-secondary: #56676b;
  --surface: #ffffff;
  --surface-muted: #e6edef;
  --rule: #cfe0e4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7fb3bb;
    --text: #eaf2f3;
    --text-secondary: #a9bcc0;
    --surface: #0f2b33;
    --surface-muted: #0c222a;
    --rule: #1d4350;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* 17px rather than 16: this is a document to be read, not an interface to
     be scanned, and it is often read on a phone held at arm's length. */
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.sheet {
  max-width: 44rem;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

header { margin-bottom: 40px; }

.brand {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-bottom: 28px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

.stamp {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

p, li { color: var(--text); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }

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

strong { font-weight: 650; }

/*
  THE PLAIN-ENGLISH LEAD ON EACH SECTION. A policy that can only be
  understood by somebody who already knows what it says is a policy nobody
  reads; this is the one-line version, and the paragraphs under it are the
  detail for whoever needs it.
*/
.lead {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
}

/*
  A COOKIE HAS A NAME, AND THE NAME IS THE FACT.

  The cookie policy is an inventory, so it names each key exactly — and a
  reader comparing this page against what is in their browser needs the two
  to look the same. Monospace at 0.92em because the system monospace runs
  large next to 17px body text and `aethera_handoff` would otherwise sit
  taller than the sentence holding it.
*/
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 5px;
}

/* A table reads better than prose for "what, why, how long". */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--text-secondary);
  font-weight: 650;
  white-space: nowrap;
}

/* The one thing on these pages that is a warning rather than a statement. */
.note {
  background: var(--surface);
  border-left: 3px solid var(--brand);
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 0 10px 10px 0;
}

.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 15px;
}

footer a { margin-right: 18px; }

@media (max-width: 620px) {
  .sheet { padding: 28px 18px 72px; }
  h1 { font-size: 28px; }
  /* Three columns of prose do not fit a phone; the table becomes blocks. */
  table, tbody, tr, td, th { display: block; width: 100%; }

  /*
    AND THE HEADER ROW GOES, because stacking leaves it stranded: "Name",
    "What is in it" and "How long" come out as three labels in a column with
    nothing underneath any of them, and then the rows follow unlabelled
    anyway. Each row leads with its own subject — the cookie's name, the
    stored key — so the heading was the only part that stopped making sense.
  */
  thead { display: none; }

  /* Which makes the first cell the row's heading, whether it was marked up
     as one or not. */
  tr > :first-child { color: var(--text-secondary); font-weight: 650; }

  /* Nowrap earned its place in a narrow label column; here the cell is the
     full width of the page and the next long label would simply run off it. */
  th { padding-bottom: 2px; border-bottom: 0; white-space: normal; }
  td { padding-top: 0; border-bottom: 0; }
  tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
}
