/* Legal documents (terms.html, privacy.html, risk.html, affiliate-terms.html) in the look of the new www site.
   Since version 2026-11-27.2 each page carries the site's header and footer as static markup (no external script).
   That markup is part of the pinned bytes: terms, privacy and risk are hashed whole-file in src/lib/legal-docs.ts, so
   ANY change to those three files, header and footer included, needs a new version and sha256 there and a pass of
   §1 in src/scripts/_test_consent_records.ts. This file and affiliate-terms.html are not hashed.
   Header = the site's bar (src/app/components/site-chrome.css .hd): logo, seven plain links to the group overview
   pages, 申请使用 and 登录 (the App, new tab) and the pages' own 中文 / English switch. At 1100px and below, as on the
   site, the links and the two App buttons move into a CSS-only <details> menu; in English the links move at 1200px,
   because next to the two-button switch they need more room than the site's bar.
   Footer = the site's footer (.ft): six link columns, contacts, risk text, legal entity, document links and ©.
   Both languages are in the markup: .l-zh / .l-en follow <html lang>, which the inline head script sets before the
   first paint (?lang=, then the ab_lang cookie, then the browser language) and setDocLang() changes.
   Scheme: black header and band, white reading card on #F2F4F8, black footer; links #2E6BFF on white.
   Each page's inline <style> paints near-white text and gold and styles bare header, p, li, ul and a elements.
   Every colour it sets is overridden below, its variables are re-pointed on body.legal-page, the document rules
   are scoped to .wrap, and the header and footer restate their own fonts, margins and colours, so nothing falls
   back to the inline values. Class names in the header and footer avoid the inline ones (.wrap, .risk, .langbar).
   Every rule is scoped to body.legal-page / .legal-page; this file is linked only by those four pages.
   Tokens and fonts: aurumbull-official/src/style-base.css :2-13 with the system stacks of style-new.css (CSP allows
   only this site's own files, so no web fonts). */

body.legal-page {
  --legal-blk: #03050A;
  --legal-blk3: #121A2B;
  --legal-wht: #FFFFFF;
  --legal-gry: #F2F4F8;
  --legal-ink: #0B1220;
  --legal-ink2: #4B5565;
  --legal-ink3: #8A93A3;
  --legal-mu: #9AA4B6;
  --legal-dim: #6B7487;
  /* footer small text (labels, risk warning, document links, ©) on #000: the site's #6B7487 is 4.47:1 there, under
     WCAG AA 4.5:1; #7D8699 (the portal skin's faint grey) is 5.7:1. #6B7487 stays for .meta on white (4.7:1). */
  --legal-dim-k: #7D8699;
  --legal-ld: rgba(255, 255, 255, .10);
  --legal-ll: #E2E6ED;
  --legal-pri: #2E6BFF;
  --legal-pri-h: #2257E0;
  --legal-gold: #E2BE5A;
  --legal-dn: #EC4A5B;
  --legal-f-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --legal-f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --legal-wrap: 1240px;
  --legal-gut: clamp(16px, 4vw, 40px);
  --legal-hd: 68px;
  /* black band from the top of the page: the header and the top of the card sit on it */
  --legal-band: calc(var(--legal-hd) + 176px);

  /* the inline <style> colours through these */
  --bg: var(--legal-gry);
  --card: var(--legal-wht);
  --paper: var(--legal-ink);
  --dim: var(--legal-ink2);
  --gold: var(--legal-pri);
  --gold-d: var(--legal-pri-h);
  --line: var(--legal-ll);

  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  /* black band, then #F2F4F8; the colour underneath is black so overscroll past either end matches the site */
  background: linear-gradient(var(--legal-blk) var(--legal-band), var(--legal-gry) var(--legal-band)) no-repeat, var(--legal-blk);
  color: var(--legal-ink);
  font: 500 16px/1.65 var(--legal-f);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* the band carries the picture of the site's /legal hero under the same gradients (.phero: picture at .55, then
   90deg #03050A 30% -> rgba(3,5,10,.4) 80%, and a fade to black at the bottom). If the file is ever gone, the band is plain black. */
body.legal-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: var(--legal-band);
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--legal-blk) 30%, rgba(3, 5, 10, .4) 80%),
    linear-gradient(0deg, var(--legal-blk), transparent 40%),
    linear-gradient(rgba(3, 5, 10, .45), rgba(3, 5, 10, .45)),
    url("/site/img/aurumbull-precision-architecture-v1.webp") 50% 30% / cover no-repeat,
    var(--legal-blk);
}

