:root {
  --ink: #0f1a17;
  --ink-2: #3b4a45;
  --muted: #6b7a75;
  --line: #e3e9e6;
  --bg: #f5f8f6;
  --card: #ffffff;
  --brand: #0b7a4b;
  --brand-2: #0a5c39;
  --brand-soft: #e3f4ec;
  --accent: #f4a51c;
  --accent-soft: #fff4dc;
  --danger: #c2372b;
  --danger-soft: #fdeceb;
  --info: #1d5fd1;
  --info-soft: #e8f0fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 23, .06), 0 6px 24px rgba(15, 26, 23, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #13a86a); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.logo span.ng { color: var(--brand); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { background: var(--brand-soft); color: var(--brand-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; padding: 6px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; transition: background .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--bg); }
.btn.accent { background: var(--accent); color: #2b1d00; }
.btn.accent:hover { background: #e2950c; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #a42c22; }
.btn.ghost { background: transparent; color: var(--brand); padding-inline: 10px; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 7px 12px; font-size: .88rem; border-radius: 9px; }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cfd9d4; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,122,75,.18); border-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }

.segmented { display: inline-flex; background: #eaf0ed; border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented button.on { background: #fff; color: var(--brand-2); box-shadow: var(--shadow); }

.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { margin: 0; }
.days input { display: none; }
.days span { display: inline-block; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; }
.days input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.section { padding: 56px 0; }
.page { padding: 32px 0 64px; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f0; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-2); }
.badge.warn { background: var(--accent-soft); color: #8a5a00; }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }

.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; font-size: 1rem; }
.stars .off { color: #d5dcd8; }

.alert { padding: 12px 14px; border-radius: 11px; background: var(--info-soft); color: #173f86; border: 1px solid #cbdaf7; }
.alert.warn { background: var(--accent-soft); color: #6b4600; border-color: #f7dfa6; }
.alert.bad { background: var(--danger-soft); color: #8d2219; border-color: #f6c9c5; }
.alert.ok { background: var(--brand-soft); color: var(--brand-2); border-color: #bfe5d2; }

.stat { padding: 18px; }
.stat .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .88rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #cdeedd 0%, transparent 60%), linear-gradient(180deg, #f2faf6, var(--bg)); padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--brand-2); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.hero-points li b { color: var(--ink); }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 1px; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 20px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

/* ---------- route builder ---------- */
.route-builder { position: relative; }
.stop-list { list-style: none; margin: 0 0 10px; padding: 0; position: relative; }
.stop-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; position: relative; }
.stop-list li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -14px; width: 2px; background: #cfe3d9; }
.stop-list li:last-child::before { display: none; }
.stop-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); position: relative; z-index: 1; }
.stop-list li:first-child .stop-dot { background: var(--brand); }
.stop-list li:last-child .stop-dot { background: var(--accent); border-color: var(--accent); }
.stop-name { flex: 1; font-weight: 600; background: #f3f7f5; border-radius: 9px; padding: 8px 12px; }
.stop-tag { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stop-actions button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 4px 6px; border-radius: 6px; }
.stop-actions button:hover { background: #eef2f0; color: var(--ink); }
.stop-input-row { display: flex; gap: 8px; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); margin-top: 4px; max-height: 240px; overflow: auto; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; font: inherit; cursor: pointer; }
.suggest button:hover, .suggest button.on { background: var(--brand-soft); }

/* ---------- results ---------- */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.summary .card { padding: 16px; }
.summary .n { font-size: 2rem; font-weight: 800; color: var(--brand-2); letter-spacing: -.02em; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 70px 1fr 28px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { height: 12px; background: #edf2ef; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), #19b073); border-radius: 6px; }
.bar.work .fill { background: linear-gradient(90deg, #e0900c, var(--accent)); }
.match { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: start; }
@media (max-width: 600px) { .match { grid-template-columns: 40px 1fr; } .match .act { grid-column: 1 / -1; } }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.cover { height: 6px; background: #edf2ef; border-radius: 4px; overflow: hidden; margin-top: 8px; max-width: 260px; }
.cover > div { height: 100%; background: var(--brand); }

/* ---------- verification (admin) ---------- */
.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side-by-side.three { grid-template-columns: 1fr 1fr 1fr; }
/* Selfie and ID stay side by side even on phones so they can be compared; tap to zoom. */
@media (max-width: 760px) {
  .side-by-side { gap: 8px; }
  .side-by-side.three { grid-template-columns: 1fr 1fr; }
  .side-by-side.three > :nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .side-by-side .doc { aspect-ratio: 3 / 4; }
}
.doc { background: #0f1a17; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.doc img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.doc .cap { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.doc .none { color: #9fb1aa; font-size: .9rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 200; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 96vw; }

.upload { border: 2px dashed #c5d6ce; border-radius: 12px; padding: 16px; text-align: center; background: #fafcfb; cursor: pointer; position: relative; }
.upload:hover { border-color: var(--brand); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .preview { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #eef2f0; }

/* ---------- map / trip ---------- */
.map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e6ece9; }
.map.sm { height: 260px; }
.eta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.eta .n { font-size: 1.6rem; font-weight: 800; }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.pin.me { background: var(--info); }
.pin.driver { background: var(--brand); }
.pin.passenger { background: var(--accent); }
.pin.home { background: var(--brand); }
.pin.work { background: var(--accent); }

.progress { height: 10px; background: #edf2ef; border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), #19b073); }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(440px, 100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow); font-weight: 500; animation: pop .2s ease-out; }
.toast.bad { background: var(--danger); }
.toast.ok { background: var(--brand-2); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; background: #fff; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   App-like mobile experience
   ========================================================= */
html { -webkit-tap-highlight-color: transparent; }
body { padding-bottom: env(safe-area-inset-bottom); overscroll-behavior-y: none; }
input, select, textarea { font-size: 16px; min-height: 46px; } /* 16px stops iOS zoom-on-focus */
textarea { min-height: 90px; }
.btn { min-height: 46px; }
.btn.sm { min-height: 36px; }
.nav { padding-top: env(safe-area-inset-top); }

.tabbar { display: none; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .nav .container { height: 56px; }
  .nav-toggle, .nav-links { display: none !important; }
  .nav .mobile-action { display: inline-flex; margin-left: auto; }
  body.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-tabbar footer.site { display: none; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px;
    color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none !important; position: relative; }
  .tabbar a.active { color: var(--brand-2); }
  .tabbar a.active .icon { stroke-width: 2.4; }
  .tabbar a.active::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); }
  .tabbar .dot { position: absolute; top: 3px; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--danger); color: #fff; font-size: .65rem; display: grid; place-items: center; }

  .container, .narrow { width: calc(100% - 24px); }
  .page { padding: 16px 0 32px; }
  .page-head { margin-bottom: 14px; }
  .page-head h1 { font-size: 1.55rem; }
  .card { padding: 16px; border-radius: 16px; }
  .section { padding: 36px 0; }
  .hero { padding: 24px 0 24px; }
  .hero p.lead { font-size: 1.02rem; }
  .grid { gap: 12px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary .n { font-size: 1.6rem; }
  .map { height: 52vh; }
  .row.stack-sm { flex-direction: column; align-items: stretch; }
  .row.stack-sm > .btn { width: 100%; }
  .tabs { margin-inline: -12px; padding-inline: 12px; }
  table { font-size: .85rem; }
  /* Sticky primary action at the bottom of forms, above the tab bar */
  .sticky-action { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 8px;
    background: linear-gradient(180deg, transparent, var(--bg) 40%); }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.mobile-action { display: none; }

/* Installed (standalone) mode: feel like a native app */
@media (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; }
  input, textarea, .selectable { user-select: text; -webkit-user-select: text; }
}

.install-card { display: none; }
.install-card.show { display: flex; }

/* Bottom sheet dialogs (app-style modals) */
dialog.sheet { border: 0; padding: 0; border-radius: 20px; width: min(520px, 100% - 24px); max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.sheet::backdrop { background: rgba(15,26,23,.45); }
dialog.sheet .sheet-body { padding: 20px; overflow: auto; max-height: 90vh; }
dialog.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #d5dcd8; margin: 10px auto 0; display: none; }
@media (max-width: 820px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; animation: up .22s ease-out; }
  dialog.sheet .sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  dialog.sheet .grab { display: block; }
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
details.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.filters summary::-webkit-details-marker { display: none; }
details.filters summary::after { content: "▾"; color: var(--muted); }
details.filters[open] summary::after { content: "▴"; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Show / hide password */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.pw-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.pw-toggle:focus-visible { outline: 3px solid rgba(11,122,75,.25); }

/* Emergency contact picker (SOS / track my ride) */
.contact-pick { display: grid; gap: 6px; }
.contact-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; min-height: 48px; }
.contact-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.contact-pick input { width: 20px; height: 20px; }
.contact-pick .ph { margin-left: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; position: relative; }
.contact-row .rel { grid-column: 1 / -1; }
.contact-row .x { position: absolute; top: 6px; right: 6px; }
@media (max-width: 340px) { .contact-row { grid-template-columns: 1fr; } }
.track-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #bfe5d2; margin-bottom: 12px; font-size: .9rem; }
.track-banner .btn { margin-left: auto; }

/* Terms & Privacy */
.legal { width: min(760px, 100% - 32px); margin-inline: auto; line-height: 1.65; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal h3 { font-size: 1rem; margin: 16px 0 6px; }
.legal ul { padding-left: 1.2em; margin: 6px 0 12px; }
.legal li { margin-bottom: 4px; }
.legal-summary { background: var(--brand-soft); border-color: #bfe5d2; margin: 16px 0 8px; }
.legal-summary h3 { margin-top: 0; }
.legal .table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { background: #f6f8f7; }
.legal .todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
@media (max-width: 600px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; overflow: hidden; }
  .legal td { border: 0; padding: 6px 12px; }
  .legal td:first-child { font-weight: 700; background: #f6f8f7; padding-top: 8px; }
}
