/* ============================================================
   FallingHippo Ltd — fallinghippo.com
   Concept: "The Fall". Scrolling the page is the hippo's fall,
   from daylight sky, through the studio, onto a sofa at night.
   ============================================================ */

/* ---------- fonts (self-hosted, SIL OFL — see assets/fonts) ---------- */
@font-face { font-family: "Caprasimo"; src: url("assets/fonts/caprasimo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* brand, from the logo */
  --ink: #161E3E;          /* logo-tile navy: text on light */
  --ink-soft: #3A4266;     /* secondary text on light */
  --hippo: #8D8FE9;        /* the hippo — reserved for the hippo & small accents */
  --mint: #58E9C2;         /* motion arcs — motion & light only, never text on light */
  --usbox: #F9941F;        /* usBox orange */

  /* the fall: sky → haze → sunset → night */
  --sky-1: #BFDAF7;
  --sky-2: #E4EEFA;
  --sky-3: #F7D2B4;
  --night: #121A3D;
  --night-2: #0E1533;
  --night-3: #0A1029;
  --on-night: #F1F2FF;
  --on-night-soft: #B7BEE2;
  --line-night: #2A3470;
  --cloud: #FFFFFF;

  --f-display: "Caprasimo", "Cooper Black", "Georgia", serif;
  --f-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --w: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --pad: clamp(72px, 10vw, 136px);
  --radius: 14px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .footer :focus-visible { outline-color: var(--mint); }

.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1 {
  font-family: var(--f-display);
  font-size: clamp(3.1rem, 8.4vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.005em;
}
h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin-top: 28px; }
.lede strong { color: var(--ink); font-weight: 700; }
.section-lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin-top: 22px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.05rem/1 var(--f-body);
  color: #fff; background: var(--ink);
  padding: 17px 24px; border-radius: var(--radius);
  border: 2px solid var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(22, 30, 62, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(22, 30, 62, 0.28); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(22, 30, 62, 0.28); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { font-size: .95rem; padding: 12px 16px; border-radius: 12px; box-shadow: 3px 3px 0 rgba(22, 30, 62, 0.25); }
.btn-usbox { background: var(--usbox); color: var(--ink); border-color: var(--usbox); box-shadow: 4px 4px 0 #05081A; }
.btn-usbox:hover { box-shadow: 6px 6px 0 #05081A; }
.btn-usbox:active { box-shadow: 1px 1px 0 #05081A; }
.btn-ghost-light { background: transparent; color: var(--on-night); border-color: var(--on-night-soft); box-shadow: none; }
.btn-ghost-light:hover { border-color: var(--on-night); box-shadow: none; }

.text-link {
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: rgba(22, 30, 62, 0.35);
  transition: text-decoration-color .15s ease;
}
.text-link:hover { text-decoration-color: var(--ink); }
.text-link--light { color: var(--on-night); text-decoration-color: rgba(241, 242, 255, 0.35); }
.text-link--light:hover { text-decoration-color: var(--on-night); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 40px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.005em; color: inherit; }
.wordmark b { font-weight: inherit; }
.altimeter {
  font-family: var(--f-mono); font-size: .85rem; font-variant-numeric: tabular-nums;
  padding: 5px 10px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .8;
  white-space: nowrap;
}
.alt-arrow { display: inline-block; margin-right: 6px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-weight: 500; text-decoration: none; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav.scrolled { background: rgba(191, 218, 247, 0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(22, 30, 62, 0.1); }
.nav.on-sunset.scrolled { background: rgba(247, 210, 180, 0.97); }
.nav.on-haze.scrolled { background: rgba(228, 238, 250, 0.97); }
.nav.on-night { color: var(--on-night); }
.nav.on-night.scrolled { background: rgba(14, 21, 51, 0.97); box-shadow: 0 1px 0 var(--line-night); }
.nav.on-night .btn { background: var(--usbox); color: var(--ink); border-color: var(--usbox); box-shadow: 3px 3px 0 #05081A; }

/* ---------- shared section bits ---------- */
.section { position: relative; padding-block: var(--pad); }
.sky { position: relative; overflow: clip; }
.sky-1 { background: var(--sky-1); }
.sky-2 { background: var(--sky-2); }
.sky-3 { background: var(--sky-3); }
.night { background: var(--night); color: var(--on-night); }
.night-2 { background: var(--night-2); }
.night .section-lede { color: var(--on-night-soft); }

/* hanging altitude markers, like marginalia on a ruler */
.with-marker { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 24px; }
.marker {
  font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft);
  padding-top: 1.6rem; border-top: 1.5px solid currentColor; align-self: start;
  font-variant-numeric: tabular-nums;
}
.night .marker { color: var(--on-night-soft); }
.marker-inline { display: inline-block; padding: 0 0 0 0; border: 0; margin-bottom: 22px; }
.col-main { max-width: 700px; }
/* keep the hippo's lane clear on desktop while it falls */
@media (min-width: 1024px) {
  .sky .col-main { max-width: min(700px, calc(100vw - var(--gutter) * 2 - 164px - 300px)); }
}

/* bands between sections */
.band { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.band-cloud { top: -1px; height: 90px; transform: scaleY(-1); fill: var(--sky-1); }
.band-roofs { bottom: -1px; height: clamp(80px, 11vw, 160px); fill: var(--night); }

/* drifting clouds in the hippo's lane */
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; fill: var(--cloud); will-change: transform; }
.cloud.c1 { width: 240px; right: 6%; top: 62%; opacity: .95; }
.cloud.c2 { width: 150px; right: 34%; top: 22%; opacity: .7; }
.cloud.c3 { width: 200px; right: 4%; top: 58%; opacity: .95; }
.cloud.c4 { width: 180px; right: 8%; top: 30%; fill: #FFF3EA; opacity: .9; }

/* ---------- 1. hero ---------- */
.hero { min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; position: relative; z-index: 1; }
.hero-copy h1 { max-width: 9.5ch; }

.hero-art { margin: 0; position: relative; justify-self: center; width: min(100%, 380px); }
.hippo-still { position: relative; width: 100%; aspect-ratio: 359 / 368; }
.still-arcs, .faller-arcs { position: absolute; left: 25.6%; top: 0; width: 30.9%; }
.still-body, .faller-body { position: absolute; left: 0; top: 24.7%; width: 100%; }
.margin-note {
  position: absolute; left: -18%; bottom: -10%;
  font-family: var(--f-mono); font-size: .85rem; line-height: 1.35; color: var(--ink-soft);
  max-width: 26ch; padding-left: 58px;
}
.note-arrow { position: absolute; left: 0; top: -40px; width: 54px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1) rotate(-10deg); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue::after { content: ""; width: 1.5px; height: 34px; background: currentColor; opacity: .6; }

/* the fixed faller (only when html.fall is set by main.js) */
.faller { display: none; }
html.fall .faller {
  display: block; position: fixed; z-index: 30; pointer-events: none;
  width: 380px; aspect-ratio: 359 / 368;
  left: 0; top: 0; will-change: transform, opacity;
  transition: opacity .25s ease;
}
html.fall .faller.gone { opacity: 0; transition: none; }
html.fall .hippo-still { visibility: hidden; }
.faller-arcs { transform-origin: 50% 100%; will-change: transform, opacity; }

/* ---------- 2. apps index ---------- */
#apps { padding-top: calc(var(--pad) + 40px); }
.index { margin-top: 56px; border-top: 2px solid var(--ink); counter-reset: app; }
.index-row {
  display: grid; grid-template-columns: 64px 72px minmax(0, 1fr); gap: 18px 22px;
  padding: 30px 0; border-bottom: 1.5px solid rgba(22, 30, 62, 0.25); align-items: start;
}
.index-no { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); padding-top: 6px; }
.app-tile {
  width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font: 700 .95rem/1 var(--f-body); letter-spacing: -0.02em; white-space: nowrap;
}
.app-tile--usbox { background: #0E1115; color: #fff; }
.app-tile--usbox i { font-style: normal; color: var(--usbox); }
.app-tile--next { border: 2px solid var(--ink); color: var(--ink); font-family: var(--f-display); font-size: 2rem; background: rgba(255,255,255,.5); }
.index-body h3 { font-size: 1.5rem; }
.index-body p { margin-top: 6px; color: var(--ink-soft); max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { font-family: var(--f-mono); font-size: .8rem; padding: 3px 9px; border: 1.5px solid rgba(22, 30, 62, 0.4); border-radius: 6px; }
.index-actions { grid-column: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- 3. studio ---------- */
#studio { padding-bottom: calc(var(--pad) + 120px); }
.letter { margin-top: 48px; max-width: 58ch; display: grid; gap: 18px; }
.letter h3 { font-size: 1.1rem; margin-bottom: 2px; }
.letter p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.65; }
.letter .sig { margin-top: 10px; font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); }

/* ---------- 4. usBox / landing ---------- */
.landing { padding-top: calc(var(--pad) - 16px); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.landing h2 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
.landing .marker-inline { color: var(--mint); }
.verbs { margin-top: 30px; display: grid; gap: 12px; }
.verbs li { position: relative; padding-left: 30px; font-size: 1.1rem; }
.verbs li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 2px; background: var(--usbox); border-radius: 2px; }

.scene-wrap { position: relative; }
.scene { position: relative; width: 100%; aspect-ratio: 640 / 460; }
.scene-svg { width: 100%; height: 100%; display: block; }
.scene-hippo { position: absolute; left: 12%; top: 31%; width: 41%; transform: rotate(-12deg); transform-origin: 50% 50%; }
.puff { position: absolute; left: 12%; top: 60%; width: 44%; height: 10%; pointer-events: none; z-index: 0; }
.scene-hippo { z-index: 1; }
.puff i { position: absolute; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: #FFE3BD; opacity: 0; }
.puff i:nth-child(1) { left: 0; } .puff i:nth-child(2) { left: 45%; } .puff i:nth-child(3) { right: 0; }

/* motion arcs: they arrive with him, then fade once he stops moving */
.scene-arcs { position: absolute; left: 21%; top: 15%; width: 12.7%; opacity: 0; pointer-events: none; transform-origin: 50% 100%; }
html.fall .scene-hippo.landed ~ .scene-arcs { animation: arcs-settle 1s cubic-bezier(.3, 0, .3, 1) var(--impact, .5s) forwards; }
@keyframes arcs-settle {
  0%   { opacity: 1; transform: translateY(-6px) scaleY(1.4); }
  20%  { opacity: 1; transform: translateY(0) scaleY(.85); }
  100% { opacity: 0; transform: translateY(-30px) scale(.55, .4); }
}
html.fall .scene-hippo:not(.landed) { opacity: 0; }
html.fall .scene-hippo.landed ~ .puff i { animation: puff .7s ease-out var(--impact, .5s) forwards; }
html.fall .scene-hippo.landed ~ .puff i:nth-child(2) { animation-delay: calc(var(--impact, .5s) + 50ms); }
html.fall .scene-hippo.landed ~ .puff i:nth-child(3) { animation-delay: calc(var(--impact, .5s) + 100ms); }
@keyframes puff {
  0%   { opacity: .8; transform: translate(0, 0) scale(.4); }
  100% { opacity: 0; transform: translate(var(--dx, 0), -26px) scale(1.6); }
}
.puff i:nth-child(1) { --dx: -22px; } .puff i:nth-child(3) { --dx: 22px; }


/* ---------- 5. hello ---------- */
.email {
  display: inline-block; margin-top: 36px;
  font-family: var(--f-display); font-size: clamp(1.5rem, 4.6vw, 3.2rem); line-height: 1.1;
  color: var(--on-night); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
  text-decoration-color: var(--usbox); overflow-wrap: anywhere;
}
.email:hover { color: var(--usbox); }

/* ---------- footer ---------- */
.footer { background: var(--night-3); color: var(--on-night); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 48px; align-items: start; }
.footer-brand p { margin-top: 16px; color: var(--on-night-soft); }
.footer-links { display: flex; gap: 56px; }
.footer-links h2 { font: 500 .85rem/1 var(--f-mono); color: var(--on-night-soft); margin-bottom: 16px; }
.footer-links a { display: block; text-decoration: none; padding: 5px 0; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.toy-floor {
  position: relative; width: 100%; height: 150px; overflow: hidden;
  border-bottom: 2px solid var(--line-night);
}
.toy-floor img { position: absolute; left: 0; top: 0; width: 56px; will-change: transform; }
.toy-count { font-family: var(--f-mono); font-size: .8rem; color: var(--on-night-soft); }
.footer-legal {
  margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line-night);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .85rem; color: var(--on-night-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(52vw, 240px); justify-self: start; margin-bottom: 8px; }
  .margin-note { left: auto; right: -210px; bottom: 30%; }
  .landing-grid { grid-template-columns: 1fr; }
  .scene-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toy { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 10px 12px; font-size: .88rem; }
  .altimeter { font-size: .75rem; padding: 3px 8px; }
  .wordmark { font-size: 1.15rem; }
  .brand img { width: 30px; height: 30px; }
  .hero { padding-top: 88px; min-height: auto; }
  .margin-note { display: none; }
  .scroll-cue { display: none; }
  .with-marker { grid-template-columns: 1fr; }
  .marker { border-top: 0; padding-top: 0; margin-bottom: 14px; }
  .index-row { grid-template-columns: 56px minmax(0, 1fr); }
  .index-no { display: none; }
  .index-actions { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { gap: 40px; }
  .cloud.c1, .cloud.c2 { display: none; }
  .cloud.c3, .cloud.c4 { width: 130px; opacity: .6; }
}
@media (max-width: 420px) {
  .altimeter { display: none; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.alt-arrow[hidden] { display: none; }
.status-note { margin-top: 34px; padding-left: 16px; border-left: 3px solid var(--usbox); color: var(--on-night-soft); max-width: 44ch; }

/* note next to anything that invites ideas */
.idea-note { flex-basis: 100%; margin-top: 2px; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.night .idea-note { margin-top: 18px; color: var(--on-night-soft); }

/* ============================================================
   Legal pages (privacy.html, terms.html)
   ============================================================ */
.legal-page { background: var(--sky-2); }
.nav--solid { position: sticky; top: 0; background: rgba(191, 218, 247, 0.97); box-shadow: 0 1px 0 rgba(22, 30, 62, 0.1); }
.legal { padding-block: 64px 96px; }
.legal-col { max-width: 760px; }
.legal-back { display: inline-block; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); text-decoration: none; margin-bottom: 28px; }
.legal-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; }
.legal-meta { margin-top: 16px; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }

.legal-summary {
  margin-top: 40px; padding: 26px 28px; background: #FFFFFF;
  border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 rgba(22, 30, 62, 0.18);
}
.legal-summary h2 { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.legal-summary ul { margin-top: 14px; display: grid; gap: 8px; }
.legal-summary li { position: relative; padding-left: 26px; color: var(--ink); }
.legal-summary li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; }

.toc { margin-top: 44px; }
.toc h2 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; }
.toc ol { margin-top: 12px; columns: 2; column-gap: 32px; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; padding: 4px 0; }
.toc li::before { content: counter(toc) "."; display: inline-block; min-width: 2.2em; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }
.toc a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22, 30, 62, 0.3); text-underline-offset: 4px; }
.toc a:hover { text-decoration-color: var(--ink); }

.legal-body { margin-top: 24px; color: #283052; }
.legal-body section { padding-top: 44px; margin-top: 44px; border-top: 1.5px solid rgba(22, 30, 62, 0.18); scroll-margin-top: 90px; }
.legal-body h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.1; }
.sec-no { font-family: var(--f-mono); font-size: .95rem; color: var(--ink-soft); min-width: 1.8em; }
.legal-body h3 { margin-top: 28px; font-size: 1.12rem; }
.legal-body p, .legal-body li { font-size: 1.06rem; line-height: 1.65; }
.legal-body p { margin-top: 14px; }
.legal-body ul { margin-top: 12px; padding-left: 1.3em; list-style: disc; display: grid; gap: 8px; }
.legal-body ol.steps { margin-top: 12px; padding-left: 1.4em; list-style: decimal; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--ink-soft); }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22, 30, 62, 0.4); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-body a:hover { text-decoration-color: var(--ink); }
.legal-body strong { color: var(--ink); }

.details { margin-top: 18px; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); border-top: 1.5px solid rgba(22, 30, 62, 0.18); }
.details dt, .details dd { margin: 0; padding: 10px 0; border-bottom: 1.5px solid rgba(22, 30, 62, 0.12); font-size: 1rem; }
.details dt { font-weight: 700; color: var(--ink); padding-right: 16px; }

.table-wrap { margin-top: 18px; overflow-x: auto; border: 1.5px solid rgba(22, 30, 62, 0.2); border-radius: 14px; background: #FFFFFF; }
.legal-body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .97rem; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(22, 30, 62, 0.12); line-height: 1.5; }
.legal-body th { background: var(--sky-1); color: var(--ink); font-weight: 700; }
.legal-body tr:last-child td { border-bottom: 0; }

.note { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--ink); background: rgba(255, 255, 255, 0.55); border-radius: 0 12px 12px 0; }
.note p:first-child { margin-top: 0; }

/* things still to be confirmed before publishing */
mark.ph { background: #FFE17A; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-family: var(--f-mono); font-size: .88em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.footer-company { font-size: .92rem; color: var(--on-night-soft); line-height: 1.6; }
.footer-company h2 { font: 500 .85rem/1 var(--f-mono); color: var(--on-night-soft); margin-bottom: 16px; }

@media (max-width: 760px) {
  .legal { padding-block: 40px 72px; }
  .toc ol { columns: 1; }
  .details { grid-template-columns: 1fr; }
  .details dt { border-bottom: 0; padding-bottom: 0; }
  .legal-summary { padding: 22px 20px; }
}
@media print {
  .nav, .footer, .legal-back { display: none; }
  .legal-page { background: #fff; }
}
