/* Colours taken from src/theme/colors.ts so the legal pages read as part of the app. */
:root {
  --background: #f7f8ff;
  --surface: #fcfcff;
  --text-primary: #141327;
  --text-secondary: #5e5a74;
  --primary: #5b3df5;
  --primary-bright: #806cff;
  --border: #e4e2f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0d1c;
    --surface: #151732;
    --text-primary: #f4f3ff;
    --text-secondary: #a7a3c4;
    --primary: #806cff;
    --primary-bright: #9a8bff;
    --border: #262a4d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--background);
  color: var(--text-primary);
  font-family:
    'Rubik',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

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

.eyebrow {
  margin: 0;
  color: var(--primary-bright);
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 2.1rem;
  line-height: 1.25;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.updated {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

p,
li {
  color: var(--text-primary);
}

ul {
  padding-inline-start: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-secondary);
}

/* Marks a value the operator still has to fill in before publishing. */
.fill {
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: rgba(128, 108, 255, 0.16);
  color: var(--primary-bright);
  font-weight: 600;
}

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

th,
td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--surface);
  font-weight: 700;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

a {
  color: var(--primary-bright);
}

/* Wide tables must scroll inside themselves rather than the page. */
@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }
  table {
    display: block;
    overflow-x: auto;
  }
}
