:root {
  /* Light theme — pure royal-blue duo */
  --bg: #ffffff;
  --surface: rgba(0, 55, 224, 0.05);
  --surface-strong: rgba(0, 55, 224, 0.10);
  --border: rgba(0, 55, 224, 0.15);
  --text: #0a1638;
  --text-muted: #4a5780;
  --primary: #0037e0;
  --primary-2: #0075F2;
  --accent: #ffd23f;
  --grad-1: linear-gradient(135deg, #0037e0 0%, #0075F2 100%);
  --grad-2: linear-gradient(90deg, #0037e0 0%, #0075F2 100%);
  --grad-3: linear-gradient(135deg, #0075F2 0%, #0037e0 100%);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --shadow-soft: 0 20px 50px -22px rgba(0, 55, 224, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========= BG BLOBS ========= */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: floatBlob 18s ease-in-out infinite;
}
.blob.b1 { width: 460px; height: 460px; background: #006494; top: -120px; left: -100px; }
.blob.b2 { width: 420px; height: 420px; background: #1B98E0; top: 30%; right: -120px; animation-delay: -7s; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
@media (max-width: 540px) {
  .blob { filter: blur(70px); opacity: 0.15; }
  .blob.b1 { width: 300px; height: 300px; }
  .blob.b2 { width: 260px; height: 260px; }
}

/* ========= NAV ========= */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 18px 12px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(15, 23, 60, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 60, 0.15);
  width: calc(100% - 32px);
  max-width: 760px;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.nav__brand img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3);
}
.nav__brand:hover img { transform: scale(1.04); }
.nav__links { display: flex; gap: 6px; }
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__cta {
  background: var(--grad-1);
  color: white;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px -6px rgba(0, 117, 242, 0.6);
  transition: transform 0.2s ease;
}
.nav__cta:hover { transform: translateY(-2px); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav__burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav__burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 16px; right: 16px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(15, 23, 60, 0.10);
  border-radius: 26px;
  padding: 14px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 60, 0.20);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.9,.3,1.3);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.mobile-menu a:hover { background: var(--surface-strong); }
.mobile-menu .mobile-cta {
  background: var(--grad-1);
  color: white;
  text-align: center;
  font-weight: 700;
  margin-top: 4px;
}

@media (max-width: 820px) {
  .nav { gap: 14px; padding: 10px 12px 10px 18px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ========= WRAP ========= */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 540px) { .wrap { padding: 0 18px; } }

/* ========= HERO ========= */
.legal-hero {
  padding: 140px 0 56px;
  text-align: center;
  position: relative;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.back-link:hover { color: var(--text); transform: translateX(-3px); }
.back-link svg { width: 16px; height: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.legal-hero h1 .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradMove 6s ease infinite;
}
@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.legal-hero__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 22px;
}
.meta-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 55, 224, 0.18), rgba(0, 117, 242, 0.18));
  border: 1px solid rgba(0, 117, 242, 0.35);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 540px) {
  .legal-hero { padding: 120px 0 40px; }
}

/* ========= LEGAL CONTENT ========= */
.legal-main { padding-bottom: 80px; }

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: 0 30px 60px -24px rgba(0, 55, 224, 0.20);
}
.legal-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h2::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-1);
}
.legal-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.legal-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-card a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 55, 224, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-card a:hover {
  color: var(--primary-2);
  border-bottom-color: rgba(0, 117, 242, 0.6);
}
.legal-card ul {
  margin: 12px 0 18px 0;
  padding-left: 0;
  list-style: none;
}
.legal-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.legal-card li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-1);
}

.cookie-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
}
.cookie-table th, .cookie-table td {
  padding: 12px 16px;
  text-align: left;
}
.cookie-table thead th {
  background: rgba(0, 55, 224, 0.18);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cookie-table tbody tr + tr td { border-top: 1px solid var(--border); }
.cookie-table td { color: var(--text-muted); }
.cookie-table td:first-child {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  font-weight: 600;
}

.legal-other {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-other a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.legal-other a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 117, 242, 0.5);
  background: var(--surface-strong);
}

@media (max-width: 720px) {
  .legal-card { padding: 32px 28px; border-radius: var(--radius-lg); }
  .legal-card h2 { font-size: 1.25rem; }
  .cookie-table { font-size: 0.85rem; }
  .cookie-table th, .cookie-table td { padding: 10px 12px; }
}
@media (max-width: 540px) {
  .legal-card { padding: 26px 22px; }
  .cookie-table thead th { font-size: 0.72rem; }
}

/* ========= FOOTER ========= */
.site-footer {
  margin-top: 30px;
  padding-top: 50px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 260px;
  background: radial-gradient(ellipse at top, rgba(0, 55, 224, 0.16), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.site-footer .wrap { max-width: 1200px; }

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.footer-brand__logo img {
  height: 50px;
  width: auto;
  display: block;
}
.footer-brand p { max-width: 320px; line-height: 1.65; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}
.footer-links a:hover { color: var(--text); transform: translateX(3px); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 24px;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
}
.footer-bottom__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom__legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom__legal a:hover { color: var(--text); }
.footer-bottom__made { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom__made .heart {
  color: var(--primary-2);
  animation: heartbeat 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
