/* Hesyno Technology — site styles */
:root {
  --ink: #0f1b2d;
  --ink-2: #1b2a44;
  --ink-soft: #4a5568;
  --ink-mute: #6b7487;
  --paper: #f6f8fb;
  --paper-2: #edf1f7;
  --white: #ffffff;
  --blue: #2e6be6;
  --blue-hover: #2258c9;
  --blue-ink: #1f56c4;
  --blue-soft: #e8f0fd;
  --blue-line: #c9dafb;
  --green: #17895a;
  --green-soft: #e3f4ec;
  --line: rgba(15, 27, 45, 0.12);
  --line-strong: rgba(15, 27, 45, 0.24);
  --on-ink: #eef2f8;
  --on-ink-soft: #aab4c6;

  --font-display: 'Manrope', 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px -12px rgba(15, 27, 45, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-soft); }

:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) body, :lang(zh) .lede { line-height: 1.75; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.02em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-ink);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--on-ink { color: #8fb3ff; }
:lang(zh) .eyebrow { letter-spacing: 0.04em; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius);
  font: 600 0.975rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.925rem; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1.025rem; }
.btn:active { transform: translateY(1px); }

/* Pills & tags */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  font: 500 0.78rem/1.2 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.pill--live { background: var(--green-soft); color: var(--green); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill--live .dot { box-shadow: 0 0 0 0 rgba(23, 137, 90, 0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23, 137, 90, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(23, 137, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 137, 90, 0); } }
.tag { display: inline-block; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__logo { display: inline-flex; width: 30px; height: 30px; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font: 800 1.3rem/1 var(--font-display); letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a { padding: 8px 12px; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav > a:hover { color: var(--ink); background: var(--paper-2); }
.header__tools { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang a { padding: 5px 10px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font: 500 0.8rem/1 var(--font-body); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--white); }
.lang--menu { display: none; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.nav-open .menu-btn__bars { background: transparent; }
.nav-open .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .menu-btn { display: inline-flex; }
  .js .lang--bar { display: none; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 27, 45, 0.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js.nav-open .nav, .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease); }
  .js .nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; color: var(--ink); }
  .js .nav > a:hover { background: none; }
  .js .lang--menu { display: inline-flex; align-self: flex-start; margin-top: 18px; }
  .header__tools { margin-left: auto; }
  html:not(.js) .header__bar { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
}
@media (max-width: 480px) {
  .header__cta { display: none; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; max-width: 13ch; }
.hero__title em { font-style: normal; color: var(--blue); display: block; text-wrap: balance; }
h1, h2, .lede { text-wrap: balance; }
:lang(zh) .hero__title { max-width: none; letter-spacing: 0; }
:lang(fr) .hero__title { max-width: 16ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Tracker card (hero visual) */
.tracker { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 22px 18px; }
.tracker__head { display: flex; justify-content: space-between; align-items: center; color: var(--ink-mute); }
.tracker__head .mono { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.tracker__title { font: 700 var(--step-1)/1.3 var(--font-display); margin: 10px 0 18px; letter-spacing: -0.01em; }
.tracker__stages { list-style: none; position: relative; }
.stage { position: relative; display: grid; grid-template-columns: 28px 30px 1fr auto; align-items: center; gap: 8px; padding: 11px 0; }
.stage + .stage { border-top: 1px dashed var(--line); }
.stage__mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.stage__mark svg { width: 16px; height: 16px; }
.stage--done .stage__mark { background: var(--blue-soft); color: var(--blue); }
.stage--live .stage__mark { background: var(--green-soft); color: var(--green); }
.stage--live .stage__mark .dot { animation: pulse 2.2s infinite; }
.stage__n { color: var(--ink-mute); font-size: 0.72rem; }
.stage__name { font-weight: 600; }
.stage__note { font-size: 0.85rem; color: var(--ink-mute); text-align: right; }
.stage--live .stage__note { color: var(--green); font-weight: 500; }
.tracker__lead { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: var(--radius); background: var(--paper); }
.tracker__lead b { display: block; font-size: 0.9rem; }
.tracker__lead small { display: block; color: var(--ink-mute); font-size: 0.82rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.04em; flex: none; }

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__head h2 { font-size: var(--step-3); font-weight: 800; margin-bottom: 16px; }

/* Process */
.section--process { background: var(--white); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 24px 0 0; }
.step::before { content: ''; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--blue-line); }
.step:last-child::before { right: 24px; }
.step__n {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 12px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 0.8rem;
  box-shadow: 0 0 0 6px var(--white);
}
.step__title { font-size: var(--step-1); font-weight: 700; margin: 22px 0 8px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 28px 56px; }
  .step::before { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .step:first-child::before { top: 16px; }
  .step:last-child::before { bottom: auto; height: 16px; right: auto; }
  .step:last-child { padding-bottom: 0; }
  .step__n { position: absolute; left: 0; top: 0; width: 32px; padding: 0; box-shadow: 0 0 0 5px var(--white); }
  .step__title { margin-top: 2px; }
}

/* Services */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.audience { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); }
.audience:nth-child(2) { background: var(--blue); }
.audience .tag { color: rgba(255, 255, 255, 0.7); }
.audience h3 { color: var(--white); font-size: var(--step-2); font-weight: 700; margin: 10px 0 8px; }
.audience p { color: rgba(255, 255, 255, 0.82); max-width: 34em; }
.services { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color 0.2s var(--ease), transform 0.25s var(--ease); }
.service:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.service__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .audiences, .services { grid-template-columns: 1fr; } .audience { padding: 24px; } }

/* Products */
.section--work { background: var(--white); }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.product__body { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; flex: 1; }
.product__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.product__name { font-size: var(--step-2); font-weight: 800; }
.product__lede { color: var(--ink-soft); }
.checks { list-style: none; display: grid; gap: 10px; margin: 4px 0 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.97rem; }
.checks svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.product .btn { align-self: flex-start; margin-top: auto; }

.art { height: 150px; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.art--rates { background: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 28px; }
.art--rates span { display: block; height: 14px; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, 0.16); position: relative; }
.art--rates span.best { background: #f7b500; }
.art--rates span.best::after { content: ''; position: absolute; right: -26px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: #f7b500 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230f1b2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.art--voice { background: var(--blue); display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 24px; }
.art--voice span { width: 5px; height: var(--h); border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.art--voice span:nth-child(3n) { background: rgba(255, 255, 255, 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .art--voice span { animation: wave 1.6s ease-in-out infinite; transform-origin: center; }
  .art--voice span:nth-child(2n) { animation-delay: -0.4s; }
  .art--voice span:nth-child(3n) { animation-delay: -0.8s; }
  .art--voice span:nth-child(5n) { animation-delay: -1.2s; }
}
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }

.note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--ink-soft); font-size: 0.95rem; }
.note svg { width: 18px; height: 18px; flex: none; color: var(--ink-mute); }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } .product__body { padding: 22px; } }

/* Brief */
.brief { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.brief .section__head { margin-bottom: 0; }
.brief__list { margin: 0; border-top: 1px solid var(--ink); }
.brief__row { display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brief__row dt { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); padding-top: 2px; }
.brief__row dd { margin: 0; font-weight: 500; }
@media (max-width: 820px) { .brief { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .brief__row { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.contact h2 { color: var(--white); font-size: var(--step-3); font-weight: 800; margin-bottom: 16px; }
.contact .lede { color: var(--on-ink-soft); margin-bottom: 32px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.contact__list { list-style: none; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); }
.contact__list small { display: block; color: var(--on-ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; margin-bottom: 4px; }
.contact__list a { color: var(--white); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact__list a:hover { text-decoration: underline; }
.contact__icon { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(46, 107, 230, 0.25); color: #9cbcff; }
.contact__icon svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; align-items: start; } }

/* Footer */
.footer { background: var(--paper); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__about p { color: var(--ink-soft); margin: 14px 0; max-width: 30em; }
.footer address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.footer__h { font: 500 0.75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); margin: 6px 0 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a, .footer address a { color: var(--ink); text-decoration: none; }
.footer ul a:hover, .footer address a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 0.875rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.legal__head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal__head h1 { font-size: var(--step-3); font-weight: 800; margin-bottom: 12px; }
.legal__date { color: var(--ink-mute); }
.legal__intro { margin-top: 20px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.legal__intro p + p { margin-top: 12px; }
.legal__prevails { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.95rem; color: var(--ink-2); }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9rem; }
.legal__toc .mono { text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-size: 0.72rem; margin-bottom: 12px; }
.legal__toc ol { list-style: none; padding: 0; display: grid; gap: 7px; }
.legal__toc a { color: var(--ink-soft); text-decoration: none; }
.legal__toc a:hover { color: var(--blue-ink); text-decoration: underline; }
.legal__body { max-width: 760px; }
.legal__section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal__section:last-child { border-bottom: 0; }
.legal__section h2 { font-size: var(--step-2); font-weight: 700; margin-bottom: 14px; }
.legal__section h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.legal__section p, .legal__section ul, .legal__section ol { margin-bottom: 12px; color: var(--ink-2); }
.legal__section ul, .legal__section ol { padding-left: 1.3em; }
.legal__section li { margin-bottom: 6px; }
.legal__section table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.93rem; display: block; overflow-x: auto; }
.legal__section th, .legal__section td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal__section th { background: var(--paper-2); font-weight: 600; }
.legal__section .callout { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); } }

/* 404 */
.notfound { padding-block: clamp(5rem, 12vw, 9rem); text-align: center; display: grid; justify-items: center; gap: 16px; }
.notfound h1 { font-size: var(--step-3); font-weight: 800; }
.notfound__code { color: var(--blue); font-size: 1rem; }
.notfound .btn { margin-top: 12px; }

/* Layout breakpoints for hero */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .tracker { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .footer, .legal__toc, .menu-btn { display: none; }
  body { background: #fff; }
}
