:root {
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --muted: #5C5C66;
  --accent: #1E2A5C;
  --line: #E6E6E8;
  --measure: 680px;
}

* {
  box-sizing: border-box;
}

html {
  background: #FFFFFF;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--text);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 28px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

main {
  flex: 1 0 auto;
}

.home {
  padding: 72px 0 0;
}

.wordmark {
  margin: 0 0 12px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
}

.tagline {
  margin: 0 0 32px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.home .lead {
  margin: 0 0 28px;
  font-size: 1.125rem;
  line-height: 1.75;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.legal {
  padding: 56px 0 0;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.effective {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
}

.legal h2 {
  margin: 2.15rem 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal p {
  margin: 0 0 1rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

.not-found {
  padding: 72px 0 0;
}

.not-found h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.not-found p {
  margin: 0;
}

footer {
  flex-shrink: 0;
  margin-top: 88px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer nav a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

footer nav a:hover,
footer nav a[aria-current="page"] {
  text-decoration: underline;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  body {
    font-size: 1.0625rem;
  }

  header {
    padding-top: 22px;
  }

  .home,
  .not-found {
    padding-top: 48px;
  }

  .legal {
    padding-top: 40px;
  }

  .wordmark {
    font-size: 2.375rem;
  }

  .tagline {
    font-size: 1.4375rem;
    margin-bottom: 24px;
  }

  .legal h1,
  .not-found h1 {
    font-size: 1.75rem;
  }

  footer {
    margin-top: 64px;
    padding-bottom: 40px;
  }
}
