/*
 * Legal pages. Loaded after style.css, and only by terms, privacy and cookies.
 *
 * A narrower measure and a plainer rhythm than the marketing pages: these are
 * documents to be read, and occasionally to be read carefully by someone who
 * is annoyed. Nothing here should feel designed at the reader.
 */

.legal {
  max-width: 76ch;
  margin: 0 auto;
  padding: 56px 0 40px;
}

.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3em; }

.legal .updated {
  color: var(--ink-faint);
  font-size: .88rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline-soft);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.4em;
  margin-bottom: .7em;
  padding-top: 1.2em;
  border-top: 1px solid var(--hairline-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.8em;
  color: var(--ink-soft);
}

.legal p, .legal li { color: var(--ink-muted); }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.2em; }
.legal li { margin-bottom: .5em; }

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

/* The table of contents at the top of each document. */
.toc {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.toc h4 {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-weight: 600;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: .3em; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--gold-bright); }

/* A statement worth not missing. Used sparingly - one or two per document, or
   it stops meaning anything. */
.legal .key {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-control);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal .key p { color: var(--ink-soft); }
.legal .key p:last-child { margin-bottom: 0; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: .93rem;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}
.legal th {
  background: var(--void);
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.legal td { color: var(--ink-muted); }
.legal tr:last-child td { border-bottom: 0; }

.legal .back {
  display: inline-block;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  width: 100%;
  font-size: .9rem;
}
