:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5d6878;
  --line: #e4e9ef;
  --surface: #ffffff;
  --canvas: #f6f8fb;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body {
  color: var(--ink);
  margin: 0;
}

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: -3rem;
  z-index: 2;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100vw - 70rem) / 2));
  position: sticky;
  top: 0;
  z-index: 1;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.language-picker {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  white-space: nowrap;
}

.language-picker label {
  color: var(--muted);
  font-size: 0.8rem;
}

.language-picker select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 1.8rem 0.35rem 0.55rem;
}

.container {
  margin: 0 auto;
  max-width: 70rem;
  padding: 3.5rem 1.25rem 5rem;
}

.hero {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0;
}

h2 {
  font-size: 1.35rem;
  margin-top: 0;
}

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

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

.paper,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 1rem 2.5rem rgba(28, 43, 65, 0.06);
}

.paper {
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.policy {
  font-family: inherit;
  font-size: 0.98rem;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.policy.is-loading {
  color: var(--muted);
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.language-links a,
.button {
  background: var(--accent-soft);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.button {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: 1.35rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
}

.steps li::before {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-weight: 750;
  height: 1.75rem;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 1.75rem;
}

.notice {
  background: #fff8e8;
  border: 1px solid #f2d99a;
  border-radius: 0.9rem;
  color: #5d4815;
  padding: 1rem;
}

.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2rem auto 0;
  max-width: 70rem;
  padding: 0 1.25rem 2rem;
}

@media (max-width: 42rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .container {
    padding-top: 2.5rem;
  }
}
