/* Passweg's website: the legal pages, help, and a short page about the app (plan 11).
   One column, readable on a phone, light and dark like the phone. The petrol is the app's
   provisional seed color (design/brand.json) and its dark-theme counterpart. */

:root {
  color-scheme: light dark;
  --text: #191c1d;
  --muted: #3f484b;
  --background: #fbfcfd;
  --surface: #eef1f2;
  --accent: #00687a;
  --rule: #c8d0d3;
  --notice: #fff4d6;
  --notice-text: #3d2e00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e1e3e4;
    --muted: #bfc8cb;
    --background: #111415;
    --surface: #1d2022;
    --accent: #84d2e6;
    --rule: #3f484b;
    --notice: #3d2e00;
    --notice-text: #ffe08e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

/* The app icon (icon.svg, generated by scripts/design/export_icons.py), as tall as a line of the name. */
.brand img { width: 2rem; height: 2rem; }

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

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.25rem; }

p, ul, ol, dl, table { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }

.lead { font-size: 1.125rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }

.notice {
  background: var(--notice);
  color: var(--notice-text);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

address { font-style: normal; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 0.5rem; }
}

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem; border-bottom: 1px solid var(--rule); }
th { background: var(--surface); }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
