/* ============================================================
   RotorLog: shared stylesheet for the static pages
   (download.html, privacy.html, terms.html, 404.html)
   Token values mirror src/styles/tokens.css; keep in sync.
   Fonts are the same self-hosted files the React pages use.
   ============================================================ */

@font-face {
  font-family: "Clash Display";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(/fonts/ClashDisplay-Variable.woff2) format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/Satoshi-Variable.woff2) format("woff2");
}
@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/B612Mono-Regular.woff2) format("woff2");
}

:root {
  --bg-0: #07080f;
  --bg-1: #0c0e16;
  --t1: #f4f6fa;
  --t2: rgba(238, 242, 250, 0.66);
  --t3: rgba(238, 242, 250, 0.42);
  --t4: rgba(238, 242, 250, 0.26);
  --blue: #364ee8;
  --blue-bright: #6e80f2;
  --blue-deep: #0024cb;
  --emerald: #32d74b;
  --emerald-br: #5be370;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.085);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-2: rgba(255, 255, 255, 0.16);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --sh-card: 0 24px 48px -20px rgba(0, 0, 0, 0.72);
  --aurora-1: rgba(54, 78, 232, 0.32);
  --aurora-2: rgba(0, 36, 203, 0.22);
  --font: "Satoshi", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Clash Display", "Satoshi", -apple-system, system-ui, sans-serif;
  --font-data: "B612 Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--t1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
::selection {
  background: rgba(54, 78, 232, 0.35);
}

/* ---- Aurora backdrop (same recipe as effects.css) ---- */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 68vw;
  height: 68vw;
  min-width: 560px;
  min-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora::before {
  background: radial-gradient(circle at 50% 50%, var(--aurora-1), transparent 62%);
  top: -34vw;
  left: -18vw;
  animation: auroraDriftA 84s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle at 50% 50%, var(--aurora-2), transparent 60%);
  bottom: -38vw;
  right: -20vw;
  animation: auroraDriftB 70s ease-in-out infinite alternate;
}
@keyframes auroraDriftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9vw, 6vw, 0) scale(1.12); }
}
@keyframes auroraDriftB {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-8vw, -5vw, 0) scale(0.96); }
}
.glow {
  position: fixed;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 110vw);
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    closest-side,
    rgba(54, 78, 232, 0.18),
    rgba(0, 36, 203, 0.09) 52%,
    transparent 80%
  );
  filter: blur(46px);
  animation: floatGlow 14s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) translateY(26px);
    opacity: 1;
  }
}

/* ---- Brand / back chips ---- */
.brand,
.back,
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 11px;
  border-radius: 14px;
  background: rgba(12, 13, 17, 0.72);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light), 0 14px 32px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  font-weight: 600;
  font-size: 14px;
  color: var(--t1);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.brand:hover,
.back:hover {
  border-color: var(--hairline-2);
}
.brand,
.back {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 5;
}
.brand img,
.back img,
.legal-brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.brand b,
.legal-brand b {
  color: var(--blue-bright);
  font-weight: 600;
}

