:root {
  color-scheme: light;
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f9fafb;
  --text: #10213a;
  --muted: #5f6b7a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --border: #dfe4ea;
  --success: #047857;
  --success-soft: #ecfdf5;
  --radius-large: 20px;
  --radius-medium: 16px;
  --radius-small: 12px;
  --shadow-subtle: 0 1px 2px rgb(16 33 58 / 6%);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 28%);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 750;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--text);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

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

.shell {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(223 228 234 / 90%);
  background: rgb(246 247 249 / 94%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 6px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  content: "";
}

.brand-mark::before {
  top: 7px;
}

.brand-mark::after {
  bottom: 7px;
}

.site-nav ul,
.footer-nav {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 14px;
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  min-height: calc(100vh - 240px);
}

.hero,
.page-heading {
  padding-block: clamp(64px, 10vw, 112px);
}

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

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-copy,
.page-summary {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.updated {
  display: inline-flex;
  min-height: 40px;
  margin-top: 24px;
  padding: 8px 12px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1e40af;
  font-size: 0.875rem;
  font-weight: 650;
}

.privacy-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

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

.status-line {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 10px;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.section {
  padding-block: 72px;
}

.section-compact {
  padding-block: 48px 80px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

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

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.card p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.link-card {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.link-card:hover {
  border-color: #93b4f4;
  color: inherit;
  transform: translateY(-2px);
}

.link-card p {
  flex: 1;
}

.card-link-label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-weight: 700;
}

.card-link-label span:last-child {
  font-size: 1.35rem;
}

.feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.feature-list li {
  padding: 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--surface);
}

.page-heading {
  padding-bottom: 48px;
}

.page-heading h1 {
  max-width: 820px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.document-layout {
  display: grid;
  padding-bottom: 96px;
  align-items: start;
  gap: 48px;
  grid-template-columns: 224px minmax(0, 760px);
}

.table-of-contents {
  position: sticky;
  top: 104px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.table-of-contents p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-of-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-of-contents a {
  display: flex;
  min-height: 44px;
  padding: 8px;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.table-of-contents a:hover {
  background: var(--surface-subtle);
  color: var(--accent);
}

.legal-document {
  min-width: 0;
}

.legal-section {
  padding-block: 8px 40px;
  scroll-margin-top: 104px;
}

.legal-section + .legal-section {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a,
.contact-link {
  overflow-wrap: anywhere;
}

.callout {
  margin-block: 24px;
  padding: 20px 22px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-medium);
  background: var(--accent-soft);
}

.callout strong,
.callout h3 {
  color: #1e3a8a;
}

.callout p,
.callout li {
  color: #334e7d;
}

.callout-warning {
  border-color: #f4d9a0;
  background: #fffbeb;
}

.callout-warning strong,
.callout-warning h3 {
  color: #854d0e;
}

.callout-warning p,
.callout-warning li {
  color: #713f12;
}

.plain-list {
  padding-left: 22px;
}

.steps {
  padding-left: 24px;
}

.steps li {
  padding-left: 4px;
}

.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid .card {
  padding: 22px;
}

.button-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  min-height: 168px;
  padding-block: 32px;
  align-items: center;
  gap: 24px;
  grid-template-columns: 1fr auto;
}

.footer-copy p {
  margin-bottom: 4px;
}

.footer-copy p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (max-width: 840px) {
  .hero-grid,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    gap: 32px;
  }

  .privacy-card {
    max-width: 560px;
  }

  .document-layout {
    gap: 32px;
  }

  .table-of-contents {
    position: static;
  }

  .table-of-contents ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .table-of-contents a {
    min-height: 48px;
    padding-inline: 12px;
    background: var(--surface-subtle);
  }

  .card-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 144px;
  }

  .shell {
    width: min(100% - 32px, var(--content-width));
  }

  .header-inner {
    display: grid;
    padding-top: 8px;
    gap: 0;
  }

  .brand {
    width: fit-content;
  }

  .site-nav {
    min-width: 0;
    margin-inline: -8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav ul {
    width: max-content;
    padding-inline: 8px;
  }

  .site-nav a {
    padding-inline: 12px;
  }

  .hero,
  .page-heading {
    padding-block: 48px;
  }

  .section {
    padding-block: 56px;
  }

  .section-compact {
    padding-block: 32px 64px;
  }

  .document-layout {
    padding-bottom: 72px;
  }

  .legal-section,
  .legal-section + .legal-section {
    padding-block: 32px;
    scroll-margin-top: 152px;
  }

  .support-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  h1 {
    font-size: 2.15rem;
  }

  .card,
  .privacy-card {
    padding: 20px;
  }

  .table-of-contents {
    padding: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .table-of-contents,
  .site-footer,
  .skip-link {
    display: none;
  }

  .shell {
    width: 100%;
  }

  .page-heading {
    padding: 0 0 24px;
  }

  .document-layout {
    display: block;
    padding: 0;
  }

  .legal-section,
  .legal-section + .legal-section {
    padding-block: 16px;
  }

  .callout,
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
