/* ═══════════════════════════════════════════════════════════
   CRYOSTRAL — Emil Kowalski Motion Layer
   Loaded after embedded <style> blocks (same specificity,
   later source order → wins without !important).
═══════════════════════════════════════════════════════════ */

/* ─── EASING TOKENS (Emil's foundation) ──────────────────
   Never hand-author cubic-bezier values inline.
   Reference these everywhere.
─────────────────────────────────────────────────────────── */
:root {
  --ease-out-quint:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-quint: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer:       cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Action color — teal carries all CTAs */
  --teal:       #3AAAB6;
  --teal-light: #4CC8D5;
}

/* ─── BUTTONS: press feedback (Emil's #1 signature) ──────
   Every pressable element must acknowledge the press.
   0.97 is the sweet spot — present but not theatrical.
   Transition only transform + opacity (GPU only, no layout).
─────────────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost,
.btn-nav-cta,
.btn-submit,
.sp-cta {
  transition:
    transform  160ms var(--ease-out-quint),
    background 220ms var(--ease-out-quint),
    box-shadow 220ms var(--ease-out-quint),
    color      160ms var(--ease-out-quint),
    border-color 160ms var(--ease-out-quint);
}
.btn-primary:active,
.btn-nav-cta:active,
.btn-submit:active,
.sp-cta:active { transform: scale(0.97); }

.btn-ghost:active { transform: scale(0.97); }

/* ─── ACTION COLOR ────────────────────────────────────── */
.btn-primary,
.btn-submit,
.sp-cta {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover,
.btn-submit:hover,
.sp-cta:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(58, 170, 182, 0.32);
}
.btn-primary:active,
.btn-submit:active,
.sp-cta:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-nav-cta {
  background: var(--teal);
  color: #fff;
}
.btn-nav-cta:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-1px);
}
.btn-nav-cta:active { transform: scale(0.97); }

/* ─── BUTTON SHIMMER + LIFE ───────────────────────────── */

/* Solid CTAs get a shimmer beam + stronger hover lift */
.btn-primary,
.btn-nav-cta,
.btn-submit,
.sp-cta {
  position: relative;
  overflow: hidden;
}

/* Shimmer beam — skewed white streak that sweeps on hover */
.btn-primary::before,
.btn-nav-cta::before,
.btn-submit::before,
.sp-cta::before {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%;
  left: -90%; width: 55%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.38) 45%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 480ms var(--ease-out-quint);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .btn-submit:hover,
  .sp-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(58, 170, 182, 0.45);
  }
  .btn-nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(58, 170, 182, 0.38);
  }
  .btn-primary:hover::before,
  .btn-nav-cta:hover::before,
  .btn-submit:hover::before,
  .sp-cta:hover::before {
    left: 140%;
  }
}

/* Ghost button: fill slides in from left + border lights up */
.btn-ghost {
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 227, 216, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out-quint);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover::before { transform: scaleX(1); }
  .btn-ghost:hover {
    border-color: rgba(232, 227, 216, 0.6);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(232, 227, 216, 0.2);
  }
}

/* Hero primary CTA: breathing attention ring after page load */
@keyframes ctaAttention {
  0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(58, 170, 182, 0); }
  28%            { box-shadow: 0 0 0 14px rgba(58, 170, 182, 0.22); }
}

.hero-ctas .btn-primary {
  animation: ctaAttention 3.2s ease-in-out 2s infinite;
}