/* ---- Buttons (liquid-glass, matching the React pages) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.24s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  flex: none;
}
.btn-blue {
  background: linear-gradient(
    165deg,
    rgba(110, 128, 242, 0.95) 0%,
    var(--blue) 42%,
    var(--blue-deep) 100%
  );
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--edge-light), 0 10px 28px -12px rgba(54, 78, 232, 0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.btn-blue:hover {
  box-shadow:
    var(--edge-light),
    0 0 0 1px rgba(54, 78, 232, 0.35),
    0 12px 40px -8px rgba(54, 78, 232, 0.55);
}
.btn-ghost {
  position: relative;
  isolation: isolate;
  color: var(--t1);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.045) 34%,
    rgba(255, 255, 255, 0.02) 62%,
    rgba(255, 255, 255, 0.09) 100%
  );
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.14) 32%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0.26) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.btn-ghost:hover {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.07) 34%,
    rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0.13) 100%
  );
}

/* ---- Scroll reveal (driven by static.js) ---- */
[data-reveal],
.legal-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-reveal].is-in,
.legal-section.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.dl-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 22px 48px;
}
.dl-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  width: 100%;
  animation: rise 0.9s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.appicon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  margin: 0 auto 24px;
  display: block;
  box-shadow:
    0 20px 44px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.dl-wrap h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.dl-sub {
  color: var(--t2);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 auto 36px;
  max-width: 420px;
}
.qr-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
}
.qr-frame {
  position: relative;
  border-radius: 22px;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.92);
  line-height: 0;
  overflow: hidden;
}
/* One-time light sweep across the QR after load */
.qr-frame::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 44%;
  left: -60%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35) 50%,
    transparent
  );
  transform: skewX(-18deg);
  animation: qrSheen 1.4s var(--ease) 0.6s both;
  pointer-events: none;
}
@keyframes qrSheen {
  from { left: -60%; }
  to { left: 130%; }
}
.qr-frame img.qr {
  width: 252px;
  height: 252px;
  display: block;
  border-radius: 22px;
}
.qr-caption {
  margin-top: 18px;
  text-align: center;
  color: var(--t1);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.qr-caption span {
  display: block;
  margin-top: 4px;
  color: var(--t2);
  font-weight: 600;
  font-size: 15px;
}
.platform-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.platform-chip svg {
  flex: none;
  opacity: 0.9;
}
.platform-chip--live {
  background: rgba(255, 255, 255, 0.08);
  color: var(--t1);
  box-shadow: var(--edge-light), 0 8px 22px -14px rgba(0, 0, 0, 0.5);
}
.platform-chip--live:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--blue-bright);
  box-shadow: var(--edge-light), 0 12px 26px -12px rgba(54, 78, 232, 0.55);
}
.platform-chip--live:active {
  transform: translateY(0);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(50, 215, 75, 0.2);
}
.stores {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  justify-content: center;
  height: 62px;
  border-radius: 16px;
  color: var(--t1);
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.045) 34%,
    rgba(255, 255, 255, 0.02) 62%,
    rgba(255, 255, 255, 0.09) 100%
  );
  border: 1px solid transparent;
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s var(--ease);
}
.store-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.14) 32%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 255, 255, 0.26) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.store-btn:hover {
  transform: translateY(-2px);
}
.store-btn .tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.store-btn .tx small {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}
.store-btn .tx strong {
  font-size: 19px;
  font-weight: 700;
}
@media (max-width: 680px) {
  .qr-block,
  .platform-chips {
    display: none;
  }
  .stores {
    display: flex;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.nf-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 22px 56px;
}
/* Faint operation glyphs drifting behind the 404 */
.nf-glyphs {
  position: fixed;
  inset: -80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-color: transparent;
  background-image: url(/icons/helicopter-rotor.svg), url(/icons/op-mountain.svg),
    url(/icons/op-offshore.svg), url(/icons/helipad.svg);
  background-repeat: no-repeat;
  background-size: 130px, 110px, 120px, 100px;
  background-position:
    12% 18%,
    82% 26%,
    18% 78%,
    78% 74%;
  filter: invert(1);
  animation: glyphDrift 60s ease-in-out infinite alternate;
}
@keyframes glyphDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(30px, -24px, 0); }
}
.nf-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
  animation: rise 0.9s var(--ease) both;
}
.code {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(110px, 24vw, 220px);
  line-height: 0.9;
  background: linear-gradient(
    100deg,
    var(--t1) 12%,
    var(--blue-bright) 38%,
    var(--blue) 60%,
    var(--t1) 86%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 5.5s linear infinite;
}
@keyframes sheen {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.nf-wrap h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.08;
  margin: 6px 0 14px;
}
.nf-sub {
  color: var(--t2);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto 38px;
  max-width: 430px;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn {
    width: 100%;
  }
}

/* ============================================================
   LEGAL PAGES (privacy, terms)
   ============================================================ */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(7, 8, 15, 0.92), rgba(7, 8, 15, 0.72));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
}
.legal-nav-bar {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Keep the RotorLog wordmark a single flex item so the brand gap does not
   split "Rotor" from "Log". */
.legal-word {
  white-space: nowrap;
}
.legal-back {
  white-space: nowrap;
}
.legal-brand {
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  font-size: 15px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.legal-back:hover {
  color: var(--t1);
  border-color: var(--hairline-2);
}
.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 22px 96px;
}
.legal-head {
  margin-bottom: 44px;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(54, 78, 232, 0.12);
  border: 1px solid rgba(110, 128, 242, 0.3);
  margin-bottom: 18px;
}
.legal-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--t3);
  margin-bottom: 20px;
}
.legal-note {
  font-size: 16px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 640px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light);
}
.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 23px;
  margin-bottom: 12px;
}
.legal-section p,
.legal-section li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--t2);
}
.legal-section p + p {
  margin-top: 12px;
}
.legal-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section a {
  color: var(--blue-bright);
}
.legal-section a:hover {
  text-decoration: underline;
}
.legal-foot {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--t3);
}
.legal-foot-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-foot-links a {
  color: var(--t2);
  font-weight: 600;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.legal-foot-links a:hover {
  color: var(--t1);
  border-color: var(--hairline-2);
}

/* ============================================================
   LEGAL HUB + MULTI-DOCUMENT SYSTEM
   (legal.html + policy pages: privacy, terms, cookies, gdpr,
    dmca, acceptable-use, subprocessors, legal-notice, refunds,
    dpa). Shares the .legal-* base above; adds a TOC rail,
    tables, cards, callouts and definition rows.
   ============================================================ */

/* Updated + version badges */
.legal-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.legal-badges .legal-updated {
  margin-bottom: 0;
}
.legal-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--t3);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
}

