/*
 * The legal pages (terms, privacy, the processing agreement, account
 * deletion): static files, served as they are, in the app's own look. The
 * colours are the app's tokens (src/styles/tokens.css: slate ink, indigo
 * links, the slate-2 page), the face its Commissioner, the theme its own
 * (/theme.js sets .dark).
 */
@font-face {
  font-family: 'Commissioner';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Commissioner-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Commissioner';
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/Commissioner-Bold.ttf) format('truetype');
}

:root {
  --page: #f9f9fb;
  --card: #ffffff;
  --ink: #1c2024;
  --ink-2: #60646c;
  --rule: #dddde3;
  --link: #3a5bc7;
  color-scheme: light;
}
:root.dark {
  --page: #111113;
  --card: #18191b;
  --ink: #edeef0;
  --ink-2: #b0b4ba;
  --rule: #363a3f;
  --link: #9eb1ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Commissioner,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 46rem;
  margin: 0 auto;
  padding: 20px 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}
.bar nav a {
  color: var(--ink-2);
}
.bar nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

main {
  max-width: 46rem;
  margin: 24px auto 0;
  padding: 32px 16px 48px;
}
@media (min-width: 640px) {
  main {
    padding: 40px 48px 56px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 16px;
  }
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
.meta {
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: 14px;
}
h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}
h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-inline-start: 22px;
}
li {
  margin-bottom: 6px;
}

.table {
  overflow-x: auto;
  margin: 0 0 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
th,
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}
th {
  color: var(--ink-2);
  font-weight: 600;
}

footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--ink-2);
  font-size: 14px;
  text-align: center;
}
footer span {
  color: var(--ink);
  font-weight: 600;
  user-select: all;
}
