/* ===============================================
   Reservationhub — Shared Stylesheet
   =============================================== */

/* ===== Tokens ===== */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F7FB;
  --bg-3: #EEF0F6;
  --surface: #FFFFFF;
  --line: rgba(11, 18, 50, 0.10);
  --line-2: rgba(11, 18, 50, 0.18);
  --text: #0B1232;
  --text-2: #4B5274;
  --muted: #8389A4;

  /* Brand */
  --navy: #0B1232;
  --navy-2: #1A2356;
  --blue: #2854E0;
  --blue-2: #4C76F0;
  --mint: #11C18A;
  --mint-2: #16D89C;
  --cyan: #1E8FE0;
  --cyan-2: #36A6F5;
  --amber: #C28D2A;
  --amber-2: #E5B04A;
  --plum: #4A2F73;
  --plum-2: #6B4799;

  --fd: 'Sora', system-ui, sans-serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== Typography ===== */
.display {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.tag {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-pill {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ===== Top utility bar ===== */
.utility {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.utility-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
}
.utility-left { display: flex; gap: 18px; }
.utility-left span { display: inline-flex; align-items: center; gap: 6px; }
.utility-right { display: flex; gap: 18px; }
.utility a { transition: color .2s; }
.utility a:hover { color: var(--mint-2); }
.utility .dot {
  width: 6px; height: 6px;
  background: var(--mint-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint-2);
}

/* ===== Nav (with dropdown) ===== */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
}
.brand-chip {
  display: inline-flex; align-items: center;
  padding: 4px 2px;
  transition: transform .25s;
}
.brand-chip:hover { transform: translateY(-1px); }
.brand-chip img { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
  color: var(--text-2);
  transition: all .2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-2); }
.nav-links a.has-arrow::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.nav-links li:hover > a.has-arrow::after {
  transform: rotate(-135deg) translateY(2px) translateX(-2px);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 24px 48px -16px rgba(11, 18, 50, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .22s cubic-bezier(.2,.7,.2,1);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links li:hover > .dropdown,
.nav-links li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px !important;
  border-radius: 8px;
  width: 100%;
}
.dd-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.dd-1 .dd-icon { background: rgba(40, 84, 224, 0.12); color: var(--blue); }
.dd-2 .dd-icon { background: rgba(107, 71, 153, 0.14); color: var(--plum-2); }
.dd-3 .dd-icon { background: rgba(17, 193, 138, 0.14); color: var(--mint); }
.dd-text { display: flex; flex-direction: column; gap: 2px; }
.dd-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.dd-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta-ghost {
  font-size: 14px; font-weight: 500;
  padding: 9px 14px;
  color: var(--text-2);
  transition: color .25s;
}
.nav-cta-ghost:hover { color: var(--text); }
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13.5px; font-weight: 600;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta:hover { background: var(--blue); }

/* Mobile menu button (hidden on desktop) */
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.menu-btn .icon-close { display: none; }
.menu-btn.is-open .icon-open { display: none; }
.menu-btn.is-open .icon-close { display: block; }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 18, 50, 0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: #fff;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 18px 22px 28px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(11, 18, 50, 0.25);
  transform: translateY(-12px);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.is-open .mobile-menu-inner {
  transform: translateY(0);
}
.mm-section {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mm-section:last-of-type { border-bottom: none; }
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}
.mm-link.active { color: var(--blue); }
.mm-group-label {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 4px 8px;
}
.mm-sub {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background .2s;
}
.mm-sub:hover { background: var(--bg-2); }
.mm-sub-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-sub-1 { background: rgba(40, 84, 224, 0.12); color: var(--blue); }
.mm-sub-2 { background: rgba(107, 71, 153, 0.14); color: var(--plum-2); }
.mm-sub-3 { background: rgba(17, 193, 138, 0.14); color: var(--mint); }
.mm-sub-text { flex: 1; min-width: 0; }
.mm-sub-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.mm-sub-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.mm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 4px;
}
.mm-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 14.5px;
}
.mm-contact {
  font-family: var(--fm);
  font-size: 11.5px;
  color: var(--muted);
  padding: 14px 4px 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mm-contact a { color: var(--text-2); }
body.menu-open { overflow: hidden; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600; font-size: 14px;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  cursor: pointer; white-space: nowrap;
  font-family: var(--fb);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--text); }
