/* ==========================================================================
   TravZora — design system
   Palette, type and elevation follow the 2026 marketing design.
   Shared by the landing page and the legal pages under /privacy and /terms.
   ========================================================================== */

/* --- Plus Jakarta Sans (self-hosted variable font, weights 400-800) ------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --navy-900: #08224f;
  --navy-800: #0b2e6b;
  --navy-700: #123c85;
  --blue-600: #1553c2;
  --blue-700: #0f3f98;
  --blue-400: #2c6be0;
  --cyan-600: #0fa9da;
  --cyan-500: #12a7dc;
  --cyan-300: #7fd8f2;
  --cyan-200: #bdebfa;

  --ink: #1b2740;
  --muted: #5c6b8a;
  --muted-soft: #8591aa;
  --line: #dce3ef;
  --surface: #f5f7fb;
  --tint: #eaf2fd;
  --tint-deep: #e3ecfa;
  --white: #fff;

  --gutter: 24px;
  --radius-tile: 22px;
  --radius-pill: 980px;
  --nav-h: 64px;

  --shadow-tile:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 0 rgba(21, 83, 194, .06),
    0 2px 4px rgba(11, 46, 107, .06),
    0 14px 28px rgba(11, 46, 107, .1),
    0 36px 70px rgba(11, 46, 107, .14);
  --shadow-tile-hover:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 8px rgba(11, 46, 107, .08),
    0 24px 48px rgba(11, 46, 107, .16),
    0 60px 110px rgba(11, 46, 107, .22);
  --shadow-tile-dark:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -3px 0 rgba(0, 0, 0, .25),
    0 2px 4px rgba(4, 20, 60, .12),
    0 16px 32px rgba(4, 20, 60, .22),
    0 40px 80px rgba(4, 20, 60, .28);
  --shadow-tile-dark-hover:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 4px 8px rgba(4, 20, 60, .16),
    0 28px 56px rgba(4, 20, 60, .3),
    0 64px 120px rgba(4, 20, 60, .35);

  --ease-tile: cubic-bezier(.2, .8, .2, 1);
}

/* --- Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  border-radius: 0 0 10px;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* On dark backgrounds */
.btn-white { background: var(--white); color: var(--navy-800); }
.btn-white:hover {
  color: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(4, 20, 60, .35);
}
.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy-800); }

/* On light backgrounds */
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(21, 83, 194, .42);
}
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }

.btn-arrow {
  height: 50px;
  padding: 0 28px;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(21, 83, 194, .25);
}
.btn-arrow svg { width: 18px; height: 18px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 clamp(16px, 3.3vw, 48px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { width: 30px; height: 30px; border-radius: 8px; }
.logo-type { width: auto; height: 19px; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
}
.nav-links a {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px clamp(16px, 5vw, 24px) 22px;
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 13px 4px;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mobile-nav .mobile-cta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.mobile-nav .mobile-cta .btn { width: 100%; }
.mobile-nav .mobile-cta a { border-bottom: 0; padding: 0; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(836px, calc(100vh - var(--nav-h)));
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--blue-600) 62%, var(--cyan-500) 100%);
}

.hero-art {
  position: absolute;
  right: -14%;
  top: 22%;
  width: 700px;
  height: 700px;
  z-index: 0;
  pointer-events: none;
}

/* Faint passport outline anchored to the lower-left of the hero, opposite
   the globe. Purely decorative texture at 11% white, so it never competes
   with the headline above it. */
.hero-passport {
  position: absolute;
  left: -40px;
  top: 250px;
  width: 380px;
  height: 500px;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-12deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 48px);
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--white);
}

.underline-accent {
  position: relative;
  display: inline-block;
  color: var(--cyan-300);
}
.underline-accent svg {
  position: absolute;
  left: 0;
  bottom: -.11em;
  width: 100%;
  height: .21em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--white) 0%, var(--cyan-200) 55%, var(--cyan-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .85);
}

.hero-cta { padding-top: 10px; }

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 10px 10px 26px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 40px rgba(4, 20, 60, .25);
}
.contact-bar > span {
  padding-right: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}
.contact-bar .btn { font-size: 16px; padding: 0 20px; }
.contact-bar .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Destination marquee ------------------------------------------------- */
.marquee-strip {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 96px;
  overflow: hidden;
  background: rgba(4, 20, 60, .2);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.marquee {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tz-marquee 45s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(36px, 4.5vw, 64px);
  padding-right: clamp(36px, 4.5vw, 64px);
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.marquee-track svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes tz-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Tiles --------------------------------------------------------------- */
.tile {
  position: relative;
  flex-shrink: 0;
  margin: var(--gutter) var(--gutter) 0;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 40px) clamp(44px, 5vw, 72px);
  border-radius: var(--radius-tile);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow-tile);
  transform: perspective(1600px) rotateX(0deg) translateY(0);
  transform-origin: center bottom;
  transition: transform .45s var(--ease-tile), box-shadow .45s ease;
}
.tile:hover {
  transform: perspective(1600px) rotateX(3deg) translateY(-8px);
  box-shadow: var(--shadow-tile-hover);
}

.tile-light { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); }
.tile-light h2,
.tile-light h3 { color: var(--navy-800); }
.tile-light p { color: var(--muted); }

