/*
 * Shared by the four legal pages.
 *
 * The same tokens the app uses, so somebody arriving here from Settings does
 * not feel handed off to a different company. Kept as one file rather than
 * inlined four times, because these documents get edited and four copies of a
 * stylesheet is four chances for them to drift.
 */
:root {
  --brand: #6c4df6;
  --surface: #ffffff;
  --raised: #fafafd;
  --line: #e7e5ef;
  --faint: #a8a4bb;
  --muted: #6b6880;
  --ink: #14121f;
  --flag: #e8a33d;
  --flag-wash: #fdf6e9;

  --ui: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #14131b;
    --raised: #1b1a25;
    --line: #2e2c3d;
    --faint: #6f6b85;
    --muted: #a5a1b8;
    --ink: #f2f1f7;
    --brand: #9b83ff;
    --flag: #f0b95e;
    --flag-wash: #2a2213;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

header.top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-left: auto;
}

h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin: 0 0 12px;
  text-wrap: balance;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 36px 0 10px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 6px;
}

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

.lede {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}

ul {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

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

/*
 * The disclaimer, which has to be impossible to skim past.
 *
 * These were drafted against what the software actually does, by somebody who
 * is not a lawyer. Saying so quietly at the bottom would be worse than not
 * saying it, so it sits above the first line of every document.
 */
.notice {
  border: 1px solid var(--flag);
  background: var(--flag-wash);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.tablewrap {
  overflow-x: auto;
}

footer.end {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

footer.end a {
  margin-right: 14px;
}
