
/* Layout: page tabs (Prototype / Data structure). Prototype = phone frame left, walkthrough and mask QR right. */
:root {
  --bg: #F1F5F6;
  --surface: #FFFFFF;
  --surface-2: #E8EEF0;
  --ink: #14232B;
  --ink-2: #44575F;
  --line: #CFDADE;
  --accent: #0F6B7A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFF2;
  --ok: #186B40;
  --ok-soft: #DAF0E3;
  --warn: #7A4F00;
  --warn-soft: #FAEAC6;
  --bad: #A8231B;
  --bad-soft: #F8DDDA;
  --qr-bg: #FFFFFF;
  --qr-fg: #101A1F;
  --photo-bg: #FFFFFF;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D161A; --surface: #15232A; --surface-2: #1D2F37; --ink: #E8F0F3; --ink-2: #A3B6BE;
    --line: #2B414A; --accent: #5CC3D4; --accent-ink: #06242A; --accent-soft: #17383F;
    --ok: #5CCB8F; --ok-soft: #173A2A; --warn: #F0C15A; --warn-soft: #3B2E10; --bad: #FF8F86; --bad-soft: #41211F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D161A; --surface: #15232A; --surface-2: #1D2F37; --ink: #E8F0F3; --ink-2: #A3B6BE;
  --line: #2B414A; --accent: #5CC3D4; --accent-ink: #06242A; --accent-soft: #17383F;
  --ok: #5CCB8F; --ok-soft: #173A2A; --warn: #F0C15A; --warn-soft: #3B2E10; --bad: #FF8F86; --bad-soft: #41211F;
  color-scheme: dark;
}
/* Skins apply inside the phone only. f = Force360 (black, lime Pantone 382 C, cool grey 8 C). n = an invented second OEM. */
.phone[data-skin="f"] {
  --accent: #C2D600; --accent-ink: #231F20; --accent-soft: #F0F5BD; --accent-text: #231F20;
  --bar-bg: #231F20; --bar-fg: #FFFFFF; --bar-line: #C2D600;
}
.phone[data-skin="n"] { --accent: #B1400F; --accent-ink: #FFFFFF; --accent-soft: #F8E3D8; --accent-text: #B1400F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone[data-skin="f"] { --accent: #C2D600; --accent-ink: #231F20; --accent-soft: #2B3200; --accent-text: #C2D600; --bar-bg: #0B0B0B; --bar-fg: #FFFFFF; --bar-line: #C2D600; }
  :root:not([data-theme="light"]) .phone[data-skin="n"] { --accent: #FF9A6B; --accent-ink: #3A1303; --accent-soft: #3F2417; --accent-text: #FF9A6B; }
}
:root[data-theme="dark"] .phone[data-skin="f"] { --accent: #C2D600; --accent-ink: #231F20; --accent-soft: #2B3200; --accent-text: #C2D600; --bar-bg: #0B0B0B; --bar-fg: #FFFFFF; --bar-line: #C2D600; }
:root[data-theme="dark"] .phone[data-skin="n"] { --accent: #FF9A6B; --accent-ink: #3A1303; --accent-soft: #3F2417; --accent-text: #FF9A6B; }

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 56px;
}
.wrap { max-width: 1100px; margin: 0 auto; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0 0 4px; text-wrap: balance; }
h3 { margin: 0; }
p { margin: 0 0 12px; }
.lede { color: var(--ink-2); max-width: 64ch; margin-bottom: 22px; }
.mono { font-family: var(--font-mono); }
.eyebrow { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); margin: 0 0 6px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 0 14px; min-height: 44px; font: 500 15px var(--font-body); color: var(--ink-2); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
:where(button, input, a):focus-visible { outline: 3px solid var(--accent-text, var(--accent)); outline-offset: 2px; }

.proto { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .proto { grid-template-columns: minmax(0, 1fr); } .phone { margin: 0 auto; } }

/* Phone */
.phone {
  width: 100%; max-width: 390px; min-height: 800px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--bar-bg, var(--surface)); color: var(--bar-fg, var(--ink)); border-bottom: 3px solid var(--bar-line, var(--line)); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; min-width: 0; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 13px var(--font-body); flex: none; }
.example-tag { font: 500 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; border: 1px solid currentColor; opacity: .8; padding: 2px 6px; border-radius: 4px; flex: none; }
.logo-tile { display: flex; align-items: center; }
.logo-tile img { display: block; height: 36px; width: auto; }
.brand-word { font-size: 17px; letter-spacing: .01em; }
.hero { background: var(--photo-bg); border: 1px solid var(--line); border-bottom: 6px solid var(--accent); border-radius: 14px; padding: 12px; margin-bottom: 18px; display: grid; place-items: center; }
.hero-img { display: block; width: 100%; max-width: 185px; height: auto; max-height: 215px; object-fit: contain; }
.hero-ph { width: 100%; min-height: 170px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.mask-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mask-head h2 { margin-bottom: 8px; }
.mask-head p { margin-bottom: 0; }
.mask-head-text { min-width: 0; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(10, 16, 19, .66); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.viewer-sheet { width: 100%; max-width: 440px; max-height: 100%; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.viewer-title { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-body { flex: 1; min-height: 0; overflow: auto; padding: 12px; background: var(--surface-2); }
.viewer-img { display: block; width: 100%; height: auto; border-radius: 6px; }
.viewer-page { display: block; margin: 0 auto 12px; border-radius: 4px; background: #FFFFFF; max-width: 100%; }
.viewer-note { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; }
.cert-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.cert-doc h3 { font-size: 20px; margin-bottom: 14px; }
.cert-doc .plate { margin-bottom: 0; }
.status { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.status-icon svg { width: 19px; height: 19px; }
.status-row:first-child { border-top: 0; }
.status-icon { display: flex; flex: none; }
.status-icon.yes { color: var(--ok); }
.status-icon.no { color: var(--bad); }
.status-icon.date { color: var(--ink-2); }
.status-label { flex: 1; min-width: 0; }
.status-value { font: 500 13px var(--font-mono); text-align: right; }
.photo-tile { background: var(--photo-bg); border-radius: 8px; padding: 8px; margin-bottom: 12px; display: grid; place-items: center; }
.photo-tile img { display: block; width: 100%; max-width: 210px; height: auto; }
.thumb-box { position: relative; width: 96px; height: 96px; flex: none; background: var(--photo-bg); border: 1px solid var(--line); border-bottom: 4px solid var(--accent); border-radius: 10px; overflow: hidden; }
.thumb-box img { position: absolute; left: 5px; top: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; object-position: center; }
.screen { padding: 22px 18px 32px; flex: 1; min-width: 0; }
.sub { color: var(--ink-2); margin-bottom: 14px; }
.spec-lines { color: var(--ink-2); margin-bottom: 14px; }
.spec-lines p { margin: 0; }
.spec-lines .mono { color: var(--ink); font-size: 13.5px; }
.model-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.model-row p { min-width: 0; overflow-wrap: anywhere; }
.ifu-btn { appearance: none; display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.ifu-btn svg { color: var(--accent-text, var(--accent)); }
.life { margin: 0 0 16px; }
.life-label { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 4px; }
.life-dates { font: 500 19px var(--font-mono); white-space: nowrap; }
.note { color: var(--ink-2); font-size: 13px; margin: 12px 0 16px; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.neutral { background: var(--surface-2); color: var(--ink-2); }

.plate { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plate > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: baseline; }
.plate > div:first-child { border-top: 0; }
.plate dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.plate dd { margin: 0; font: 400 14px var(--font-mono); overflow-wrap: anywhere; }
.plate dd.plain { font-family: var(--font-body); font-size: 15px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--font-body); cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn + .btn { margin-top: 10px; }
.btn-link { appearance: none; background: none; border: 0; color: var(--accent-text, var(--accent)); font: 500 14px var(--font-body); min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link.danger { color: var(--bad); }
.back { display: inline-flex; align-items: center; gap: 7px; margin: -8px 0 8px -4px; }

.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field input[type="text"], .field input[type="date"] {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 400 15px var(--font-body);
}
.field input[type="file"] { width: 100%; font: 400 14px var(--font-body); color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.err { color: var(--bad); font-size: 13px; margin-top: 5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > .btn { margin-top: 0; }
.cert-preview { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 10px; }
.cert-thumb { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--surface-2); }
.cert-preview .hint { margin: 0 0 4px; overflow-wrap: anywhere; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.pill input, .check input { accent-color: var(--accent-text, var(--accent)); width: 18px; height: 18px; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.check.big { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; align-items: center; font-size: 15px; font-weight: 600; }

.section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.section h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.card.soft { background: var(--accent-soft); border-color: transparent; }
.card.ok { background: var(--ok-soft); border-color: transparent; }
.card.bad { background: var(--bad-soft); border-color: transparent; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card .meta { font: 400 13px var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.card p:last-child { margin-bottom: 0; }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 16px; color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.log { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.log li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.log .when { font-weight: 600; }
.pack { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font: 400 14px var(--font-body); }
.pack[aria-pressed="true"] { border-color: var(--accent-text, var(--accent)); box-shadow: 0 0 0 1px var(--accent-text, var(--accent)); }
.pack .code { font: 500 15px var(--font-mono); display: block; margin-bottom: 2px; }
.pack .tag { font-size: 12.5px; color: var(--ink-2); display: block; margin-top: 4px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 10px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Side panel */
.side { display: grid; gap: 20px; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { appearance: none; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 52px; cursor: pointer; font: 500 15px var(--font-body); }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 500 13px var(--font-mono); }
.step small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.step.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-box { width: 148px; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--qr-bg); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-text { min-width: 0; flex: 1 1 180px; }
.qr-text .url { font: 400 13px var(--font-mono); overflow-wrap: anywhere; margin-bottom: 8px; }
.skin-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Data structure tab */
.ents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ent { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; min-width: 0; }
.ent h3 { font: 500 16px var(--font-mono); }
.ent p { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; }
.fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fields li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 4px; }
.fields .fn { font-family: var(--font-mono); overflow-wrap: anywhere; }
.fields .ft { color: var(--ink-2); text-align: right; }
.links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.links span { font: 500 12px var(--font-mono); background: var(--surface-2); color: var(--ink-2); padding: 2px 8px; border-radius: 4px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 20px; }
.cols ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.cols h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.cols li strong { font-weight: 600; }

/* ===== Pilot additions ===== */
a { color: var(--accent-text, var(--accent)); }
a.btn { text-decoration: none; }
a.btn-primary, a.btn-primary:hover { color: var(--accent-ink); }
a.btn-secondary { color: var(--ink); }
body.app { padding: 0; }
body.app .phone { max-width: 430px; min-height: 100vh; border: 0; border-radius: 0; margin: 0 auto; }
@media (min-width: 520px) { body.app { padding: 24px 16px; } body.app .phone { min-height: 800px; border: 1px solid var(--line); border-radius: 28px; } }
.field input[type="email"], .field input[type="password"], .field input[type="url"], .field input[type="number"], .field select {
  width: 100%; font: 400 16px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px;
}
.field input[type="color"] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.field input[type="text"], .field input[type="date"] { font-size: 16px; }
.flash { margin: 12px 18px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.file-btn { cursor: pointer; margin-top: 0; }
.fit-form[hidden], [hidden] { display: none !important; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
summary.btn-link { display: inline-block; }
.hero-img { margin: 0 auto; }

/* Staff pages (HSE and admin) */
body.staff { padding: 24px 16px 64px; }
.staff .wrap { max-width: 1180px; }
.staff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.staff-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.staff-nav .btn { margin: 0; padding: 10px 16px; }
.staff-nav form { margin: 0; }
.panel.narrow { max-width: 420px; }
.staff .panel { margin-bottom: 20px; }
.staff .panel h2 { font-size: 18px; margin-bottom: 12px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cards3 .panel { margin: 0; }
.big { font: 600 34px/1.1 var(--font-body); margin: 4px 0 0; }
.big.ok { color: var(--ok); } .big.bad { color: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.table-wrap table.grid { margin: 0; }
table.grid th, table.grid td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.tabs-lite { display: flex; gap: 8px; margin: 14px 0; }
.tabs-lite a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.tabs-lite a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form-grid { display: grid; gap: 4px; max-width: 460px; margin-top: 14px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; border: 1px solid var(--line); }
.staff details { margin-top: 10px; }
.staff summary.btn { display: inline-flex; width: auto; padding: 9px 16px; }
.two > * { min-width: 0; }
.field input[type="date"] { min-width: 0; max-width: 100%; }
.theme-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 390px); gap: 24px; align-items: start; }
@media (max-width: 860px) { .theme-grid { grid-template-columns: 1fr; } }
.phone.preview { min-height: 0; }
.sku { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sku .field { margin: 8px 0; }
.sku input[type=url], .sku input[type=file] { width: 100%; }
.check.big { margin-bottom: 8px; }

.legal-foot { margin: 28px 0 0; padding: 14px 0 6px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; }
.phone .legal-foot { margin: 0; padding: 14px 18px 18px; }
.legal-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.legal-links a { color: var(--ink-2); text-underline-offset: 3px; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }


