:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef7f6;
  --text: #172033;
  --muted: #627086;
  --line: #dbe3ea;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --accent: #2563eb;
  --warning: #c78a15;
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.1);
  --radius: 8px;
  --container: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 247, 246, 0.8), rgba(246, 248, 251, 0) 360px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--brand-strong);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 860px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 234, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(100% - 40px, var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 680;
  padding: 9px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--surface-soft);
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-6px);
}

.nav-toggle-line::after {
  transform: translateY(4px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 76px 0 42px;
}

.compact-hero {
  padding-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 6vw, 4.75rem);
  font-weight: 840;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 780;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #435168;
  font-size: clamp(1.04rem, 2.2vw, 1.22rem);
}

.updated-at {
  display: inline-flex;
  margin: 24px 0 0;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-strong);
  font-size: 0.92rem;
  font-weight: 720;
  padding: 8px 11px;
}

.trust-panel {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  padding: 24px;
}

.trust-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.trust-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.trust-panel ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust-panel li {
  position: relative;
  padding-left: 26px;
  color: #47566c;
  font-size: 0.96rem;
}

.trust-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.content-section {
  padding: 30px 0 84px;
}

.content-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  border-radius: var(--radius);
  color: #4f5e73;
  font-size: 0.94rem;
  font-weight: 650;
  padding: 8px 9px;
  text-decoration: none;
}

.toc a:hover {
  background: var(--surface-soft);
  color: var(--brand-strong);
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.policy-block {
  padding: clamp(24px, 4vw, 40px);
  scroll-margin-top: 98px;
}

.policy-block + .policy-block {
  border-top: 1px solid var(--line);
}

.policy-block p {
  margin: 16px 0 0;
  color: #4b5a70;
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 26px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.footer-grid div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--brand-strong);
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px;
}

.redirect-card h1 {
  font-size: 2.4rem;
}

.redirect-card p:not(.eyebrow) {
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 760;
  padding: 10px 16px;
  text-decoration: none;
}

.button-link:hover {
  background: var(--brand-strong);
  color: #fff;
}

@media (max-width: 860px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, var(--container));
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
    padding: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 26px;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.6;
  }

  .container,
  .nav-shell {
    width: min(100% - 24px, var(--container));
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 42px;
  }

  .updated-at {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .trust-panel,
  .policy-block,
  .redirect-card {
    padding: 22px;
  }

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

  .content-section {
    padding-bottom: 54px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid div {
    justify-content: flex-start;
  }
}
