:root {
  --brand: #2479f2;
  --brand-strong: #155fd2;
  --ink: #152235;
  --muted: #5f7188;
  --soft: #eef6ff;
  --soft-strong: #dbeeff;
  --surface: #ffffff;
  --surface-muted: #f6f9fc;
  --line: #d9e5ef;
  --dark: #07111f;
  --dark-soft: #102033;
  --dark-muted: #b7c7da;
  --success: #127b5b;
  --warning: #a15c12;
  --radius: 12px;
  --shadow: 0 18px 54px rgba(21, 34, 53, 0.12);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--ink);
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 229, 239, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 174px;
  height: auto;
}

.brand-logo-dark {
  width: 246px;
  height: auto;
}

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

.nav-links a,
.nav-menu-button,
.button {
  min-height: 44px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--brand-strong);
  outline: none;
}

.nav-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(36, 121, 242, 0.24), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b1d33 48%, #113d73 100%);
  color: #ffffff;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a9d4ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: #d4e4f7;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(36, 121, 242, 0.32);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.button-light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--brand-strong);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.phone-surface {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(390px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.phone-screen {
  min-height: 100%;
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(180deg, #f8fbff, #e8f3ff);
  color: var(--ink);
}

.app-metric {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.app-metric:first-child {
  padding-top: 0;
}

.app-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
}

.app-note {
  margin: 16px 0 0;
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-lead,
.legal-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  min-height: 240px;
  padding: 24px;
  background: var(--surface);
}

.feature span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--brand-strong);
  font-weight: 950;
}

.feature h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.dark-band {
  background: var(--dark);
  color: #ffffff;
}

.dark-band .section-lead,
.dark-band p {
  color: var(--dark-muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.legal-links {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.legal-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
}

.legal-links strong {
  display: block;
  font-size: 18px;
}

.legal-links span {
  color: var(--muted);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  background: var(--soft);
  outline: none;
}

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

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-weight: 800;
  color: var(--ink);
}

.legal-main {
  background: var(--surface-muted);
}

.legal-hero {
  width: auto;
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 72px) 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 70px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--ink);
}

.breadcrumb span {
  color: var(--muted);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.legal-layout {
  width: auto;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 72px) 72px;
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.legal-side {
  position: sticky;
  top: 96px;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.legal-side a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.legal-side a[aria-current="page"],
.legal-side a:hover,
.legal-side a:focus-visible {
  background: var(--soft);
  color: var(--brand-strong);
  outline: none;
}

.document {
  min-width: 0;
  display: grid;
  gap: 0;
  background: var(--surface);
  padding-inline: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
}

.document section {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  background: transparent;
}

.document h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  text-transform: uppercase;
}

.document h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.document p {
  margin: 0 0 16px;
  color: var(--muted);
  overflow-wrap: break-word;
}

.document ul {
  margin: 10px 0 18px;
  padding-left: 24px;
  color: var(--muted);
  overflow-wrap: break-word;
}

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

.document strong {
  color: var(--ink);
}

.legal-intro {
  padding: 0 0 34px;
}

.legal-intro p {
  color: var(--ink);
  font-size: 18px;
}

.important-note {
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.contact-line {
  color: var(--brand-strong);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .phone-surface {
    inset: 0;
    margin: 0 auto;
  }

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

  .legal-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .nav {
    min-height: 64px;
  }

  .brand-logo {
    width: 146px;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .brand-logo-dark {
    width: min(250px, 100%);
  }

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

  .feature {
    min-height: 0;
  }

  .section,
  .section-tight {
    padding: 56px 0;
  }

  .legal-hero,
  .legal-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-hero p,
  .document,
  .legal-side {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .legal-side {
    overflow-x: auto;
  }

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

@media (max-width: 420px) {
  .breadcrumb,
  .legal-hero p,
  .legal-intro p {
    font-size: 16px;
  }

  .legal-side {
    display: grid;
    overflow-x: visible;
  }
}
