/* Shared by the terms and privacy pages. Colours and type match the landing page. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --soft: #f3f5f7;
  --ink: #14181f;
  --muted: #4a5361;
  --rule: #d5dae0;
  --blue: #1d4ed8;

  color-scheme: light;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 112.5%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #10141b;
    --soft: #161c26;
    --ink: #f2f4f7;
    --muted: #b3bcc9;
    --rule: #2c3644;
    --blue: #8fb0ff;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #10141b;
  --soft: #161c26;
  --ink: #f2f4f7;
  --muted: #b3bcc9;
  --rule: #2c3644;
  --blue: #8fb0ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.top-link {
  font-weight: 700;
  white-space: nowrap;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.updated {
  margin-top: 0.5rem;
  color: var(--muted);
}

.summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  border-radius: 0.5rem;
  background: var(--soft);
}

h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

main p,
main ul {
  margin-top: 0.75rem;
}

main ul {
  padding-left: 1.25rem;
}

main li + li {
  margin-top: 0.375rem;
}

main a {
  color: var(--blue);
  font-weight: 700;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.foot :first-child {
  margin-right: auto;
}