.legal-page,
.legal-page *,
.legal-page *::before,
.legal-page *::after { box-sizing: border-box; }

.legal-page a { color: var(--legal-pri); }
.legal-page ::selection { background: rgba(46, 107, 255, .2); }
.legal-page a:focus-visible,
.legal-page button:focus-visible,
.legal-page summary:focus-visible { outline: 2px solid var(--legal-pri); outline-offset: 3px; }

/* header and footer text in both languages: <html lang> shows one */
html[lang="en"] .legal-page .l-zh,
html:not([lang="en"]) .legal-page .l-en { display: none !important; }

/* the document cards follow <html lang> too, so the right one is on screen before the page script runs
   (the script then sets the same display inline) */
html[lang="en"] .legal-page #doc-zh { display: none; }
html[lang="en"] .legal-page #doc-en { display: block; }

/* names for screen readers only */
.legal-page .legal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── header: the site's bar (68px, rgba(3,5,10,.92), 12px blur, 34px logo) ── */
.legal-page .legal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 0;
  border-bottom: 1px solid var(--legal-ld);
  background: rgba(3, 5, 10, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font: 500 16px/1.65 var(--legal-f);
  text-align: left;
  color-scheme: dark;
}

.legal-page .legal-nav {
  max-width: var(--legal-wrap);
  height: var(--legal-hd);
  margin: 0 auto;
  padding: 0 var(--legal-gut);
  padding: 0 max(var(--legal-gut), env(safe-area-inset-right, 0px)) 0 max(var(--legal-gut), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
}

.legal-page .legal-header .logo {
  flex: none;
  display: flex;
  align-items: center;
  color: #fff;
}

.legal-page .legal-header .logo img {
  display: block;
  width: auto;
  height: 34px;
}

/* the seven groups, as plain links to their overview pages (the site's .ni buttons) */
.legal-page .legal-menu {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 14px;
}

.legal-page .legal-menu a {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .88);
  font: 600 15px/1 var(--legal-f);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.legal-page .legal-menu a:hover,
.legal-page .legal-menu a.on { color: #fff; }

/* the group the legal documents belong to (公司 → 法律文件), marked as the site marks the current group */
.legal-page .legal-menu a.on { box-shadow: inset 0 -2px 0 var(--legal-pri); }

.legal-page .legal-act {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 申请使用: the site's .btn.pri.sm */
.legal-page .legal-header .legal-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--legal-pri);
  color: #fff;
  font: 700 14px/1 var(--legal-f);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}

.legal-page .legal-header .legal-apply:hover { background: var(--legal-pri-h); }

/* 登录: the site's .act .login */
.legal-page .legal-header .legal-login {
  padding: 8px 6px;
  color: #fff;
  font: 600 15px/1.65 var(--legal-f);
  text-decoration: none;
  white-space: nowrap;
}

/* the pages' 中文 / English switch, in the site's language-button look */
.legal-page .legal-lang {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--legal-ld);
  border-radius: 6px;
}

.legal-page .legal-lang button {
  -webkit-appearance: none;
  appearance: none;
  min-height: 30px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--legal-mu);
  font: 700 12.5px/1 var(--legal-f);
  letter-spacing: 0;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}

