/* The privacy policy and the terms — SPEC §16.5. Two plain pages of reading,
   so they share this one file and nothing else. The --md-* values are the
   app's own (src/styles/index.css), repeated by hand like landing.html's. */

:root {
  --md-canvas: #fdfcfb;
  --md-surface: #ffffff;
  --md-ink: #080808;
  --md-muted: #545454;
  --md-faint: #8f8f8f;
  --md-rule: #ebe8e4;
  --pink: #ca3192;
  --green: #0fa43b;
  --petrol: #0b86a4;
  --amber: #fc9400;
  --font-sans: "Mona Sans Variable", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --md-canvas: #080808;
  --md-surface: #151515;
  --md-ink: #f1f1f1;
  --md-muted: #8f8f8f;
  --md-faint: #6a6a6a;
  --md-rule: #272727;
  --pink: #ffb3d5;
  --green: #ccf644;
  --petrol: #dfeef7;
  --amber: #fde100;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--md-canvas);
  color: var(--md-ink);
  font-family: var(--font-sans);
  /* As in the app (index.css): the sizes were set at Roc Grotesk's x-height. */
  font-size-adjust: 0.494;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bar {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--md-ink);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.pips {
  display: inline-flex;
  gap: 2px;
}

.pips i {
  display: block;
  height: 14px;
  border-radius: 2px;
}

.bar nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.bar nav a {
  color: var(--md-muted);
  text-decoration: none;
}

.bar nav a[aria-current="page"],
.bar nav a:hover {
  color: var(--md-ink);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.meta {
  margin: 0 0 2.5rem;
  color: var(--md-faint);
  font-size: 0.875rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--md-muted);
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

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

strong {
  font-weight: 600;
}

.card {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--md-rule);
  border-radius: 14px;
  background: var(--md-surface);
}

.card p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--md-rule);
  text-align: left;
  vertical-align: top;
}

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

/* A table of three columns is too wide for a phone; each row becomes a
   small block instead of the page scrolling sideways. */
@media (max-width: 36rem) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--md-rule);
  }
  td {
    padding: 0.1rem 0;
    border: 0;
  }
  td:first-child {
    font-weight: 600;
  }
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--md-rule);
  color: var(--md-faint);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

footer a {
  color: var(--md-faint);
  text-decoration: none;
}

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