*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-50: #f0f9ff;
  --indigo: #6366f1;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(37,99,235,0.08);
  --shadow-lg: 0 16px 48px rgba(37,99,235,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #f0f6ff;
  color: var(--gray-900);
  line-height: 1.6;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Background blobs ── */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #bfdbfe, #93c5fd); top: -200px; left: -150px; animation-duration: 14s; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #bae6fd, #7dd3fc); bottom: -100px; right: -100px; animation-duration: 11s; animation-delay: -5s; }
.blob-3 { width: 350px; height: 350px; background: radial-gradient(circle, #e0e7ff, #c7d2fe); top: 40%; left: 50%; animation-duration: 16s; animation-delay: -8s; }
@keyframes blobFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

.animate-fade-up { animation: fadeUp 0.7s cubic-bezier(.22,.68,0,1.2) both; }
.animate-fade-left { animation: fadeLeft 0.8s cubic-bezier(.22,.68,0,1.2) both; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37,99,235,0.1);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(37,99,235,0.12); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem;
  color: var(--gray-900); text-decoration: none;
}
.logo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
}
.logo-icon.small { width: 28px; height: 28px; border-radius: 7px; }
.logo-icon.small svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  color: var(--gray-700); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--blue-50); color: var(--blue); }
.nav-link.active { color: var(--blue); background: var(--blue-50); }
.nav-btn {
  padding: 9px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.nav-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 210; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-900); border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  position: absolute; top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  padding: 0 24px;
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid rgba(37,99,235,0.1);
  box-shadow: 0 10px 30px rgba(37,99,235,0.08);
}
.mobile-menu.open {
  max-height: 400px; opacity: 1; pointer-events: auto;
  padding: 16px 24px 24px;
}
.mobile-link { padding: 12px 0; color: var(--gray-700); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.mobile-link:last-child { border: none; }
.mobile-link.highlight { color: var(--blue); font-weight: 600; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  max-width: 1200px; margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2);
  color: var(--blue); font-weight: 600; font-size: 0.82rem;
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  color: var(--gray-900); margin-bottom: 20px; letter-spacing: -0.03em;
  overflow-wrap: break-word; word-break: break-word;
  -webkit-hyphens: auto; hyphens: auto;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 60%, var(--indigo) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.hero-desc { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 36px; max-width: 100%; word-break: break-word; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; font-weight: 700; font-size: 0.97rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.4); }
.btn-primary.large { padding: 16px 32px; font-size: 1.05rem; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  background: rgba(255,255,255,0.9); border: 1.5px solid var(--blue-100);
  color: var(--blue); font-weight: 700; font-size: 0.97rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-light); transform: translateY(-2px); }

/* ── Floating cards ── */
.hero-visual { position: relative; width: 320px; flex-shrink: 0; }
.floating-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg);
  position: absolute;
  transition: transform 0.3s;
}
.floating-card:hover { transform: translateY(-4px) !important; }
.card-1 { top: 0; left: 0; width: 240px; animation: float 4s ease-in-out infinite; }
.card-2 { top: 110px; right: 0; width: 250px; animation: float 5s ease-in-out 1s infinite; z-index: 2; }
.card-3 { top: 250px; left: 20px; width: 250px; animation: float 4.5s ease-in-out 0.5s infinite; z-index: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon.blue { background: var(--blue-50); color: var(--blue); }
.card-icon.sky { background: var(--sky-50); color: var(--sky); }
.card-icon.indigo { background: #eef2ff; color: var(--indigo); }
.card-label { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }
.card-value { font-size: 0.9rem; color: var(--gray-900); font-weight: 700; }

/* ── Sections ── */
.cards-section, .compliance-section, .contact-section {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-eyebrow.center { display: block; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; margin-bottom: 12px; }
.section-title.center { text-align: center; }
.section-sub { color: var(--gray-500); font-size: 1.05rem; }

/* ── Doc Cards ── */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doc-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none; color: var(--gray-900);
  display: block; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.doc-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.doc-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.doc-icon.blue-gradient { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--blue); }
.doc-icon.sky-gradient { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: var(--sky); }
.doc-badge {
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
  background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100);
}
.doc-badge.sky-badge { background: var(--sky-50); color: var(--sky); border-color: #bae6fd; }
.doc-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.doc-card > p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 22px; line-height: 1.6; }
.doc-highlights { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.doc-highlights li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray-700); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.blue { background: var(--blue); }
.dot.sky { background: var(--sky); }
.doc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.read-link { display: flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 0.9rem; transition: gap 0.2s; }
.doc-card:hover .read-link { gap: 10px; }
.read-link.sky-link { color: var(--sky); }
.doc-date { font-size: 0.8rem; color: var(--gray-400); }

/* ── Compliance badges ── */
.compliance-section { text-align: center; }
.badges-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.badge-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid var(--blue-100);
  font-weight: 600; font-size: 0.9rem; color: var(--gray-700);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.badge-chip:hover { transform: translateY(-3px); border-color: var(--blue-light); color: var(--blue); }
.badge-chip span { font-size: 1.2rem; }

/* ── Contact ── */
.contact-section { padding: 40px 24px 100px; }
.contact-inner {
  background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(14,165,233,0.07));
  border: 1.5px solid var(--blue-100);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
  width: 100%; box-sizing: border-box; overflow: hidden;
}
.contact-icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.contact-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.contact-inner p { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 32px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--gray-200);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gray-900); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-500); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { color: var(--gray-400); font-size: 0.83rem; width: 100%; text-align: center; }