.legal-page .legal-lang button:hover { color: #fff; }

.legal-page .legal-lang button.on {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* phone menu: a <details>, so it opens without a script. Its panel is positioned on the sticky header
   (the containing block), right under the bar, and fills the rest of the screen. */
.legal-page .legal-burger {
  display: none;
  flex: none;
  margin: 0;
}

.legal-page .legal-burger > summary {
  display: block;
  width: 42px;
  height: 40px;
  /* three 1.5px bars 4px apart, centred in the 38px inside the border */
  padding: 12.75px 0 0;
  border: 1px solid var(--legal-ld);
  border-radius: 8px;
  color: #fff;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.legal-page .legal-burger > summary::-webkit-details-marker { display: none; }
.legal-page .legal-burger > summary::marker { content: ""; }

.legal-page .legal-burger > summary i {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto 4px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.legal-page .legal-burger[open] > summary i:nth-of-type(1) { transform: translateY(5.5px) rotate(45deg); }
.legal-page .legal-burger[open] > summary i:nth-of-type(2) { opacity: 0; }
.legal-page .legal-burger[open] > summary i:nth-of-type(3) { transform: translateY(-5.5px) rotate(-45deg); }

.legal-page .legal-sheet {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--legal-hd) - env(safe-area-inset-top, 0px));
  height: calc(100dvh - var(--legal-hd) - env(safe-area-inset-top, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px var(--legal-gut) 40px;
  padding: 8px max(var(--legal-gut), env(safe-area-inset-right, 0px)) 40px max(var(--legal-gut), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--legal-ld);
  background: var(--legal-blk);
}

.legal-page .legal-sheet nav { display: grid; }

.legal-page .legal-sheet nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--legal-ld);
  color: #fff;
  font: 700 18px/1.3 var(--legal-f);
  text-decoration: none;
}

.legal-page .legal-sheet-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* the sheet's buttons (the site's .sheet .cta .btn) */
.legal-page .legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  font: 600 17px/1.5 var(--legal-f);
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

.legal-page .legal-btn.pri { background: var(--legal-pri); }
.legal-page .legal-btn.pri:hover { background: var(--legal-pri-h); }
.legal-page .legal-btn.line { border-color: rgba(255, 255, 255, .4); }
.legal-page .legal-btn.line:hover { border-color: #fff; }
.legal-page .legal-btn svg { flex: none; width: 18px; height: 18px; }

/* ── reading column ── */
.legal-page .wrap {
  width: 100%;
  max-width: calc(820px + 2 * var(--legal-gut));
  margin: 0 auto;
  padding: 40px var(--legal-gut) 96px;
}

/* the document card (the script shows one of the two with an inline display) */
.legal-page #doc-zh,
.legal-page #doc-en {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--legal-ll);
  border-radius: 16px;
  background: var(--legal-wht);
  color: var(--legal-ink);
  overflow-wrap: break-word;
}

/* eyebrow, as the site's /legal page: 法律文件 / LEGAL */
.legal-page #doc-zh::before,
.legal-page #doc-en::before {
  display: block;
  margin: 0 0 14px;
  color: var(--legal-pri);
  font: 700 12.5px/1.3 var(--legal-f);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.legal-page #doc-zh::before { content: "\6CD5\5F8B\6587\4EF6"; }
.legal-page #doc-en::before { content: "Legal"; }

.legal-page .wrap h1 {
  margin: 0 0 12px;
  color: var(--legal-ink);
  font: 900 clamp(30px, 3.8vw, 52px)/1.15 var(--legal-f-d);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.legal-page .wrap .meta {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--legal-ll);
  color: var(--legal-dim);
  font: 500 13.5px/1.5 var(--legal-f);
}

.legal-page .wrap h2 {
  margin: 40px 0 12px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--legal-gold);
  color: var(--legal-ink);
  font: 800 clamp(18px, 2vw, 21px)/1.4 var(--legal-f-d);
  letter-spacing: -.005em;
}

/* sub-headings inside a section (privacy policy §9) */
.legal-page .wrap h3 {
  margin: 26px 0 10px;
  color: var(--legal-ink);
  font: 700 16.5px/1.45 var(--legal-f-d);
}