@media (hover: hover) and (pointer: fine) {
  .hero-ctas .btn-primary:hover {
    animation: none;
    box-shadow: 0 16px 40px rgba(58, 170, 182, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ctas .btn-primary { animation: none; }
  .btn-primary::before,
  .btn-nav-cta::before,
  .btn-submit::before,
  .sp-cta::before,
  .btn-ghost::before { display: none; }
}

/* ─── NAV DIMMING (Emil's signature nav pattern) ─────────
   Hovering a link dims all its siblings.
   The hovered link stays full brightness.
   Only on precise pointer devices.
─────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .nav-links:hover a {
    opacity: 0.45;
    transition: opacity 200ms var(--ease-out-quint);
  }
  .nav-links a:hover {
    opacity: 1;
    color: #fff;
  }
  .nav-links a {
    transition:
      opacity     200ms var(--ease-out-quint),
      color       160ms var(--ease-out-quint);
  }
}

/* ─── NAV UNDERLINE: precise origin ─────────────────────── */
.nav-links a::after {
  transition: transform 220ms var(--ease-out-quint);
}

/* ─── CARDS: Emil-precise hover ─────────────────────────── */
.usp-card,
.physics-card,
.sector-card,
.app-card,
.blog-card,
.review-card {
  transition:
    transform    280ms var(--ease-out-quint),
    background   220ms var(--ease-out-quint),
    border-color 220ms var(--ease-out-quint),
    box-shadow   280ms var(--ease-out-quint);
}

/* Cards scale on press too — they're pressable surfaces */
@media (hover: hover) and (pointer: fine) {
  .usp-card:hover        { transform: translateY(-3px); }
  .physics-card:hover    { transform: translateY(-3px); }
  .sector-card:hover     { transform: translateY(-2px); }
  .blog-card:hover       { transform: translateY(-2px); }
  .review-card:hover     { transform: translateY(-2px); }
  .usp-card:active,
  .physics-card:active,
  .sector-card:active,
  .blog-card:active      { transform: scale(0.98) translateY(0); }
}

/* ─── SOCIAL LINKS ───────────────────────────────────────── */
.social-link {
  transition:
    background 180ms var(--ease-out-quint),
    border-color 180ms var(--ease-out-quint),
    color 180ms var(--ease-out-quint),
    transform 160ms var(--ease-out-quint);
}
.social-link:active { transform: scale(0.9); }

/* ─── TESTI ARROWS ───────────────────────────────────────── */
.testi-arrow {
  transition:
    background  180ms var(--ease-out-quint),
    border-color 180ms var(--ease-out-quint),
    color 180ms var(--ease-out-quint),
    transform   140ms var(--ease-out-quint);
}
.testi-arrow:active { transform: scale(0.92); }

/* ─── WHATSAPP FLOAT: press feedback ────────────────────── */
.wa-float {
  transition:
    transform  180ms var(--ease-out-quint),
    box-shadow 220ms var(--ease-out-quint);
}
.wa-float:hover  { transform: scale(1.08); }
.wa-float:active { transform: scale(0.95); }

/* ─── FAQ ACCORDION: precise open/close ─────────────────── */
.faq-q {
  transition:
    color 160ms var(--ease-out-quint);
}
.faq-icon {
  transition: transform 260ms var(--ease-out-quint);
}
.faq-a {
  transition:
    max-height 320ms var(--ease-out-quint),
    padding    280ms var(--ease-out-quint);
}

/* ─── FORM INPUTS: Emil-precise focus ───────────────────── */
.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form textarea,
.contact-form select {
  transition:
    border-color 180ms var(--ease-out-quint),
    background   180ms var(--ease-out-quint),
    box-shadow   220ms var(--ease-out-quint);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(58, 170, 182, 0.6);
  box-shadow: 0 0 0 3px rgba(58, 170, 182, 0.08);
}

/* ─── SLIDER THUMB ───────────────────────────────────────── */
.roi-slider::-webkit-slider-thumb { background: var(--teal); }
.roi-slider::-moz-range-thumb     { background: var(--teal); border-color: transparent; }

/* ─── LOGO HOVER ─────────────────────────────────────────── */
.nav-logo,
.footer-logo {
  transition: opacity 180ms var(--ease-out-quint);
}
.nav-logo:hover,
.footer-logo:hover { opacity: 0.75; }

/* ─── FOOTER LINKS: group dimming ────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .footer-col ul:hover a {
    opacity: 0.4;
    transition: opacity 180ms var(--ease-out-quint);
  }
  .footer-col ul a:hover  {
    opacity: 1;
    color: #F0F6FF;
  }
  .footer-col ul a {
    transition: opacity 180ms var(--ease-out-quint), color 160ms var(--ease-out-quint);
  }
}

/* ─── SERVICE TAB ────────────────────────────────────────── */
.service-tab {
  transition:
    color        180ms var(--ease-out-quint),
    border-color 180ms var(--ease-out-quint);
}
.service-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ─── CERT BADGES ────────────────────────────────────────── */
.badge,
.cert-badge,
.pdf-badge {
  transition:
    border-color 180ms var(--ease-out-quint),
    color        180ms var(--ease-out-quint);
}
@media (hover: hover) and (pointer: fine) {
  .badge:hover,
  .cert-badge:hover { color: var(--teal); border-color: rgba(58,170,182,0.45); }
}

/* ─── BLOG LINK ───────────────────────────────────────────── */
.blog-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(58,170,182,0.25);
  transition:
    color        160ms var(--ease-out-quint),
    border-color 160ms var(--ease-out-quint);
}
.blog-link:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ─── BLOG CARD IMAGE ─────────────────────────────────────── */
.blog-img img,
.gallery-card img,
.team-card img,
.about-img-wrap img {
  transition: transform 600ms var(--ease-out-quint);
}

/* ─── PROGRESS BAR ────────────────────────────────────────── */
#progress-bar { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }

/* ─── HERO GLOW: teal tint ────────────────────────────────── */
.hero-glow {
  background: radial-gradient(ellipse,
    rgba(58, 170, 182, 0.1) 0%,
    rgba(232, 227, 216, 0.04) 40%,
    transparent 70%
  );
}

/* ─── STARS: warm amber (semantically correct) ───────────── */
.testi-stars,
.review-stars,
.hero-badge .stars { color: #F5A623; }

/* ─── PHYSICS TEMP NUMBERS ────────────────────────────────── */
.physics-temp { color: var(--teal); }

/* ─── STORY VBAR ──────────────────────────────────────────── */
.story-vbar-fill { background: var(--teal); }

/* ─── CURSOR GLOW ─────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(58, 170, 182, 0.055) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 9;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-quint);
  mix-blend-mode: screen;
  will-change: left, top, opacity;
}

/* ─── FILM GRAIN OPTIMIZATION ─────────────────────────────── */
/* 1.2s instead of 0.35s — ~3× cheaper with no visible difference */
.hero-grain {
  animation-duration: 1.2s;
  animation-timing-function: steps(4);
}

/* ─── HAMBURGER BUTTON ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  transition: opacity 160ms var(--ease-out-quint);
}
.hamburger:active { opacity: 0.6; }
.hamburger span {
  width: 24px;
  height: 2px;
  background: #F0F6FF;
  border-radius: 2px;
  transition: transform 280ms var(--ease-out-quint),
              opacity   220ms var(--ease-out-quint);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: fixed;
  top: 112px;
  left: 0; right: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 227, 216, 0.1);
  padding: 8px 32px 24px;
  z-index: 499;
}
.nav-links.mobile-open li { width: 100%; }
.nav-links.mobile-open a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(232, 227, 216, 0.06);
  opacity: 1 !important;
}
.nav-links.mobile-open li:last-child a { border-bottom: none; }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links:not(.mobile-open),
  .nav-phone { display: none; }
}

@media (max-width: 640px) {
  /* Hide CTA button so hamburger stays visible */
  .btn-nav-cta { display: none !important; }
  /* Hide phone number in topbar (hotline button stays) */
  .topbar-phone { display: none; }
}

/* ─── LAZY IMAGE REVEAL ───────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 400ms var(--ease-out-quint);
}
img[loading="lazy"].loaded { opacity: 1; }

/* ─── FOCUS VISIBLE ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible { border-radius: 4px; }

/* ─── PERFORMANCE: defer paint on off-screen sections ────── */
.stats-section,
.physics-section,
.reviews-section,
.gallery-section,
.clients-section,
.roi-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 560px;
}

