:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --dark: #020617;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--muted); }
h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; }
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}
.section { padding: 88px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%), linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: var(--white);
}
.section-dark h2,
.section-dark p,
.section-dark .eyebrow,
.section-dark strong,
.section-dark span { color: var(--white); }
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-heading-light p { color: rgba(255,255,255,0.8); }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.lead {
  font-size: 1.08rem;
  max-width: 62ch;
}
.lead-sm { max-width: 52ch; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--dark);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; z-index: 9999; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.compact-header { position: static; }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 999px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--line);
  box-shadow: none;
}
.btn-sm { min-height: 42px; padding: 0 16px; }
.btn-block { width: 100%; margin-bottom: 12px; }

.hero {
  padding-top: 84px;
  padding-bottom: 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}
.hero-copy { max-width: 700px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.hero-points li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  font-size: 0.95rem;
}
.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.mini-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 18px;
}
.info-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.info-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.info-list span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-list strong { display: block; font-size: 1rem; }

.two-col,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature-card p { margin-bottom: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.stat-card strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.contact-card h3,
.contact-panel h3 { margin-bottom: 10px; }
.contact-panel { align-self: start; }
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.small-note { font-size: 0.95rem; margin-bottom: 0; }

.site-footer {
  padding-top: 26px;
  background: var(--dark);
  color: rgba(255,255,255,0.82);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 32px 0;
}
.footer-brand span,
.site-footer h3,
.site-footer a { color: #fff; }
.footer-copy { max-width: 40ch; color: rgba(255,255,255,0.72); }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.72); }

.legal-main {
  padding: 56px 0 96px;
  min-height: calc(100vh - 180px);
}
.legal-shell {
  max-width: 900px;
}
.last-updated {
  margin-top: -4px;
  margin-bottom: 24px;
  color: var(--muted);
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.legal-card h2 {
  font-size: 1.3rem;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-footer { margin-top: auto; }

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .cards-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    right: 16px;
    top: 82px;
    width: min(320px, calc(100% - 32px));
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a,
  .site-nav .btn { width: 100%; }
  .legal-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .hero,
  .section { padding: 72px 0; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-grid,
  .two-col,
  .contact-grid,
  .cards-grid,
  .stats-grid,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }
  .hero-points { flex-direction: column; }
  .footer-bottom { align-items: flex-start; }
  .legal-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover,
  .btn:focus-visible { transform: none; }
}
