:root {
  color-scheme: light dark;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #5d6876;
  --line: #d8dde5;
  --accent: #173a63;
  --accent-soft: #e8eef5;
  --focus: #0b65c2;
  --measure: 47rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #10151c;
    --surface: #151c25;
    --ink: #eef2f7;
    --muted: #aeb8c5;
    --line: #303a48;
    --accent: #9ebbd9;
    --accent-soft: #1b2a3b;
    --focus: #74b9ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.site-header,
.site-footer {
  width: min(calc(100% - 2rem), 68rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 740;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.language-nav a {
  color: inherit;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

main {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.home-main {
  width: min(calc(100% - 2rem), 60rem);
}

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

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 7vw, 4.3rem);
  font-weight: 760;
}

.legal-main h1,
.support-main h1 {
  font-size: clamp(2.15rem, 6vw, 3.7rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 710;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

p,
ul,
ol,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

li + li {
  margin-top: 0.45rem;
}

.lede {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  line-height: 1.65;
}

.summary-line {
  padding-left: 1rem;
  border-left: 0.22rem solid var(--accent);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--line);
}

.route-group {
  padding: clamp(1.35rem, 4vw, 2rem);
  background: var(--surface);
}

.route-group p {
  color: var(--muted);
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metadata {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  margin: 2rem 0 3rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.metadata dt {
  color: var(--muted);
}

.metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.section-index {
  margin: 0 0 3rem;
  padding: 0 0 0 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.section-index li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.content-section {
  scroll-margin-top: 1.5rem;
  padding-block: 2.15rem;
  border-top: 1px solid var(--line);
}

.content-section:last-child {
  padding-bottom: 0;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 0.22rem solid var(--accent);
  background: var(--accent-soft);
}

.notice > :last-child {
  margin-bottom: 0;
}

.support-address {
  margin: 2rem 0 3rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.support-address a {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.faq-item {
  padding-block: 1.45rem;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

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

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

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

  .section-index {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