.tile-dark {
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--blue-600) 100%);
  box-shadow: var(--shadow-tile-dark);
}
.tile-dark:hover { box-shadow: var(--shadow-tile-dark-hover); }
.tile-dark p { color: rgba(255, 255, 255, .82); }

.tile h2 {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.tile > p { font-size: clamp(16px, 1.7vw, 24px); }
.tile .btn-row { padding-top: 12px; }

.stat-number {
  padding-top: clamp(16px, 3vw, 24px);
  font-size: clamp(72px, 14vw, 200px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.06em;
  background: linear-gradient(90deg, var(--white), var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 18px rgba(4, 20, 60, .45));
}

.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: clamp(28px, 4vw, 44px);
  width: clamp(128px, 14vw, 180px);
  height: clamp(128px, 14vw, 180px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-600));
  box-shadow:
    inset 0 10px 20px rgba(255, 255, 255, .35),
    inset 0 -14px 26px rgba(4, 20, 60, .35),
    0 30px 60px rgba(21, 83, 194, .4);
}
.seal svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Promo grid ---------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  padding: var(--gutter);
}
.promo-grid .tile {
  margin: 0;
  min-height: 500px;
  padding: clamp(40px, 4vw, 56px) clamp(20px, 3vw, 40px) clamp(40px, 4vw, 56px);
  gap: 12px;
}
.promo-grid .tile h3 {
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
}
.promo-grid .tile > p { font-size: clamp(15px, 1.5vw, 20px); }
.promo-grid .tile-dark {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
}

.promo-figure {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}
.promo-figure .seal { margin-top: 0; width: clamp(112px, 11vw, 150px); height: clamp(112px, 11vw, 150px); }
.promo-figure .stat-number { padding-top: 0; font-size: clamp(52px, 9vw, 120px); letter-spacing: -.05em; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 11vw, 150px);
  height: clamp(112px, 11vw, 150px);
  border-radius: 40px;
  background: linear-gradient(145deg, var(--white) 0%, var(--tint-deep) 100%);
  box-shadow:
    inset 0 2px 0 var(--white),
    inset 0 -8px 16px rgba(21, 83, 194, .12),
    0 10px 20px rgba(21, 83, 194, .14),
    0 30px 50px rgba(21, 83, 194, .22);
  transform: perspective(600px) rotateX(10deg);
}
.card-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon .stroke-green { stroke: #12804f; }
.card-icon .stroke-blue { stroke: var(--blue-600); }

/* --- Footer -------------------------------------------------------------- */
.footer {
  margin-top: var(--gutter);
  padding: 36px clamp(20px, 8vw, 120px) 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h2 { font-size: 13px; font-weight: 700; color: var(--ink); }
.footer-grid a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s ease;
}
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-note { font-size: 13px; color: var(--muted); }
.footer-copy { font-size: 13px; color: var(--muted-soft); }

/* --- Animated hero art --------------------------------------------------- */
@keyframes tz-dash { to { stroke-dashoffset: -110; } }
.tz-route { stroke-dasharray: 3 8; animation: tz-dash 7s linear infinite; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-art { right: -34%; top: 26%; opacity: .75; }
  .hero-passport { left: -110px; opacity: .7; }
}

@media (max-width: 900px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  :root { --gutter: 16px; }
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-grid .tile { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: flex; }
  .hero-art,
  .hero-passport { display: none; }
  .hero { min-height: 0; }
  .contact-bar {
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
  }
  .contact-bar > span { text-align: center; padding-right: 0; }
  .contact-bar .btn { width: 100%; }
}

@media (max-width: 560px) {
  .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .btn-arrow { height: 46px; padding: 0 22px; }
  .footer-cta { align-items: stretch; }
  .footer-cta .btn-arrow { width: 100%; max-width: 320px; }
  .marquee-strip { height: 76px; }
  .marquee-track svg { width: 28px; height: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card-icon { border-radius: 30px; }
}

/* --- Motion and contrast preferences ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .marquee-strip { overflow-x: auto; }
  .tz-route { animation: none; }
  .tz-plane { display: none; }
  .hero-art animate,
  .hero-art animateMotion { display: none; }
  .tile,
  .tile:hover { transform: none; }
  *,
  *::before,
  *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Legal pages (/privacy, /terms)
   Markup is unchanged; only the palette and type follow the new system.
   ========================================================================== */
.legal-page { background: var(--white); }

.legal-page .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.legal-page .soon {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  font-weight: 600;
}
.legal-page .soon:hover { color: var(--white); }

.legal-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero .back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-800);
}
.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.legal-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal-toc strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.legal-toc a { font-size: 14px; color: var(--muted); }
.legal-toc a:hover { color: var(--blue-600); }

.legal-copy { max-width: 72ch; }
.legal-copy section + section { margin-top: 36px; }
.legal-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-800);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-copy h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.legal-copy p,
.legal-copy li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal-copy p + p { margin-top: 12px; }
.legal-copy ul,
.legal-copy ol { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-copy table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.legal-copy th,
.legal-copy td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; color: var(--muted); }
.legal-copy th { background: var(--surface); color: var(--ink); font-weight: 700; }

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 12px;
}
.notice strong { display: block; margin-bottom: 6px; color: var(--navy-800); font-size: 15px; }

.legal-page .footer { margin-top: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-soft);
}
.legal-footer-note { font-size: 13px; line-height: 1.7; color: var(--muted); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}
