/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:        #00c8ff;
  --cyan-dark:   #0099cc;
  --cyan-glow:   rgba(0, 200, 255, 0.35);
  --blue:        #0057ff;
  --blue-dark:   #003fc2;
  --green:       #00ff88;
  --green-glow:  rgba(0, 255, 136, 0.3);
  --gradient:    linear-gradient(135deg, #0057ff 0%, #00c8ff 100%);
  --gradient-hero: radial-gradient(ellipse at 60% 40%, #001a4d 0%, #060d1b 55%, #000810 100%);
  --bg:          #060d1b;
  --bg-card:     #0b1628;
  --bg-alt:      #081020;
  --text:        #ddeeff;
  --text-muted:  #6a8aaa;
  --border:      rgba(0, 200, 255, 0.15);
  --border-hover:rgba(0, 200, 255, 0.45);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0, 200, 255, 0.12);
  --shadow-hover:0 8px 40px rgba(0, 200, 255, 0.28);
  --glow-text:   0 0 20px rgba(0, 200, 255, 0.6);
  --transition:  0.25s ease;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --cyan:         #0057cc;
  --cyan-dark:    #003fa0;
  --cyan-glow:    rgba(0, 87, 204, 0.25);
  --blue:         #0040dd;
  --blue-dark:    #002eb0;
  --green:        #00a05a;
  --green-glow:   rgba(0, 160, 90, 0.25);
  --gradient:     linear-gradient(135deg, #0040dd 0%, #0099dd 100%);
  --gradient-hero:radial-gradient(ellipse at 60% 40%, #dbeeff 0%, #eef4ff 55%, #f5f8ff 100%);
  --bg:           #f0f5ff;
  --bg-card:      #ffffff;
  --bg-alt:       #e8f0ff;
  --text:         #0a1628;
  --text-muted:   #4a6080;
  --border:       rgba(0, 87, 204, 0.14);
  --border-hover: rgba(0, 87, 204, 0.38);
  --shadow:       0 4px 24px rgba(0, 87, 204, 0.1);
  --shadow-hover: 0 8px 40px rgba(0, 87, 204, 0.22);
  --glow-text:    0 0 20px rgba(0, 87, 204, 0.35);
}

/* Light theme overrides */
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .hero__title { text-shadow: 0 2px 20px rgba(0,0,0,0.08); color: var(--text); }
[data-theme="light"] .hero__subtitle { color: rgba(10, 22, 40, 0.7); }
[data-theme="light"] .hero__badge {
  background: rgba(0, 87, 204, 0.08);
  border-color: rgba(0, 87, 204, 0.25);
  color: var(--cyan);
  box-shadow: none;
}
[data-theme="light"] .site-header {
  background: rgba(240, 245, 255, 0.9);
  border-bottom-color: rgba(0, 87, 204, 0.12);
}
[data-theme="light"] .site-nav__link { color: var(--text-muted); }
[data-theme="light"] .site-nav__link:hover { color: var(--cyan); text-shadow: none; }
[data-theme="light"] .site-header__logo { filter: none; }
[data-theme="light"] .step__num { box-shadow: 0 4px 12px var(--cyan-glow); }
[data-theme="light"] .cta-box {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,87,204,0.1);
}
[data-theme="light"] .cta-box__title { color: var(--text); }
[data-theme="light"] .cta-box__subtitle { color: var(--text-muted); }
[data-theme="light"] .form-group label { color: var(--text-muted); }
[data-theme="light"] .form-group input {
  background: #f5f8ff;
  border-color: rgba(0, 87, 204, 0.18);
  color: var(--text);
}
[data-theme="light"] .form-group input::placeholder { color: rgba(74,96,128,0.5); }
[data-theme="light"] .form-group input:focus {
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 87, 204, 0.1);
}
[data-theme="light"] .footer {
  background: #dce8f8;
  color: var(--text-muted);
  border-top-color: rgba(0,87,204,0.12);
}
[data-theme="light"] .footer__link { color: var(--text-muted); }
[data-theme="light"] .footer__link:hover { color: var(--cyan); text-shadow: none; }
[data-theme="light"] .faq-item__question { color: var(--text); }
[data-theme="light"] .faq-item__answer p { color: var(--text-muted); }
[data-theme="light"] .pricing-card--featured {
  box-shadow: 0 0 24px rgba(0,87,204,0.15);
  background: linear-gradient(160deg, #eaf1ff 0%, #fff 100%);
}
[data-theme="light"] .pricing-card__price { color: var(--text); }
[data-theme="light"] .pricing-card--featured .pricing-card__price { color: var(--cyan); text-shadow: none; }
[data-theme="light"] .form-msg--success { background: #edfaf3; color: #1a7a45; border-color: #a3dfc0; }
[data-theme="light"] .form-msg--error { background: #fff0f3; color: #c0143c; border-color: #ffb3c1; }
[data-theme="light"] .legal-doc code { background: #eef3ff; border-color: rgba(0,87,204,0.15); color: var(--cyan); }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 200, 255, 0.55);
}
.btn--outline {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 0 0 var(--cyan);
}
.btn--outline:hover {
  background: rgba(0, 200, 255, 0.1);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}
.btn--large { padding: 18px 44px; font-size: 1.1rem; }
.btn--full { width: 100%; text-align: center; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section__title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 52px;
  font-size: 1.05rem;
}

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 13, 27, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.site-header__logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.site-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.site-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), text-shadow var(--transition);
  white-space: nowrap;
}
.site-nav__link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}
.site-header__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-header__inner { justify-content: space-between; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 164px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 45%, rgba(0, 87, 255, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 70%, rgba(0, 200, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 85% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(0,200,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 20%, rgba(0,200,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(0,200,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(0,255,136,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 85%, rgba(0,200,255,0.2) 0%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15), inset 0 0 20px rgba(0, 200, 255, 0.05);
  letter-spacing: 0.03em;
}
.hero__title {
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0, 200, 255, 0.3), 0 2px 20px rgba(0,0,0,0.5);
}
.hero__title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: var(--glow-text);
}
.hero__subtitle {
  color: rgba(180, 220, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

/* ===== Why (Cards) ===== */
.why { background: var(--bg-alt); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}
.card:hover::before { opacity: 1; }
.card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.card__title {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text);
}
.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Services ===== */
.services { background: var(--bg); }
.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}
.service-item:last-child { border-bottom: none; }
.service-item:hover { padding-left: 8px; }
.service-item__num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 56px;
  line-height: 1;
  padding-top: 2px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.service-item__body h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text);
}
.service-item__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Steps ===== */
.steps { background: var(--bg-alt); }
.steps__list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  flex: 1;
  min-width: 150px;
  max-width: 180px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 16px var(--cyan-glow);
}
.step__body h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
}
.step__body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.step__arrow {
  font-size: 1.5rem;
  color: var(--cyan);
  align-self: center;
  padding: 0 4px;
  flex-shrink: 0;
  opacity: 0.6;
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* ===== Pricing ===== */
.pricing { background: var(--bg); }
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}
.pricing-card--featured {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.2), 0 4px 24px rgba(0, 200, 255, 0.1);
  background: linear-gradient(160deg, #0b1e3d 0%, #0b1628 100%);
}
.pricing-card--featured:hover {
  box-shadow: 0 0 48px rgba(0, 200, 255, 0.35), 0 12px 40px rgba(0, 200, 255, 0.15);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 16px var(--cyan-glow);
  letter-spacing: 0.03em;
}
.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.pricing-card__price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1;
}
.pricing-card--featured .pricing-card__price {
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow);
}
.pricing-card__price span {
  font-size: 1.2rem;
  font-weight: 600;
}
.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pricing-card__features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--green-glow);
}

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--cyan); }
.faq-item__icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform var(--transition);
  flex-shrink: 0;
  text-shadow: 0 0 12px var(--cyan-glow);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item__answer p {
  color: var(--text-muted);
  padding-bottom: 22px;
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section { background: var(--bg); }
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.1), 0 12px 48px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: var(--gradient);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.cta-box__title {
  color: var(--text);
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.cta-box__title span {
  color: var(--cyan);
  text-shadow: var(--glow-text);
}
.cta-box__subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cta-form__fields {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 200, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input::placeholder { color: rgba(106, 138, 170, 0.6); }
.form-group input:focus {
  border-color: var(--cyan);
  background: rgba(0, 200, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
}
.form-group input.error { border-color: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12); }

.cta-form .btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--cyan-glow);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.cta-form .btn--primary:hover {
  box-shadow: 0 8px 40px rgba(0, 200, 255, 0.5);
}

/* ===== Footer ===== */
.footer {
  background: #040a16;
  color: var(--text-muted);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps__list { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
  .step__arrow { display: none; }
  .pricing__cards { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .service-item { gap: 16px; }
  .service-item__num { font-size: 1.8rem; min-width: 40px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero__title br { display: none; }
  .btn--large { padding: 16px 28px; }
}

/* ===== Form message ===== */
.form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
}
.form-msg--success {
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.form-msg--error {
  background: rgba(255, 77, 109, 0.08);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

/* reCAPTCHA badge */
.grecaptcha-badge { opacity: 0.5; }
.grecaptcha-badge:hover { opacity: 1; }

/* ===== Form consent checkbox ===== */
.form-consent {
  margin-bottom: 20px;
  text-align: left;
}
.form-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-consent__checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.form-consent__link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent__link:hover { opacity: 0.8; }

/* ===== Footer links ===== */
.footer__links {
  margin-top: 8px;
  font-size: 0.85rem;
}
.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}
.footer__link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.footer__sep {
  margin: 0 8px;
  color: rgba(106,138,170,0.3);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
}
.theme-toggle__track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 50px;
  background: rgba(0, 200, 255, 0.15);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover .theme-toggle__track {
  border-color: var(--border-hover);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.theme-toggle__thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition);
  box-shadow: 0 0 8px var(--cyan-glow);
}
[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(20px);
  background: var(--gradient);
  box-shadow: 0 0 8px var(--cyan-glow);
}
[data-theme="light"] .theme-toggle__track {
  background: rgba(0, 87, 204, 0.1);
}
.theme-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
  transition: opacity var(--transition), transform var(--transition);
  user-select: none;
}
.theme-toggle__icon--moon { opacity: 1; }
.theme-toggle__icon--sun  { opacity: 0.4; }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 0.4; }
[data-theme="light"] .theme-toggle__icon--sun  { opacity: 1; }

/* ===== Legal pages ===== */
.legal-doc { max-width: 800px; margin: 0 auto; }
.legal-doc h1 { margin-bottom: 8px; }
.legal-doc__date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-doc h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-doc h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--cyan);
}
.legal-doc p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-doc ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-doc ul li { margin-bottom: 6px; }
.legal-doc a { color: var(--cyan); text-decoration: underline; }
.legal-doc a:hover { color: var(--cyan-dark); }
.legal-doc code {
  background: rgba(0,200,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--cyan);
}
.legal-doc__back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
