@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --ink: #1d2228;
  --muted: #5d6671;
  --line: #e2dfd8;
  --bg: #fbfaf8;
  --panel: #f2f0eb;
  --accent: #2e4756;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
header { border-bottom: 1px solid var(--line); background: var(--bg); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 96px 0 72px; }
.hero p.lead { font-size: 1.15rem; max-width: 60ch; margin-top: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.facts span strong { color: var(--ink); font-weight: 500; }
.eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; font-weight: 500; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 2rem; }
.cols > div { border-top: 2px solid var(--ink); padding-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.split p + p { margin-top: 1rem; }

ol.steps { list-style: none; counter-reset: s; display: grid; gap: 20px; margin-top: 1.5rem; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: 'Source Serif 4', serif; font-size: 1.2rem; color: var(--accent); }

.panel { background: var(--panel); padding: 32px; border-radius: 4px; }

/* Legal table */
table.legal { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
table.legal th, table.legal td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.legal th { width: 38%; color: var(--muted); font-weight: 400; padding-right: 16px; }
@media (max-width: 560px) { table.legal th, table.legal td { display: block; width: 100%; } table.legal th { border-bottom: 0; padding-bottom: 0; } }

/* Long text pages */
.doc h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.doc p, .doc li { color: var(--muted); max-width: 72ch; }
.doc ul { padding-left: 1.2rem; margin-top: .5rem; }
.doc .updated { font-size: .85rem; margin-top: .5rem; }

/* Footer */
footer { background: var(--ink); color: #c9ced4; padding: 48px 0 32px; font-size: .9rem; }
footer p { color: #c9ced4; }
footer a { color: #fff; text-decoration: none; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer h3 { color: #fff; font-size: 1rem; }
footer .legal-line { border-top: 1px solid #3a424b; margin-top: 32px; padding-top: 20px; font-size: .82rem; }