/* Wider shell with a sticky table-of-contents rail */
.legal-shell {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 22px 96px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "toc  doc";
  column-gap: 52px;
  row-gap: 4px;
  align-items: start;
}
.legal-shell .legal-head {
  grid-area: head;
}
.legal-shell .legal-toc {
  grid-area: toc;
}
.legal-shell .legal-doc {
  grid-area: doc;
  max-width: 760px;
}

/* TOC rail */
.legal-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}
.legal-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4);
  padding: 0 12px 10px;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.legal-toc a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--t3);
  border-left: 2px solid var(--hairline);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.legal-toc a:hover {
  color: var(--t1);
  background: var(--glass);
}
.legal-toc a.is-active {
  color: var(--t1);
  border-left-color: var(--blue-bright);
  background: var(--glass);
}

/* Anchored sections clear the sticky nav */
.legal-doc .legal-section {
  scroll-margin-top: 84px;
}

/* Sub-headings and richer content inside a section */
.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--t1);
  margin: 22px 0 8px;
}
.legal-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section ol li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--t2);
}
.legal-section strong {
  color: var(--t1);
  font-weight: 700;
}
.legal-section p + h3 {
  margin-top: 20px;
}

/* Emphasised callout inside a document */
.legal-callout {
  margin: 8px 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(54, 78, 232, 0.08);
  border: 1px solid rgba(110, 128, 242, 0.28);
  box-shadow: var(--edge-light);
}
.legal-callout p {
  color: var(--t2);
}
.legal-callout p + p {
  margin-top: 10px;
}

/* Definition rows (legal bases, contact, entity block) */
.legal-defs {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--edge-light);
}
.legal-defs > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.legal-defs > div:last-child {
  border-bottom: none;
}
.legal-defs .k {
  font-weight: 700;
  color: var(--t1);
  font-size: 14.5px;
  line-height: 1.55;
}
.legal-defs .v {
  color: var(--t2);
  font-size: 14.5px;
  line-height: 1.6;
}
@media (max-width: 560px) {
  .legal-defs > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Tables (sub-processors, data categories, legal bases) */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--edge-light);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:last-child td {
  border-bottom: none;
}
.legal-table th {
  font-weight: 700;
  color: var(--t1);
  background: var(--glass);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-table td {
  color: var(--t2);
}
.legal-table td strong {
  color: var(--t1);
}
.legal-table a {
  color: var(--blue-bright);
}

/* ---- Legal hub (index) ---- */
.legal-index-grid {
  display: grid;
  /* min() lets each track shrink below 260px on very narrow phones instead of
     overflowing the viewport. */
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.legal-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.legal-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-2);
  background: var(--glass-2);
}
.legal-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(54, 78, 232, 0.14);
  border: 1px solid rgba(110, 128, 242, 0.3);
  color: var(--blue-bright);
}
.legal-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--t2);
}
.legal-card-meta {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--t4);
}
.legal-hub-note {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.65;
}
.legal-hub-note a {
  color: var(--blue-bright);
}

/* Footer entity line */
.legal-foot-entity {
  color: var(--t3);
}
.legal-foot-entity b {
  color: var(--t2);
  font-weight: 700;
}

/* ---- Mobile: collapse the TOC into a static box ---- */
@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "toc"
      "doc";
    row-gap: 18px;
  }
  .legal-shell .legal-doc {
    max-width: none;
  }
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    background: var(--glass);
    padding: 12px 8px;
  }
}

/* ============================================================
   RESPONSIVE HARDENING (legal document pages)
   Prevents horizontal overflow at every viewport width.
   ============================================================ */

/* Grid children must be allowed to shrink below their content's intrinsic
   width, or wide tables/long words push the page sideways. */
.legal-shell .legal-doc,
.legal-section {
  min-width: 0;
}

/* Break long, unspaced strings (URLs, emails) instead of overflowing. */
.legal-title,
.legal-section h2,
.legal-section h3,
.legal-card h3,
.legal-toc a,
.legal-section p,
.legal-section li,
.legal-note,
.legal-defs .v,
.legal-card p {
  overflow-wrap: break-word;
}

/* Tables scroll inside their own container; never past the viewport. */
.legal-table-wrap {
  max-width: 100%;
}

/* Small phones: tighten the sticky header so the brand + back link always fit. */
@media (max-width: 480px) {
  .legal-nav {
    padding: 12px 16px;
  }
  .legal-back {
    padding: 7px 11px;
    font-size: 12.5px;
  }
  .legal-shell,
  .legal-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .legal-section {
    opacity: 1;
    transform: none;
  }
  .code {
    background-position: 50% 0;
  }
}