/* ─── REDUCED MOTION (always last) ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15ms !important;
    scroll-behavior: auto !important;
  }
  .hero-grain,
  .ticker-track,
  .clients-track,
  .reviews-track,
  .hero-glow,
  .wa-float,
  .scroll-dot,
  .topbar-flag,
  .ba-handle-btn,
  .ba-handle-btn::before,
  .ba-handle-btn::after { animation: none !important; }
  #cursor-glow { display: none; }

  /* Keep buttons accessible — remove scale only */
  .btn-primary:active,
  .btn-ghost:active,
  .btn-nav-cta:active,
  .btn-submit:active { transform: none; }
}

/* ─── SPOED HOTLINE BUTTON ────────────────────────────────── */
@keyframes spoedGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 69, 69, 0); }
  50%       { box-shadow: 0 0 0 5px rgba(217, 69, 69, 0.4), 0 0 18px rgba(217, 69, 69, 0.25); }
}

@keyframes sirenRock {
  0%, 100% { transform: rotate(-20deg); }
  50%       { transform: rotate(20deg); }
}

.topbar-spoed { animation: spoedGlow 1.6s ease-in-out infinite; }

.siren-icon {
  display: inline-block;
  animation: sirenRock 0.55s ease-in-out infinite;
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: reduce) {
  .topbar-spoed { animation: none; }
  .siren-icon   { animation: none; }
}

