:root {
  color-scheme: light;
  --ink: #18233a;
  --muted: #536174;
  --line: #d9e1e9;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --accent: #1d8a74;
  --accent-dark: #116653;
  --warn: #7c4a03;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1040px;
  padding: 22px 24px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  background: #e4f3ef;
  color: var(--accent-dark);
}

.page-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px auto 32px;
  max-width: 960px;
  padding: 44px;
}

.hero {
  min-height: 520px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  margin: 0;
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 20px 0 34px;
  max-width: 760px;
}

.link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  text-decoration: none;
}

.link-grid a:hover {
  border-color: var(--accent);
}

.link-grid span {
  color: var(--muted);
  font-size: 14px;
}

section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

section:first-of-type {
  border-top: 0;
}

h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 12px;
}

p,
li {
  font-size: 16px;
}

ul {
  padding-left: 24px;
}

.site-footer {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin: 0 auto 24px;
    padding: 30px 22px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
