/* The terms and privacy pages: plain HTML, no script, in the app's own colours. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #000000;
  --muted: #6c6c70;
  --line: #e5e5ea;
  --blank: #fff1a8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --muted: #aeaeb2;
    --line: #262628;
    --blank: #5c4b00;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 56px) 16px calc(env(safe-area-inset-bottom) + 96px);
}

a {
  color: inherit;
  transition: opacity 0.15s;
}

/* Under the pointer, or a finger, a link fades a little, as links in the app do. */
a:active {
  opacity: 0.6;
}

@media (hover: hover) {
  a:hover {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

.home {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

h1 {
  margin: 36px 0 8px;
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.updated {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}

h2 {
  margin: 44px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin: 0 0 8px;
}

/* A blank still to be filled in, and the note saying the page is a draft. */
mark {
  padding: 1px 4px;
  color: inherit;
  background: var(--blank);
  border-radius: 4px;
}

.draft {
  margin: 24px 0 28px;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  margin: 6px 0 18px;
  font-size: 15px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 14px 11px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--muted);
}

/* On a phone, each row of a table becomes a short block. */
@media (max-width: 560px) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  td {
    padding: 0 0 4px;
    border: 0;
  }

  td:first-child {
    font-weight: 600;
  }

  td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  margin-right: 18px;
}