/* ─── FOOTER LEGAL LINKS ─────────────────────────────────── */
.footer-legal-link {
  color: rgba(203,216,232,0.35);
  text-decoration: none;
  font-size: 12px;
  transition: color 160ms var(--ease-out-quint);
}
.footer-legal-link:hover { color: rgba(240,246,255,0.8); }

/* ─── COOKIE CONSENT MODAL ───────────────────────────────── */
#cc-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(8% 0.008 230 / 0.88);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.23, 1, 0.32, 1);
}
#cc-backdrop.cc-show { opacity: 1; }

#cc-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
  width: 100%;
  background: oklch(13% 0.008 230);
  border: 1px solid oklch(100% 0 0 / 0.07);
  border-radius: 6px;
  overflow: hidden;
  transform: translateY(36px) scale(0.95);
  opacity: 0;
  transition:
    transform 500ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity   500ms cubic-bezier(0.23, 1, 0.32, 1);
}
#cc-modal.cc-modal-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Photo panel ── */
#cc-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
#cc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
#cc-blinds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cc-slat {
  position: absolute;
  left: 0; right: 0;
  height: 12.5%;
  background: oklch(13% 0.008 230);
  transform-origin: top center;
  animation: ccSlatOpen 520ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes ccSlatOpen {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0); }
}
#cc-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    oklch(8% 0.008 230 / 0.55) 0%,
    transparent 50%,
    oklch(8% 0.008 230 / 0.72) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
}
.cc-logo-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: oklch(95% 0.006 60);
}
.cc-logo-mark em {
  font-style: normal;
  color: oklch(88% 0.015 220);
}
.cc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(95% 0.006 60 / 0.4);
  margin-top: 5px;
}

/* ── Content panel ── */
#cc-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity   380ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 380ms cubic-bezier(0.23, 1, 0.32, 1);
}
#cc-content.cc-content-in {
  opacity: 1;
  transform: translateX(0);
}
.cc-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: oklch(68% 0.05 200);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cc-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: oklch(68% 0.05 200);
  flex-shrink: 0;
}
.cc-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: oklch(96% 0.005 220);
  margin-bottom: 16px;
}
.cc-body {
  font-size: 13px;
  line-height: 1.75;
  color: oklch(72% 0.006 220);
  margin-bottom: 22px;
}
.cc-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cc-links a {
  font-size: 12px;
  font-weight: 600;
  color: oklch(70% 0.05 200);
  text-decoration: none;
  border-bottom: 1px solid oklch(70% 0.05 200 / 0.3);
  transition:
    color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-bottom-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cc-links a:hover {
  color: oklch(82% 0.05 200);
  border-bottom-color: oklch(82% 0.05 200);
}
.cc-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#cc-accept {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(13% 0.008 230);
  background: oklch(91% 0.012 60);
  border: none; border-radius: 4px;
  padding: 15px 28px;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.23, 1, 0.32, 1),
    transform  140ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
