/* SIHAN · legal pages (owner: about). /privacy/, /terms/ and /licences/ on the home's dark stage, on top of
   /kit/kit.css. Layout and skin only: the documents' wording, dates and headings are unchanged in the HTML.
   The tokens flip on the body like /about/ and the filter pages, so the kit's header, links, footer, runway and
   progress rail follow. Night ground, ice-white type (body text ≥ 7:1), mono HUD labels, smoked glass panels with
   hairline rims and corner ticks. No soft discs anywhere: bullets and markers are thin ticks. */

body[data-page="legal"] {
  --ink: #eef3f9; --ink-2: #d0dae7; --ink-70: rgb(226 234 245 / .76); --ink-60: rgb(226 234 245 / .62); --ink-40: rgb(226 234 245 / .4); --ink-12: rgb(226 234 245 / .14);
  --steel: #9db0c8; --blue: #6aa5ff; --blue-deep: #a9c8ff; --ice: #8fd3ec;
  --night-0: #03050a; --night-1: #070b13;
  --gl-backdrop: #0a1120; --gl-backdrop-2: #03050a;
  --lg-hud: rgb(214 228 250 / .8);
  --lg-tick: rgb(226 234 245 / .7);
  color: var(--ink); color-scheme: dark;
  background: linear-gradient(180deg, #02060f 0%, var(--night-0) 40%, var(--night-0) 100%) fixed var(--night-0);
  scrollbar-color: rgb(226 234 245 / .25) transparent;
}
body[data-page="legal"] ::selection { background: var(--blue); color: #fff; }
/* chrome: the night header band once scrolled (text passes under it blurred), the plain HUD honesty line, light rail */
body[data-page="legal"] .k-header::before { inset: 0; background: rgb(5 8 14 / .9); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
body[data-page="legal"] .k-wordmark { color: var(--ink); }
body[data-page="legal"] .k-mark { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: rgb(226 234 245 / .8);
  text-shadow: 0 0 12px rgb(3 5 10 / .9); }
body[data-page="legal"] .k-progress { filter: none; }
body[data-page="legal"] .k-progress::after { background: linear-gradient(var(--ink), var(--blue)); }
body[data-page="legal"] .k-footer { color: rgb(204 216 232 / .82); }
body[data-page="legal"] .k-footer a { color: var(--ink); }
body[data-page="legal"] .k-skip { background: #0b1220; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-12); }
/* the kit cursor on the night ground: a HUD reticle (corner ticks, mono label), not a frosted sphere */
body[data-page="legal"] .k-cursor { border-radius: 0; background: linear-gradient(#fff, #fff) 0 0 / 10px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 10px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 10px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 10px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 10px 1px no-repeat, linear-gradient(#fff, #fff) 0 100% / 1px 10px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 10px 1px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 1px 10px no-repeat, rgb(4 8 16 / .35);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .12); }
body[data-page="legal"] .k-cursor span { color: #f6f9fd; text-shadow: 0 0 12px rgb(130 175 255 / .6); }

.legal { position: relative; display: block; padding: 0 0 clamp(80px, 14vh, 160px); }

/* ---------- Head ---------- */
.legal-head { position: relative; isolation: isolate; max-width: var(--maxw); margin: 0 auto; padding: calc(var(--header-h) + clamp(56px, 14vh, 160px)) var(--gutter) clamp(40px, 8vh, 96px); }
/* a faint horizon band behind the title (a wide band masked at both ends, never a disc) */
.legal-head::before { content: ''; position: absolute; left: 0; right: 0; top: 30%; height: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(40 80 170 / 0), rgb(40 80 170 / .16) 50%, rgb(40 80 170 / 0));
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
/* HUD labels (art bible): system mono, uppercase, 11 px, .12em, light at ~80 %, mono numerals */
.legal-head .micro, .legal .micro { font: 500 11px/1.3 var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--lg-hud); font-variant-numeric: tabular-nums; }
.legal-kicker { position: relative; display: flex; justify-content: space-between; gap: 16px; max-width: 64rem; padding-bottom: 14px; border-bottom: 1px solid rgb(226 234 245 / .1); }
/* the head rule carries a thin anamorphic streak (light-born, like the /about/ section heads) */
.legal-kicker::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgb(140 185 255 / .2) 0%, rgb(140 185 255 / .7) 14%, #ffffff 24%, rgb(140 185 255 / .6) 34%, rgb(140 185 255 / .14) 62%, rgb(140 185 255 / 0) 100%);
  box-shadow: 0 0 8px 0 rgb(150 190 255 / .5), 0 0 26px 2px rgb(90 140 255 / .16); }
.legal-kicker > span:first-child { color: #f6f9fd; text-shadow: 0 0 1px rgb(255 255 255 / .6), 0 0 18px rgb(150 190 255 / .5); }
.legal-kicker b { font-weight: 600; color: var(--ink); }
.legal-title { margin-top: clamp(28px, 6vh, 64px); font: 560 clamp(56px, 9vw, 168px)/.9 var(--sans); letter-spacing: -.045em; margin-left: -.04em; color: #f6f9fd; }
/* no serif italic outside the home hero (art bible): the emphasised word is the one blue accent */
.legal-title em { font: inherit; font-style: normal; color: var(--blue); }
.legal-lede { max-width: 32em; margin-top: clamp(24px, 4vh, 40px); font: 400 var(--t-lead)/1.45 var(--sans); letter-spacing: -.01em; color: var(--ink-2); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; }
.legal-meta span + span::before { content: ''; display: inline-block; width: 10px; height: 1px; margin: 0 14px 3px 0; background: var(--blue); vertical-align: middle; box-shadow: 0 0 6px rgb(110 160 255 / .7); }
/* document switcher: square HUD chips with a hairline rim and corner ticks on the current one (no pills) */
.legal-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 6vh, 56px); }
.legal-docs a { position: relative; display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 13px 20px 12px; border-radius: 2px; color: var(--ink); text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; background: rgb(10 16 28 / .55); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .16);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
.legal-docs a .micro { color: var(--steel); }
.legal-docs a:hover { background: rgb(22 32 50 / .75); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .32), 0 10px 24px -14px rgb(0 0 0 / .8); }
/* the lift only where a real pointer hovers (no sticky lift after a tap) */
@media (hover: hover) and (pointer: fine) { .legal-docs a:hover { transform: translateY(-2px); } }
.legal-docs a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgb(40 80 170 / .38), rgb(20 40 90 / .32)); box-shadow: inset 0 0 0 1px rgb(140 185 255 / .55), 0 0 22px -6px rgb(90 140 255 / .55); --c: #fff;
  background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(180deg, rgb(40 80 170 / .38), rgb(20 40 90 / .32));
  background-size: 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px, 100% 100%;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 0; background-repeat: no-repeat; }
.legal-docs a[aria-current="page"] .micro { color: var(--ice); }

/* ---------- Body: contents + document ---------- */
.legal-body { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.legal-body--single { grid-template-columns: minmax(0, 1fr); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-left: 16px; margin-left: -16px;
  scrollbar-width: thin; scrollbar-color: rgb(226 234 245 / .2) transparent; }
.legal-toc summary { list-style: none; cursor: pointer; padding: 6px 0 14px; border-bottom: 1px solid var(--ink-12); color: #f6f9fd; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: '+'; float: right; font: 300 18px/1 var(--sans); letter-spacing: 0; color: var(--ink); transition: transform .4s var(--ease); }
.legal-toc[open] summary::after { transform: rotate(45deg); }
.legal-toc ol { counter-reset: toc; padding: 10px 0 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 7px 0; color: rgb(214 224 238 / .82); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .3s var(--ease), transform .4s var(--ease); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; width: 22px; font: 500 11px/1.35 var(--mono); color: var(--steel); }
.legal-toc a:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { transform: translateX(3px); } }
/* touch: each contents link is a 44px row (14px x 1.35 line + 2 x 13px) */
@media (pointer: coarse) { .legal-toc a { padding-block: 13px; } }
.legal-toc a[aria-current="location"] { color: #fff; text-shadow: 0 0 16px rgb(130 175 255 / .45); }
.legal-toc a[aria-current="location"]::before { color: var(--blue); }
/* the current entry: a short lit tick at the left, not a dot */
.legal-toc a[aria-current="location"]::after { content: ''; position: absolute; left: -14px; top: 50%; width: 8px; height: 1px; background: var(--blue); box-shadow: 0 0 8px rgb(110 160 255 / .8); }

.legal-text { max-width: 46rem; color: var(--ink-2); font-size: clamp(15.5px, 1.05vw, 17.5px); line-height: 1.7; }
.legal-text--wide { max-width: 64rem; }
.legal-text section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-text > section { position: relative; margin-top: clamp(48px, 8vh, 88px); padding-top: 20px; border-top: 1px solid rgb(226 234 245 / .12); }
/* each section rule starts with a short light-born segment */
.legal-text > section::before { content: ''; position: absolute; left: 0; top: -1px; width: min(160px, 30%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgb(140 185 255 / .5), #ffffff 30%, rgb(140 185 255 / .45) 60%, rgb(140 185 255 / 0)); box-shadow: 0 0 8px rgb(150 190 255 / .4); }
.legal-text h2 { margin: 0 0 18px; font: 560 var(--t-h3)/1.15 var(--sans); letter-spacing: -.03em; color: #f6f9fd; }
.legal-text h3 { margin: 26px 0 8px; font: 600 15px/1.4 var(--sans); letter-spacing: .01em; color: var(--ink); }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul { margin-top: 14px; }
.legal-text ul { display: grid; gap: 10px; }
.legal-text ul > li { position: relative; padding-left: 22px; }
.legal-text ul > li::before { content: ''; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--blue); box-shadow: 0 0 6px rgb(110 160 255 / .6); }
.legal-text strong { font-weight: 600; color: #fff; }
.legal-text a { color: #fff; text-decoration: underline; text-decoration-color: rgb(140 185 255 / .6); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.legal-text a:hover { color: var(--blue); text-decoration-color: currentColor; }
.legal-text code { font: 500 .88em/1 var(--mono); padding: .14em .4em; border-radius: 2px; background: rgb(20 30 48 / .8); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .16); color: #e6eefa; word-break: break-word; }

/* The essentials: a smoked glass panel with a hairline rim, HUD corner ticks and a narrow glint streak. */
.legal-line { position: relative; }
.legal-print { position: relative; padding: clamp(24px, 3.2vw, 44px); border-radius: 3px; color: var(--ink);
  background: linear-gradient(160deg, rgb(26 36 54 / .8), rgb(6 10 18 / .78));
  box-shadow: inset 0 0 0 1px rgb(226 234 245 / .14), inset 0 1px 0 rgb(255 255 255 / .1), 0 40px 70px -34px rgb(0 0 0 / .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); overflow: hidden; isolation: isolate; }
.legal-print::before { content: ''; position: absolute; inset: 10px; z-index: 0; pointer-events: none; opacity: .75; --c: var(--lg-tick);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 12px no-repeat; }
.legal-print::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0) 44%, rgb(216 243 252 / .14) 49.5%, rgb(255 255 255 / 0) 55%) 0 0 / 260% 100% no-repeat; background-position: 100% 0; animation: lg-glint 9s var(--ease) 1.2s infinite; }
@keyframes lg-glint { 0% { background-position: 110% 0; } 30%, 100% { background-position: -10% 0; } }
.legal-print > * { position: relative; z-index: 1; }
.legal-print > .micro:first-child { margin-bottom: 10px; }
.legal-print h2 { margin: 0 0 18px; font: 560 clamp(30px, 3vw, 48px)/1 var(--sans); letter-spacing: -.045em; color: #f6f9fd; }
.legal-print h2 em { font: inherit; font-style: normal; color: var(--blue); }
.legal-print ul { display: grid; gap: 12px; }
.legal-print ul > li { position: relative; padding-left: 22px; font-size: clamp(15.5px, 1.1vw, 18px); line-height: 1.55; color: #e4ebf5; }
.legal-print ul > li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--blue); box-shadow: 0 0 6px rgb(110 160 255 / .6); }
.legal-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--ink-12); }

/* Contact block: a smoked panel with a hairline rim */
.legal-contact { margin-top: 24px; padding: 22px 24px; border-radius: 3px; background: rgb(12 18 30 / .7); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .14); }
.legal-contact dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.legal-contact dt { font: 500 11px/1.9 var(--mono, ui-monospace, Menlo, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--lg-hud); }
.legal-contact dd { margin: 0; color: var(--ink); }

/* End links */
.legal-end { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(56px, 9vh, 96px); padding-top: 22px; border-top: 1px solid var(--ink-12); }
.legal-end a { color: var(--ink); text-decoration: none; font: 540 var(--t-lead)/1.2 var(--sans); letter-spacing: -.025em;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s var(--ease); }
.legal-end a:hover, .legal-end a:focus-visible { background-position: 0 100%; background-size: 100% 1px; color: var(--blue); }

/* Chinese runs (the operator's registered name) keep normal tracking; the Latin negative tracking would crowd the characters */
[lang|="zh"] { letter-spacing: 0; }

/* ---------- Licences ---------- */
.legal-text .licence-list > li { padding-left: clamp(22px, 2.6vw, 36px); }
.legal-text .licence-list > li::before { content: none; }
.licence-list { display: grid; gap: clamp(16px, 2vw, 28px); }
.licence { position: relative; isolation: isolate; display: grid; grid-template-columns: clamp(110px, 12vw, 180px) minmax(0, 1fr); grid-template-areas: 'spec name' 'spec dl' 'spec links'; gap: 6px clamp(20px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 36px); border-radius: 3px;
  background: linear-gradient(160deg, rgb(26 36 54 / .72), rgb(6 10 18 / .7));
  box-shadow: inset 0 0 0 1px rgb(226 234 245 / .13), inset 0 1px 0 rgb(255 255 255 / .08), 0 34px 60px -34px rgb(0 0 0 / .85);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.licence::after { content: ''; position: absolute; inset: 10px; z-index: -1; pointer-events: none; opacity: .6; --c: var(--lg-tick);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 12px no-repeat; }
.licence:hover { box-shadow: inset 0 0 0 1px rgb(140 185 255 / .3), inset 0 1px 0 rgb(255 255 255 / .1), 0 40px 70px -32px rgb(0 0 0 / .9); }
@media (hover: hover) and (pointer: fine) { .licence:hover { transform: translateY(-3px); } }
.licence-specimen { grid-area: spec; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: #f6f9fd; }
.licence-specimen b { font: 560 clamp(64px, 7vw, 116px)/.9 var(--sans); letter-spacing: -.045em; text-shadow: 0 0 1px rgb(255 255 255 / .4), 0 0 36px rgb(110 160 255 / .22); }
.licence-specimen b.is-serif { font: italic 380 clamp(66px, 7.2vw, 120px)/.9 var(--serif); letter-spacing: -.03em; }
.licence-specimen svg { width: clamp(64px, 6.6vw, 104px); height: auto; color: var(--blue-deep); }
.licence-specimen .micro { line-height: 1.5; }
.licence h2 { grid-area: name; margin: 0 0 10px; font: 560 clamp(30px, 3.2vw, 52px)/1 var(--sans); letter-spacing: -.045em; color: #f6f9fd; border: 0; padding: 0; }
.legal-text .licence-list > li.licence::before { content: none; }
.licence dl { grid-area: dl; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.licence dt { font: 500 11px/1.9 var(--mono, ui-monospace, Menlo, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--lg-hud); }
.licence dd { margin: 0; color: var(--ink); }
.licence dd code { display: inline-block; margin: 0 6px 6px 0; }
.licence-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; }
.licence-links a { color: #fff; text-decoration: none; background: linear-gradient(rgb(140 185 255 / .7), rgb(140 185 255 / .7)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
.licence-links a:hover { color: var(--blue); }
.legal-note { margin-top: clamp(32px, 6vh, 56px); max-width: 46rem; color: var(--ink-2); }

/* ---------- Phones / tablets ---------- */
@media (max-width: 899px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-toc { position: relative; top: 0; max-height: none; margin-left: 0; padding: 4px 18px 8px; border-radius: 3px; background: rgb(12 18 30 / .72); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .16); }
  .legal-toc summary { border-bottom: 0; padding: 12px 0; }
  .legal-toc[open] summary { border-bottom: 1px solid var(--ink-12); }
  .legal-toc a:hover { transform: none; }
  .legal-toc a[aria-current="location"]::after { left: -18px; }
}
@media (max-width: 599px) {
  .legal-title { font-size: clamp(48px, 15vw, 76px); }
  .legal-docs { gap: 8px; }
  .legal-docs a { padding: 12px 16px 11px; font-size: 14px; }
  .legal-contact dl, .licence dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-contact dd, .licence dd { margin-bottom: 8px; }
  .licence { grid-template-columns: 1fr; grid-template-areas: 'spec' 'name' 'dl' 'links'; }
  .licence-specimen { flex-direction: row; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-print::after { animation: none; }
  .legal-docs a, .licence, .legal-toc a { transition: none; }
  .legal-docs a:hover, .licence:hover { transform: none; }
}

/* =====================================================================================================================
   Round 13 · a luxury house's legal pages: quiet, beautifully set, highly readable. Layout and skin only (wording,
   dates and headings unchanged). A cool graphite ground; a thin display title; a calm head composed on two columns;
   the document on a centred reading measure (≈ 70 characters) between the contents (left) and a rail of section
   indices (right); no boxes, glows or chips competing with the text.
   ===================================================================================================================== */
body[data-page="legal"] {
  --ink: #e9eef5; --ink-2: #b4bfcd; --ink-12: rgb(226 234 245 / .1); --ink-40: rgb(226 234 245 / .36);
  --blue: #a9c6f0; --steel: #7f8da1; --lg-hud: rgb(196 208 224 / .62);
  --lg-measure: 41rem;
  background: #040508;
}
body[data-page="legal"] ::selection { background: #d3e3fa; color: #05070b; }
.legal .micro, .legal-head .micro { font-size: 10.5px; letter-spacing: .22em; font-weight: 450; }

/* ---------- Head: kicker hairline across the grid; title; lede left, documents and date right ---------- */
.legal-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'kicker kicker' 'title title' 'lede docs' 'meta docs';
  column-gap: clamp(32px, 5vw, 96px); align-items: end; padding-top: calc(var(--header-h) + clamp(72px, 16vh, 180px)); padding-bottom: clamp(72px, 13vh, 150px); }
.legal-head::before { opacity: .45; }
.legal-kicker { grid-area: kicker; max-width: none; border-bottom-color: rgb(226 234 245 / .1); }
.legal-kicker::after { background: linear-gradient(90deg, rgb(200 220 255 / 0), rgb(200 220 255 / .5) 8%, #ffffff 15%, rgb(200 220 255 / .25) 26%, rgb(200 220 255 / 0) 46%); box-shadow: 0 0 6px rgb(190 214 255 / .3); }
.legal-kicker > span:first-child { color: #eef2f8; text-shadow: none; }
.legal-title { grid-area: title; margin-top: clamp(40px, 8vh, 96px); font: 300 clamp(60px, 8.6vw, 164px)/.92 var(--sans); letter-spacing: -.05em; color: #f2f5fa; }
.legal-title em { color: #7e8ca0; }
.legal-lede { grid-area: lede; max-width: 30em; margin-top: clamp(36px, 6vh, 64px); font: 300 clamp(18px, 1.45vw, 23px)/1.5 var(--sans); letter-spacing: -.012em; color: var(--ink-2); }
.legal-meta { grid-area: meta; margin-top: 26px; color: rgb(196 208 224 / .55); }
.legal-meta span + span::before { width: 16px; background: rgb(226 234 245 / .3); box-shadow: none; }
/* documents: a quiet index (mono number + name over a hairline), the current one underlined in white */
.legal-docs { grid-area: docs; justify-self: end; align-self: end; display: flex; gap: clamp(22px, 2.6vw, 40px); margin: 0; }
.legal-docs a, .legal-docs a:hover, .legal-docs a[aria-current="page"] { min-height: 44px; padding: 12px 0 10px; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 rgb(226 234 245 / .14); transform: none;
  font: 400 15px/1 var(--sans); letter-spacing: -.005em; color: rgb(226 234 245 / .62); align-items: baseline; gap: 10px; }
.legal-docs a .micro, .legal-docs a[aria-current="page"] .micro { color: rgb(196 208 224 / .5); font-size: 10px; }
.legal-docs a:hover { color: #fff; box-shadow: inset 0 -1px 0 rgb(226 234 245 / .4); }
.legal-docs a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 #fff; }

/* ---------- Body: contents | reading measure | index rail ---------- */
.legal-body { grid-template-columns: minmax(200px, 1fr) minmax(0, var(--lg-measure)) minmax(64px, 1fr); column-gap: clamp(40px, 5vw, 104px); }
.legal-body > .legal-text { grid-column: 2; }
.legal-toc summary { color: #eef2f8; border-bottom-color: rgb(226 234 245 / .1); }
.legal-toc a { font-size: 13.5px; color: rgb(214 222 234 / .6); padding: 8px 0; }
.legal-toc a::before { color: rgb(196 208 224 / .42); font-size: 10.5px; letter-spacing: .08em; }
.legal-toc a[aria-current="location"] { color: #fff; text-shadow: none; }
.legal-toc a[aria-current="location"]::before { color: #fff; }
.legal-toc a[aria-current="location"]::after { background: #fff; box-shadow: none; width: 6px; }

.legal-text { max-width: var(--lg-measure); counter-reset: lg-sec; font-size: clamp(16px, 1.08vw, 17.5px); line-height: 1.78; color: var(--ink-2); }
.legal-text--wide { max-width: 64rem; }
.legal-text > section[id] { counter-increment: lg-sec; margin-top: clamp(72px, 12vh, 128px); padding-top: 28px; border-top-color: rgb(226 234 245 / .1); }
.legal-text > section::before { width: 48px; background: #fff; box-shadow: none; opacity: .7; }
/* the index rail: each section's number, hung in the right margin on the heading's line */
.legal-text > section[id]::after { content: counter(lg-sec, decimal-leading-zero) / ""; position: absolute; top: 34px; left: calc(100% + clamp(40px, 5vw, 104px));
  font: 450 10.5px/1 var(--mono, ui-monospace, Menlo, monospace); letter-spacing: .22em; color: rgb(196 208 224 / .45); pointer-events: none; }
.legal-text h2 { margin-bottom: 22px; font: 400 clamp(26px, 2.1vw, 36px)/1.12 var(--sans); letter-spacing: -.028em; color: #f2f5fa; }
.legal-text h3 { color: #eef2f8; font-weight: 500; }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul { margin-top: 18px; }
.legal-text ul { gap: 12px; }
.legal-text ul > li { padding-left: 24px; }
.legal-text ul > li::before { width: 9px; background: rgb(226 234 245 / .45); box-shadow: none; }
.legal-text strong { color: #f2f5fa; font-weight: 500; }
.legal-text a { color: #f2f5fa; text-decoration-color: rgb(226 234 245 / .35); }
.legal-text a:hover { color: #fff; text-decoration-color: #fff; }
.legal-text code { background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .12); }

/* the essentials: an open, quiet panel (hairlines and a whisper of surface; no corner ticks, no moving glint) */
.legal-print { padding: clamp(28px, 3.4vw, 52px); border-radius: 2px; background: linear-gradient(180deg, rgb(255 255 255 / .035), rgb(255 255 255 / .012));
  box-shadow: inset 0 0 0 1px rgb(226 234 245 / .1), inset 0 1px 0 rgb(255 255 255 / .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.legal-print::before { display: none; }
.legal-print::after { animation: none; opacity: 0; }
.legal-print h2 { font: 300 clamp(34px, 3.2vw, 52px)/1 var(--sans); letter-spacing: -.045em; margin-bottom: 26px; }
.legal-print h2 em { color: #7e8ca0; }
.legal-print ul > li { color: #d9e0ea; font-weight: 400; }
.legal-print ul > li::before { background: rgb(226 234 245 / .5); box-shadow: none; }
.legal-caption { margin-top: 32px; border-top-color: rgb(226 234 245 / .1); }
.legal-contact { background: none; box-shadow: inset 0 1px 0 rgb(226 234 245 / .1), inset 0 -1px 0 rgb(226 234 245 / .1); border-radius: 0; padding: 22px 0; }
.legal-end a { font: 300 clamp(22px, 1.8vw, 30px)/1.2 var(--sans); letter-spacing: -.03em; }
.legal-end a:hover, .legal-end a:focus-visible { color: #fff; }

/* licences: quieter cards (hairline frame, no ticks), thin specimens */
.licence { background: rgb(255 255 255 / .022); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .1); }
.licence::after { display: none; }
.licence:hover { box-shadow: inset 0 0 0 1px rgb(226 234 245 / .22); }
.licence-specimen b { font-weight: 300; text-shadow: none; }
.licence h2 { font-weight: 300; }
.licence-links a { background-image: linear-gradient(rgb(226 234 245 / .4), rgb(226 234 245 / .4)); }
.licence-links a:hover { color: #fff; }

@media (max-width: 1099px) {
  .legal-body { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); }
  .legal-text > section[id]::after { left: auto; right: 0; top: 34px; }
}
@media (max-width: 899px) {
  .legal-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'kicker' 'title' 'lede' 'meta' 'docs'; }
  .legal-docs { justify-self: start; margin-top: 36px; }
  .legal-body { grid-template-columns: minmax(0, 1fr); }
  .legal-body > .legal-text { grid-column: 1; }
  .legal-toc { background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(226 234 245 / .1); }
}
@media (max-width: 599px) {
  .legal-title { font-size: clamp(50px, 15vw, 72px); }
  .legal-docs { gap: 22px; }
  .legal-docs a { font-size: 14.5px; }
}

/* BRIEF P5 alignment: body 17 / 1.6; micro caps at .14em in steel; the display title as a gradient fill (ice-ink → ice),
   weight per the shared tokens; "In short" keeps its corner ticks without the panel fill. */
body[data-page="legal"] { --lg-hud: #8a9bb0; background: #05070b; }
.legal .micro, .legal-head .micro { font-size: 11px; letter-spacing: .14em; }
.legal-text { font-size: 17px; line-height: 1.6; letter-spacing: .005em; }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul { margin-top: 16px; }
.legal-title { font-weight: 520; }
/* (the title is split into animated word spans by the kit, so a clipped gradient fill would not reach them: solid
   ice-ink, the second word one step quieter) */
.legal-title { color: #eef3fa; }
.legal-title em { color: #a9c2ea; }
.legal-text h2 { font-weight: 520; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.03em; }
.legal-print { background: none; box-shadow: none; padding: clamp(28px, 3.4vw, 52px); }
.legal-print::before { display: block; opacity: .55; }
.legal-print h2 { font-weight: 520; }
.licence h2, .licence-specimen b { font-weight: 520; }
.legal-end a { font-weight: 520; }

/* Round 14 · pages r2: the display type light site-wide (weight 300, tracking −.03em, solid ice-ink); section heads one
   step lighter than the text's weight contrast needs, so the page reads as set type, not as UI. */
.legal-title { font-weight: 300; letter-spacing: -.03em; }
.legal-text h2 { font-weight: 300; letter-spacing: -.02em; color: #f2f5fa; }
.legal-print h2, .licence h2, .licence-specimen b, .legal-end a { font-weight: 300; letter-spacing: -.03em; }
.legal-text h3 { font-weight: 400; }

/* Round 14 · P6: the serif italic as a 59 KB Latin WOFF2 subset (OFL 1.1; renamed per the Reserved Font Name 'Source',
   see /assets/fonts/LICENSES.txt); the full TTF stays as a fallback until every lane has switched. */
@font-face { font-family: 'SIHAN Serif'; src: url(/assets/fonts/SIHANSerif-Italic.woff2) format('woff2'); font-style: italic; font-weight: 200 900; font-display: swap; }
body[data-page="legal"] { --serif: 'SIHAN Serif', 'Source Serif 4', 'Iowan Old Style', Georgia, serif; }