/* ── Legal page ── */
.legal-hero {
  background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(14,165,233,0.05));
  border-bottom: 1px solid var(--blue-100);
  padding: 120px 24px 60px;
  text-align: center;
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; width: 100%; }
.legal-hero .hero-badge { margin-bottom: 20px; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; word-break: break-word; }
.legal-hero p { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 28px; word-break: break-word; }
.meta-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.meta-chip {
  padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.8); border: 1px solid var(--blue-100);
  font-size: 0.82rem; font-weight: 600; color: var(--gray-700);
}

/* ── Legal content layout ── */
.legal-layout {
  max-width: 1100px; margin: 0 auto; padding: 60px 24px 100px;
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
}
.legal-toc-wrapper {
  /* sticky wrapper, fills page height */
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
.toc {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(37,99,235,0.15);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 4px 32px rgba(37,99,235,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.toc::before {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.toc-title {
  flex-shrink: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--gray-400);
  padding: 18px 20px 12px;
  margin: 0;
  border-bottom: 1px solid rgba(37,99,235,0.08);
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  counter-reset: toc-counter;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
}
.toc-item {
  counter-increment: toc-counter;
  flex: 1;
  display: flex;
  align-items: stretch;
}
.toc-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.35;
  width: 100%;
}
.toc-item a::before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.toc-item a:hover { background: rgba(37,99,235,0.07); color: var(--blue); }
.toc-item a:hover::before { background: rgba(37,99,235,0.15); color: var(--blue); }
.toc-item.active a {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.07));
  color: var(--blue);
  font-weight: 600;
}
.toc-item.active a::before {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
}


/* ── Legal content ── */
.legal-content { min-width: 0; width: 100%; }
.legal-section {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  border: 1.5px solid var(--blue-100); border-radius: var(--radius);
  padding: 36px 40px; margin-bottom: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
  scroll-margin-top: 90px;
}
.legal-section:hover { border-color: rgba(37,99,235,0.2); box-shadow: var(--shadow); }
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; font-weight: 800; font-size: 0.82rem;
  margin-bottom: 12px;
}
.legal-section h2 { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -0.02em; }
.legal-section h3 { font-size: 1rem; font-weight: 700; color: var(--gray-700); margin: 18px 0 10px; }
.legal-section p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.legal-section ul li {
  padding: 10px 14px; border-radius: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  font-size: 0.92rem; color: var(--gray-700); line-height: 1.55;
  padding-left: 36px; position: relative;
}
.legal-section ul li::before {
  content: '';
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
}
.legal-section ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.legal-section ol li { font-size: 0.92rem; color: var(--gray-700); line-height: 1.55; }

.highlight-box {
  padding: 16px 20px; border-radius: 10px; margin: 16px 0;
  border-left: 4px solid var(--blue);
  background: var(--blue-50);
  font-size: 0.9rem; color: var(--gray-700); line-height: 1.65;
}
.highlight-box.sky { border-color: var(--sky); background: var(--sky-50); }
.highlight-box.warning { border-color: #f59e0b; background: #fffbeb; }
.highlight-box strong { color: var(--gray-900); }

.data-table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem;
}
.data-table th {
  background: var(--blue-50); color: var(--blue);
  font-weight: 700; padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--blue-100);
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