.btn-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-light:hover { background: rgba(255,255,255,0.2); }
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { background: var(--bg-2); transform: translateY(-1px); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(2px); }

/* ===== Section base ===== */
.section { padding: 100px 0; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(26px, 3.2vw, 40px);
  margin-top: 16px;
}
.section-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.55;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ===== Page Hero (smaller, for inner pages) ===== */
.page-hero {
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 15% 20%, rgba(31, 229, 163, 0.12), transparent 60%),
    radial-gradient(500px 300px at 85% 0%, rgba(45, 168, 240, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .tag-pill { margin-bottom: 22px; background: var(--surface); }
.page-hero h1 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(32px, 4.4vw, 54px);
  max-width: 880px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lead {
  margin: 22px 0 0;
  font-size: 16.5px;
  max-width: 680px;
  color: var(--text-2);
  line-height: 1.6;
}
.page-hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb {
  font-family: var(--fm);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.5; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-chip {
  margin-bottom: 20px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-chip img { height: 28px; }
.footer-brand p {
  font-size: 13.5px;
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--fm);
  font-size: 11.5px;
}
.footer-meta a:hover { color: var(--mint-2); }
.footer-col h5 {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 6px 0;
  color: rgba(255,255,255,0.75);
  transition: color .2s;
}
.footer-col a:hover { color: var(--mint-2); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-family: var(--fm);
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  padding: 0;
  color: rgba(255,255,255,0.75);
}
.social-row a:hover { border-color: var(--mint-2); color: var(--mint-2); }

/* Footer legal links (Privacy / Terms / Cookies / DPA) — bottom row */
.footer-bottom .footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.footer-bottom .footer-legal-links a {
  display: inline-block;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  transition: color .2s;
  border-radius: 4px;
}
.footer-bottom .footer-legal-links a:first-child { padding-left: 0; }
.footer-bottom .footer-legal-links span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
  font-size: 10.5px;
}
.footer-bottom .footer-legal-links a:hover,
.footer-bottom .footer-legal-links a:focus-visible {
  color: var(--mint-2);
  outline: none;
}

/* ===== Common CTA Banner ===== */
.cta-banner {
  padding: 90px 0;
}
.cta-banner-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 40px;
  align-items: center;
}
.cta-banner-inner::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(17, 193, 138, 0.28), transparent 70%);
  top: -120px; right: -100px;
  pointer-events: none;
}
.cta-banner-inner::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(40, 84, 224, 0.3), transparent 70%);
  bottom: -100px; left: -60px;
  pointer-events: none;
}
.cta-banner h3 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
  position: relative; z-index: 2;
  max-width: 620px;
}
.cta-banner h3 em {
  font-style: normal;
  color: var(--mint-2);
}
.cta-banner p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  position: relative; z-index: 2;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

/* ===== Trust strip ===== */
.trust-strip {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.trust-strip-label {
  text-align: center;
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 56px;
  flex-shrink: 0;
}
.marquee-track .dot {
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 28px)); }
}

/* ===== Responsive =====
   Breakpoints (desktop-first):
   - 1200px : narrow desktop / large tablet landscape
   - 1024px : mobile menu kicks in, tablet landscape
   - 900px  : tablet portrait
   - 720px  : large phones
   - 480px  : standard phones
   - 380px  : small phones (iPhone SE)
   ============================================== */

