:root {
  --font-base: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --color-bg: #07090f;
  --color-surface: rgba(20, 24, 35, 0.72);
  --color-surface-light: rgba(255, 255, 255, 0.75);
  --color-primary: #5f6afc;
  --color-secondary: #82e9ff;
  --color-accent: #ff9ff2;
  --color-text: #e9ecff;
  --color-muted: rgba(233, 236, 255, 0.65);
  --color-dark-text: #151822;
  --max-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 45px rgba(7, 9, 15, 0.35);
  --shadow-glass: 0 20px 60px rgba(95, 106, 252, 0.35);
  --gradient-hero: radial-gradient(circle at top left, #5f6afc 0%, rgba(7, 9, 15, 0) 55%), radial-gradient(circle at bottom right, rgba(130, 233, 255, 0.65) 0%, rgba(7, 9, 15, 0) 45%);
  --gradient-section: linear-gradient(140deg, rgba(95, 106, 252, 0.1), rgba(130, 233, 255, 0.08));
  --transition-base: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.legal-page {
  background: #f5f6ff;
  color: #1b2132;
}

.legal-page .container {
  width: min(calc(100% - 2 * 20px), 820px);
}

.legal-page .legal-header {
  padding: 48px 0 24px;
  text-align: center;
}

.legal-page .legal-header img {
  width: 120px;
  margin: 0 auto 16px;
}

.legal-page main {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(17, 23, 41, 0.08);
  padding: 48px;
  margin-bottom: 72px;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: var(--font-display);
  color: #111628;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.legal-page h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: #2c3447;
  font-size: 1rem;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-page .legal-meta {
  color: #54607a;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 32px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  background: #f9faff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(17, 23, 41, 0.08);
}

.legal-page table th,
.legal-page table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(23, 34, 56, 0.08);
  text-align: left;
}

.legal-page table th {
  background: linear-gradient(135deg, rgba(95, 106, 252, 0.12), rgba(130, 233, 255, 0.1));
  color: #111628;
  font-weight: 600;
}

.legal-page table tbody tr:last-child td {
  border-bottom: none;
}

.legal-page footer {
  text-align: center;
  color: #5b6783;
  font-size: 0.9rem;
  padding-bottom: 48px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover,
a:focus {
  opacity: 0.85;
}

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

.container {
  width: min(calc(100% - 2 * 24px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.75);
  border-bottom: 1px solid rgba(233, 236, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand img {
  width: clamp(160px, 24vw, 220px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-text);
}

.hero {
  position: relative;
  padding: 140px 0 120px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(95, 106, 252, 0.65);
  top: -140px;
  right: 15%;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: rgba(255, 159, 242, 0.35);
  bottom: -160px;
  left: 20%;
}

.hero-grid {
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 18px 0;
  line-height: 1.2;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero .lead {
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #3d47f5);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(63, 74, 245, 0.45);
}

.btn-secondary {
  background: rgba(233, 236, 255, 0.12);
  color: var(--color-text);
  border-color: rgba(233, 236, 255, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(233, 236, 255, 0.22);
}

.btn-outline {
  border-color: rgba(233, 236, 255, 0.4);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: rgba(233, 236, 255, 0.7);
}

.hero-meta {
  display: flex;
  gap: 32px;
  color: var(--color-muted);
}

.hero-meta .stat {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  color: var(--color-text);
}

.hero-meta .label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.glass-card {
  position: relative;
  width: clamp(280px, 60vw, 380px);
  aspect-ratio: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(233, 236, 255, 0.18);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 233, 255, 0.45), rgba(7, 9, 15, 0.1));
  filter: blur(4px);
  animation: float 16s ease-in-out infinite;
}

.orb-1 {
  top: 18%;
  left: 18%;
}

.orb-2 {
  bottom: 12%;
  right: 15%;
  animation-delay: 2s;
}

.nodes {
  position: relative;
  display: grid;
  gap: 24px;
}

.nodes span {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 32px;
  background: rgba(233, 236, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(233, 236, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  animation: float 10s ease-in-out infinite;
}

.nodes span:nth-child(odd) {
  animation-delay: 4s;
}

.nodes span::after {
  content: attr(data-label);
}

.section {
  padding: 112px 0;
}

.section.light {
  background: linear-gradient(180deg, rgba(233, 236, 255, 0.04), rgba(233, 236, 255, 0));
}

.section.dark {
  background: radial-gradient(circle at top, rgba(95, 106, 252, 0.15), rgba(10, 12, 18, 0.95));
}

.section .section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--color-text);
}

.section p {
  color: var(--color-muted);
}

.cards-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(233, 236, 255, 0.08);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(130, 233, 255, 0.45);
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.service-columns h3 {
  font-family: var(--font-display);
  color: white;
  margin-bottom: 16px;
}

.service-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(233, 236, 255, 0.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.timeline-item {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  border: 1px solid rgba(233, 236, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.timeline-item .step {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(95, 106, 252, 0.95), rgba(130, 233, 255, 0.85));
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: white;
  box-shadow: var(--shadow-glass);
}

.section.cta {
  background: linear-gradient(135deg, rgba(95, 106, 252, 0.22), rgba(130, 233, 255, 0.18));
  padding: 92px 0;
}

.cta-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  background: rgba(7, 9, 15, 0.92);
  border-top: 1px solid rgba(233, 236, 255, 0.1);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) repeat(3, minmax(180px, 1fr));
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-logo img {
  width: clamp(84px, 12vw, 110px);
  filter: brightness(1.35) saturate(1.1) drop-shadow(0 16px 32px rgba(4, 7, 14, 0.45));
}

.footer-column h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: white;
}

.footer-column p {
  margin: 0;
  color: rgba(233, 236, 255, 0.72);
  line-height: 1.5;
}

.footer-column ul,
.footer-column p {
  margin: 0;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: rgba(233, 236, 255, 0.72);
}

.footer-links a:hover,
.footer-links a:focus {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(233, 236, 255, 0.06);
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(233, 236, 255, 0.6);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    max-width: 520px;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-meta .label {
    text-align: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 40px;
  }

  .glass-card {
    width: min(320px, 80vw);
  }

  .cta-actions {
    justify-content: center;
  }

  .timeline-item {
    padding-top: 48px;
  }

  .timeline-item .step {
    left: 50%;
    transform: translateX(-50%);
  }

  .cards-grid,
  .service-columns,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    justify-items: center;
    text-align: center;
  }

  .cards-grid .card {
    width: min(420px, 100%);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    gap: 18px;
  }

  .hero-meta .stat {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .cards-grid,
  .service-columns,
  .timeline {
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .hero-copy h1 {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
  }

  .hero-meta {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-column h3,
  .footer-column p,
  .footer-links ul,
  .footer-links li,
  .footer-contact p {
    text-align: center;
  }

  .footer-links ul {
    gap: 6px;
  }
}
