/* Shared by /privacy and /terms in both languages. There is no build step here
   on purpose, so this file is the only place page styling lives. */

:root {
  color-scheme: light dark;

  --ink: #16181d;
  --ink-soft: #4a5058;
  --ink-faint: #767d87;
  --rule: #e3e5ea;
  --surface: #ffffff;
  --surface-sunk: #f6f7f9;
  --accent: #2f5bd0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ebef;
    --ink-soft: #a9b0bb;
    --ink-faint: #79808b;
    --rule: #2a2e36;
    --surface: #14161a;
    --surface-sunk: #1b1e24;
    --accent: #8aa9f5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3.5rem 1.5rem 6rem;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

/* Header ------------------------------------------------------------------ */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.masthead a.wordmark {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.langs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.langs a,
.langs span {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}

.langs a {
  color: var(--ink-soft);
}

.langs a:hover {
  color: var(--ink);
  background: var(--surface-sunk);
}

.langs [aria-current="true"] {
  color: var(--ink);
  background: var(--surface-sunk);
  font-weight: 600;
}

/* Document ---------------------------------------------------------------- */

h1 {
  margin: 2.75rem 0 0.75rem;
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.updated {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

h2 {
  margin: 3rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

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

p {
  margin: 0.9rem 0;
}

ul {
  margin: 0.9rem 0;
  padding-left: 1.25rem;
}

li {
  margin: 0.45rem 0;
}

li::marker {
  color: var(--ink-faint);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* A short list of takeaways above the fold, so the whole document does not
   have to be read to learn the parts most people came for. */
.summary {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-sunk);
  border-radius: 0.75rem;
}

.summary ul {
  margin: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

/* Tables scroll inside their own box rather than widening the page. */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.7rem 1rem 0.7rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

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

tbody tr:last-child td {
  border-bottom: none;
}

/* Footer ------------------------------------------------------------------ */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.875rem;
}

footer p {
  margin: 0.4rem 0;
  color: inherit;
}

footer a {
  color: var(--ink-soft);
}

@media (max-width: 30rem) {
  body {
    padding: 2.5rem 1.25rem 4rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