/* ----- 1200px : narrow desktop ----- */
@media (max-width: 1200px) {
  .wrap { padding: 0 24px; }
  .footer-top {
    grid-template-columns: minmax(200px, 1.4fr) repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
  .section { padding: 88px 0; }
  .footer-col a { font-size: 13px; }
}

/* ----- 1024px : mobile menu kicks in ----- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .utility { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu { display: block; }
  .nav-inner { padding: 14px 24px; }
  .brand-chip img { height: 40px; }

  .section { padding: 72px 0; }
  .page-hero { padding: 56px 0 40px; }
  .section-head { margin-bottom: 44px; }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 560px; }

  .cta-banner { padding: 64px 0; }
  .cta-banner-inner { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-banner-actions { justify-content: flex-start; }
}

/* ----- 900px : tablet portrait ----- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  body { font-size: 14.5px; }
  .section { padding: 60px 0; }
  .page-hero { padding: 44px 0 32px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 4vw, 30px); }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 40px;
  }

  /* Make any inline 4-column grid wrap cleanly on tablet */
  .markets-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ----- 720px : large phones ----- */
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  body { font-size: 14px; line-height: 1.55; }

  /* Section padding */
  .section { padding: 52px 0; }
  .page-hero { padding: 36px 0 28px; }
  .cta-banner { padding: 48px 0; }
  .cta-banner-inner { padding: 32px 22px; border-radius: 18px; }

  /* Section heads */
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(22px, 6vw, 28px); }

  /* Footer */
  .footer { padding: 48px 0 22px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 32px;
  }
  .footer-brand p { max-width: none; }
  .footer-col h5 { margin-bottom: 14px; }
  .footer-col a { padding: 7px 0; font-size: 14px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding-top: 22px;
  }
  .footer-langs { font-size: 12px; padding: 14px 0 !important; gap: 5px 10px !important; }
  .footer-langs span { font-size: 11px !important; }

  /* Navbar */
  .nav-inner { padding: 12px 18px; gap: 12px; }
  .nav-cta-ghost { display: none; }
  .nav-cta {
    padding: 9px 14px;
    font-size: 12.5px;
    min-height: 38px;
  }
  .nav-cta span.cta-label-long { display: none; }
  .brand-chip img { height: 38px; }

  /* Mobile menu panel */
  .mobile-menu-inner {
    top: 58px;
    padding: 14px 18px 24px;
    max-height: calc(100vh - 58px);
  }

  /* Page hero actions stack full-width */
  .page-hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .page-hero-actions .btn { width: 100%; justify-content: center; }

  /* Buttons get a comfortable touch target */
  .btn { min-height: 44px; padding: 10px 18px; }

  /* CTA banner buttons stack */
  .cta-banner-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  .cta-banner h3 { font-size: clamp(22px, 6vw, 28px); }

  /* Trust marquee */
  .marquee-track { font-size: 15px; gap: 36px; }
  .marquee-track span { gap: 36px; }

  /* "Where we serve" homepage grid stacks 2-up at this size */
  .markets-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Long inline content protections */
  h1, h2, h3, h4 { overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; }
  pre, code { overflow-x: auto; max-width: 100%; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  iframe { max-width: 100%; }
}

/* ----- 480px : standard phones ----- */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .page-hero { padding: 28px 0 24px; }
  .cta-banner { padding: 40px 0; }
  .cta-banner-inner { padding: 28px 18px; border-radius: 16px; }

  /* Header */
  .nav-inner { padding: 10px 16px; gap: 8px; }
  .brand-chip img { height: 32px; }
  .brand-chip { padding: 4px 2px; }
  .footer-brand .brand-chip img { height: 24px; }
  .footer-brand .brand-chip { padding: 6px 12px; }
  .nav-cta {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }
  .menu-btn { width: 38px; height: 38px; }

  /* Single-column "where we serve" on phones */
  .markets-grid { grid-template-columns: 1fr !important; }

  /* Reduce overly large clamp values one more notch */
  .section-head h2 { font-size: clamp(22px, 7vw, 26px); }
  .cta-banner h3 { font-size: clamp(20px, 6.5vw, 24px); }
  .page-hero h1 { font-size: clamp(28px, 8vw, 38px) !important; line-height: 1.15; }

  /* Footer language switcher — tighter on phones */
  .footer-langs { gap: 4px 8px !important; }
  .footer-langs a { font-size: 12px !important; }
}

