:root {
  --ink: #1a1a1a;
  --muted: #555;
  --line: #ddd;
  --bg: #fafafa;
  --accent: #0b3d5c;
  --max: 40rem;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }

header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

header {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  margin-left: 0.85rem;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { text-decoration: underline; }

h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

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

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

.steps {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2.4rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  background: #fff;
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { margin-right: 0.85rem; }

.legal-block { margin-bottom: 1.5rem; }

.legal-block h2 { margin-top: 1.5rem; }

ul.plain { padding-left: 1.2rem; }

@media (min-width: 640px) {
  h1 { font-size: 1.9rem; }
  header, main, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}