.legal-page .wrap p,
.legal-page .wrap li {
  color: var(--legal-ink2);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.legal-page #doc-zh p,
.legal-page #doc-zh li { line-height: 1.9; }

.legal-page .wrap p { margin: 0 0 14px; }
.legal-page .wrap ul { margin: 0 0 18px; padding-left: 1.35em; }
.legal-page .wrap li { margin: 0 0 8px; padding-left: .2em; }
.legal-page .wrap li::marker { color: var(--legal-ink3); }
.legal-page .wrap strong { color: var(--legal-ink); font-weight: 700; }

.legal-page #doc-zh a,
.legal-page #doc-en a {
  color: var(--legal-pri);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 107, 255, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page #doc-zh a:hover,
.legal-page #doc-en a:hover { color: var(--legal-pri-h); text-decoration-color: currentColor; }

/* risk box: red tint, 12px radius, red bar, ink text */
.legal-page .risk {
  position: relative;
  overflow: hidden;
  margin: 20px 0 22px;
  padding: 18px 22px 18px 24px;
  border: 1px solid rgba(236, 74, 91, .3);
  border-radius: 12px;
  background: rgba(236, 74, 91, .06);
}

.legal-page .risk::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--legal-dn);
}

.legal-page .risk p { color: var(--legal-ink); }
.legal-page .risk p:last-child { margin-bottom: 0; }

/* other documents: the site's white cards, at most one row of three (two on affiliate-terms, which links two
   documents); the home link is a plain link under them */
.legal-page .docnav {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 24px) / 3)), 1fr));
  gap: 12px;
  font-size: 15px;
}

.legal-page .docnav:not(:has(> a:nth-child(4))) {
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 12px) / 2)), 1fr));
}

.legal-page .docnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 16px 20px;
  border: 1px solid var(--legal-ll);
  border-radius: 16px;
  background: var(--legal-wht);
  color: var(--legal-ink);
  font: 700 15px/1.4 var(--legal-f);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.legal-page .docnav a:not([href="/"])::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-top: 2px solid var(--legal-pri);
  border-right: 2px solid var(--legal-pri);
  transform: rotate(45deg);
}

.legal-page .docnav a:hover { border-color: var(--legal-pri); transform: translateY(-2px); }

/* on #F2F4F8 the darker site blue keeps AA contrast (5.4:1; #2E6BFF would be 4.1:1) */
.legal-page .docnav a[href="/"] {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--legal-pri-h);
}

.legal-page .docnav a[href="/"]:hover { transform: none; color: var(--legal-ink); text-decoration: underline; }

/* ── footer: the site's .ft (black, six columns → three at 1100px → two at 560px) ── */
.legal-page .legal-foot {
  display: block;
  margin: 0;
  padding: 64px 0 36px;
  border-top: 1px solid var(--legal-ld);
  background: #000;
  color: #fff;
  font: 500 16px/1.65 var(--legal-f);
  text-align: left;
  color-scheme: dark;
}

.legal-page .legal-foot-in {
  max-width: var(--legal-wrap);
  margin: 0 auto;
  padding: 0 var(--legal-gut);
  padding: 0 max(var(--legal-gut), env(safe-area-inset-right, 0px)) 0 max(var(--legal-gut), env(safe-area-inset-left, 0px));
}

.legal-page .legal-foot a { color: inherit; }

.legal-page .lf-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.legal-page .lf-cols h4 {
  margin: 0 0 14px;
  color: #fff;
  font: 800 15px/1 var(--legal-f);
}

.legal-page .lf-cols ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-page .lf-cols li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.65;
}

.legal-page .lf-cols a {
  color: var(--legal-mu);
  font-size: 14px;
  text-decoration: none;
}

.legal-page .lf-cols a:hover { color: #fff; }

.legal-page .lf-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--legal-ld);
}

.legal-page .lf-row2 img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 34px;
}

.legal-page .lf-legal {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.legal-page .lf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  font-size: 13px;
}