#cc-accept:hover {
  background: oklch(97% 0.006 60);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(91% 0.012 60 / 0.22);
}
#cc-accept:active { transform: scale(0.97); }
#cc-decline {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(68% 0.006 220);
  background: none;
  border: 1px solid oklch(100% 0 0 / 0.11);
  border-radius: 4px;
  padding: 15px 28px;
  cursor: pointer;
  transition:
    color        160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
#cc-decline:hover {
  color: oklch(92% 0.005 220);
  border-color: oklch(100% 0 0 / 0.28);
}
@media (max-width: 640px) {
  #cc-modal { grid-template-columns: 1fr; }
  #cc-photo { min-height: 200px; }
  #cc-content { padding: 36px 28px; }
}

/* ─── LEGAL PAGE CONTENT ──────────────────────────────────── */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 56px 100px;
}
.legal-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232,227,216,0.08);
}
.legal-wrap h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin: 48px 0 16px;
}
.legal-wrap h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 28px 0 10px;
}
.legal-wrap p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(203,216,232,0.65);
  margin-bottom: 16px;
}
.legal-wrap ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.legal-wrap ul li {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(203,216,232,0.65);
  margin-bottom: 6px;
}
.legal-wrap a { color: #3AAAB6; text-decoration: none; border-bottom: 1px solid rgba(58,170,182,0.3); }
.legal-wrap a:hover { border-bottom-color: #3AAAB6; }
.legal-wrap strong { color: var(--white); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 13px; }
.legal-table th {
  text-align: left; padding: 10px 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid rgba(232,227,216,0.1);
}
.legal-table td {
  padding: 12px 14px;
  color: rgba(203,216,232,0.6);
  border-bottom: 1px solid rgba(232,227,216,0.05);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .legal-wrap { padding: 100px 24px 80px; }
  .legal-table { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}

/* ─── PRINT ───────────────────────────────────────────────── */
@media print {
  .topbar, nav, .wa-float, #preloader, #cursor-glow,
  .ticker-wrap, .hero-grain, .hero-video-wrap { display: none !important; }
}

/* ─── LANGUAGE SWITCHER — Emil segmented control ─────────
   One cohesive pill. Active item glows teal.
   Emil's dimming pattern: hover one → siblings fade back.
   Works on every page via this shared stylesheet.
─────────────────────────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 3px;
  gap: 1px;
  margin-left: 8px;
}

.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203,216,232,0.38);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  line-height: 1;
  transition:
    color      190ms cubic-bezier(0.23,1,0.32,1),
    background 190ms cubic-bezier(0.23,1,0.32,1),
    box-shadow 190ms cubic-bezier(0.23,1,0.32,1);
}

/* Emil dimming: hovering one dims all siblings */
@media (hover: hover) and (pointer: fine) {
  .lang-switcher:hover .lang-btn {
    color: rgba(203,216,232,0.2);
    transition: color 160ms cubic-bezier(0.23,1,0.32,1);
  }
  .lang-btn:hover {
    color: rgba(240,246,255,0.92) !important;
    background: rgba(255,255,255,0.07);
  }
  .lang-btn.active {
    /* active stays bright even when siblings are dimmed */
    color: #e8f4ff !important;
  }
  .lang-btn.active:hover {
    background: rgba(58,170,182,0.22) !important;
  }
}

/* Active pill: teal-tinted fill + precise micro-shadow */
.lang-btn.active {
  color: #e8f4ff;
  background: rgba(58,170,182,0.14);
  box-shadow:
    0 0 0 1px rgba(58,170,182,0.24),
    0 1px 4px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── Mobile: compact in the nav bar, always visible ──────
   Shows between the logo and the hamburger.
   Tablet (641–1024px): keeps the CTA button too.
─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lang-switcher {
    display: inline-flex;   /* override any display:none */
    margin-left: 0;
    padding: 2px;
    border-radius: 8px;
    border-color: rgba(255,255,255,0.06);
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 6px;
  }
}