.contact-card {
  margin-top: 16px;
  padding: 20px 24px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(14,165,233,0.07));
  border: 1.5px solid var(--blue-100);
}
.contact-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 6px; }
.contact-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
  .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { 
    display: block; width: 100%; max-width: 320px; height: 420px; 
    margin: 40px auto 0; position: relative;
  }
  .card-1 { top: 0; left: 0; z-index: 3; }
  .card-2 { top: 140px; right: 0; z-index: 2; }
  .card-3 { top: 300px; left: 10px; z-index: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .legal-toc-wrapper { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-direction: column; gap: 12px; margin: 16px 0; }
  .legal-section { padding: 24px 16px; word-break: break-word; }
  .legal-section ul li { padding-left: 28px; font-size: 0.88rem; }
  .legal-section ul li::before { left: 10px; }
  .contact-section { padding: 40px 16px 80px; }
  .contact-inner { padding: 40px 20px; }
  .btn-primary.large { padding: 14px 20px; font-size: 0.95rem; width: 100%; justify-content: center; box-sizing: border-box; }
  .doc-card { padding: 24px 20px; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-visual { transform: scale(0.85); transform-origin: top center; margin-top: 20px; height: 360px; }
}

/* ══════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════ */
.lang-switcher {
  position: relative;
  margin-left: 8px;
  z-index: 200;
}

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid var(--blue-100);
  color: var(--gray-700);
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
}
.lang-btn:hover { border-color: var(--blue-light); color: var(--blue); background: var(--blue-50); }
.lang-btn.open { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.lang-btn .chevron { transition: transform 0.25s cubic-bezier(.4,0,.2,1); }
.lang-btn.open .chevron { transform: rotate(180deg); }
.globe-icon { flex-shrink: 0; }
.lang-current-code { letter-spacing: 0.04em; }

/* Dropdown */
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  border: 1.5px solid var(--blue-100);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(37,99,235,0.15), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
  transform-origin: top right;
}
.lang-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}

/* Search */
.lang-search-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; background: rgba(255,255,255,0.98);
  z-index: 1;
}
.lang-search-wrap svg { color: var(--gray-400); flex-shrink: 0; }
#langSearch {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--gray-900);
}
#langSearch::placeholder { color: var(--gray-400); }

/* Available label */
.lang-available-label {
  padding: 8px 16px 4px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-400);
}

/* List */
.lang-list {
  list-style: none;
  max-height: 340px; overflow-y: auto;
  padding: 4px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-100) transparent;
}
.lang-list::-webkit-scrollbar { width: 4px; }
.lang-list::-webkit-scrollbar-track { background: transparent; }
.lang-list::-webkit-scrollbar-thumb { background: var(--blue-100); border-radius: 4px; }

.lang-sep {
  padding: 8px 8px 4px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-400);
}

.lang-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 9px;
  cursor: pointer; transition: background 0.15s;
  position: relative;
}
.lang-item:hover { background: var(--blue-50); }
.lang-item.active { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.08)); }
.lang-item.active .lang-name { color: var(--blue); font-weight: 700; }

.lang-name {
  flex: 1; font-size: 0.88rem; font-weight: 500; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang-native {
  font-size: 0.8rem; color: var(--gray-400); flex-shrink: 0;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang-avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  flex-shrink: 0; margin-left: 4px;
}
.lang-empty {
  padding: 20px; text-align: center;
  color: var(--gray-400); font-size: 0.88rem;
}

/* Toast */
.lang-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  color: #fff; font-size: 0.88rem; font-weight: 500;
  padding: 12px 24px; border-radius: 100px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.lang-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* Mobile: move switcher inside mobile menu */
@media (max-width: 640px) {
  .lang-switcher { margin-left: 0; }
  .lang-dropdown { right: -8px; width: 290px; }
}

/* ══════════════════════════════════════
   GOOGLE TRANSLATE OVERRIDES (HIDE BANNER)
══════════════════════════════════════ */
.skiptranslate iframe,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body, html {
  top: 0px !important;
  position: static !important;
}

/* Hide the tooltip on hover over translated text */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Remove yellow background on translated text */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