.legal-page .lf-meta div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.legal-page .lf-meta dt { flex: none; color: var(--legal-dim-k); }
.legal-page .lf-meta dd { margin: 0; }

.legal-page .lf-meta a,
.legal-page .lf-links a { text-decoration: underline; }

.legal-page .lf-note {
  max-width: 100ch;
  margin: 0;
  color: var(--legal-dim-k);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.65;
}

.legal-page .lf-links a[aria-current="page"] { color: #fff; }

/* ── narrower screens: as on the site, the links and the two App buttons go into the menu at 1100px. The English
   links need about 1170px next to the two-button switch, so in English the links go at 1200px. ── */
@media (max-width: 1200px) {
  html[lang="en"] .legal-page .legal-menu { display: none; }
  html[lang="en"] .legal-page .legal-burger { display: block; }
  html[lang="en"] body.legal-page:has(.legal-burger[open]) { overflow: hidden; }
}

@media (max-width: 1100px) {
  .legal-page .legal-menu,
  .legal-page .legal-header .legal-apply,
  .legal-page .legal-header .legal-login { display: none; }
  .legal-page .legal-burger { display: block; }
  /* the page behind the open menu does not scroll */
  body.legal-page:has(.legal-burger[open]) { overflow: hidden; }
  .legal-page .lf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.legal-page { --legal-band: calc(var(--legal-hd) + 116px); }
  .legal-page .wrap { padding-top: 24px; padding-bottom: 64px; }
  .legal-page #doc-zh,
  .legal-page #doc-en { padding: 24px 20px 28px; border-radius: 14px; }
  .legal-page .wrap .meta { margin-bottom: 22px; padding-bottom: 18px; }
  .legal-page .wrap h2 { margin-top: 32px; }
  .legal-page .wrap p,
  .legal-page .wrap li { font-size: 15.5px; }
  .legal-page .risk { padding: 16px 16px 16px 20px; }
  .legal-page .docnav { grid-template-columns: minmax(0, 1fr); }
  .legal-page .docnav:not(:has(> a:nth-child(4))) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .legal-page .lf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the smallest phones: logo, switch and menu button still fit on one line */
@media (max-width: 380px) {
  .legal-page .legal-nav { gap: 12px; }
  .legal-page .legal-act { gap: 8px; }
  .legal-page .legal-header .logo img { height: 30px; }
  .legal-page .legal-lang button { padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page *,
  .legal-page *::before,
  .legal-page *::after { transition: none !important; }
  .legal-page .docnav a:hover { transform: none; }
}

@media print {
  body.legal-page { background: #fff; color: #111; }
  body.legal-page::before,
  .legal-page .legal-header,
  .legal-page .legal-foot,
  .legal-page .docnav { display: none !important; }
  .legal-page .wrap { max-width: none; padding: 0; }
  .legal-page #doc-zh,
  .legal-page #doc-en { padding: 0; border: 0; border-radius: 0; background: #fff; }
  .legal-page #doc-zh::before,
  .legal-page #doc-en::before { color: #555; }
  .legal-page .wrap h1,
  .legal-page .wrap h2,
  .legal-page .wrap h3,
  .legal-page .wrap strong,
  .legal-page .risk p { color: #111; }
  .legal-page .wrap h2 { border-left-color: #999; break-after: avoid; page-break-after: avoid; }
  .legal-page .wrap h3 { break-after: avoid; page-break-after: avoid; }
  .legal-page .wrap p,
  .legal-page .wrap li,
  .legal-page .wrap .meta { color: #333; }
  .legal-page .wrap .meta { border-bottom-color: #ccc; }
  .legal-page .risk { background: #f5f5f5; border-color: #999; break-inside: avoid; page-break-inside: avoid; }
  .legal-page .risk::before { background: #999; }
  .legal-page a,
  .legal-page #doc-zh a,
  .legal-page #doc-en a { color: #111; text-decoration-color: #999; }
}