/* ----- 380px : iPhone SE / very small phones ----- */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .nav-inner { padding: 9px 14px; gap: 6px; }
  .brand-chip img { height: 28px; }
  .nav-cta {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .menu-btn { width: 36px; height: 36px; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: clamp(20px, 7vw, 24px); }
  .cta-banner-inner { padding: 24px 16px; }
}

/* ============================================================
   Shared styles for legal pages (privacy / terms / cookies / dpa)
   ============================================================ */
.legal-hero {
  padding: 64px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 280px at 20% 10%, rgba(31, 229, 163, 0.10), transparent 60%),
    radial-gradient(500px 280px at 80% 0%,  rgba(45, 168, 240, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.legal-hero-inner { position: relative; z-index: 1; }
.legal-hero h1 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 48px);
  max-width: 880px;
  margin: 0 auto;
}
.legal-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-hero p.legal-lede {
  margin: 20px auto 0;
  font-size: 16px;
  max-width: 720px;
  color: var(--text-2);
  line-height: 1.6;
}
.legal-meta {
  margin: 18px auto 0;
  font-family: var(--fm);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-meta span + span::before { content: ' · '; color: var(--line); padding: 0 4px; }

/* Sub-nav for switching between the 4 legal docs */
.legal-subnav {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}
.legal-subnav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.legal-subnav-row a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.legal-subnav-row a:hover { border-color: var(--mint); color: var(--text); transform: translateY(-1px); }
.legal-subnav-row a.active {
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #fff;
  border-color: transparent;
}

/* Table of contents */
.legal-toc {
  padding: 36px 0 8px;
}
.legal-toc-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  background: #fff;
}
.legal-toc-card h2 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.legal-toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 22px;
  list-style: none;
  counter-reset: legal-toc;
  padding: 0;
  margin: 0;
}
.legal-toc-list li { counter-increment: legal-toc; }
.legal-toc-list a {
  display: block;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px dashed transparent;
  transition: color .2s, border-color .2s;
}
.legal-toc-list a::before {
  content: counter(legal-toc, decimal-leading-zero) '. ';
  color: var(--muted);
  font-family: var(--fm);
  font-size: 12px;
  margin-right: 6px;
}
.legal-toc-list a:hover { color: var(--blue); border-bottom-color: var(--mint); }

/* Body sections */
.legal-body { padding: 48px 0 80px; }
.legal-section {
  scroll-margin-top: 80px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-of-type { border-bottom: 0; }
.legal-section h2 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section h2 .num {
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.legal-section h3 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 16px;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-section p,
.legal-section li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-section p { margin-bottom: 14px; }
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 4px 0 16px;
}
.legal-section li { margin-bottom: 6px; }
.legal-section li::marker { color: var(--mint); }
.legal-section a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 168, 240, 0.25);
  transition: border-color .2s;
}
.legal-section a:hover { border-bottom-color: var(--blue); }
.legal-section strong { color: var(--text); font-weight: 600; }

/* Highlight callout boxes (used for rights, important notices) */
.legal-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.legal-callout strong { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.legal-callout.warn { border-left-color: #E5A845; }
.legal-callout.note { border-left-color: var(--cyan); }

/* Definition lists for terms */
.legal-defs {
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.legal-defs dt {
  background: var(--bg-2);
  font-family: var(--fd);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.legal-defs dt:first-of-type { border-top: 0; }
.legal-defs dd {
  margin: 0;
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Cross-document footer card */
.legal-related {
  padding: 30px 0 80px;
}
.legal-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.legal-related-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s;
}
.legal-related-card:hover { transform: translateY(-2px); border-color: var(--mint); }
.legal-related-card h3 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.legal-related-card p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Tables (used in cookie list and sub-processors) */
.legal-table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table th {
  font-family: var(--fd);
  font-weight: 600;
  color: var(--text);
  background: var(--bg-2);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.legal-table tr:last-child td { border-bottom: 0; }

@media (max-width: 800px) {
  .legal-toc-list { grid-template-columns: 1fr; }
  .legal-related-grid { grid-template-columns: 1fr; }
}
