/* ==========================================================================
   kebbo-dashboard

   One stylesheet. The whole product is eight screens and they share every
   component, so a file per screen would be eight files repeating themselves.

   The system, in one place so nothing drifts:
     white page and white sidebar, one hairline between them
     a ring plus a soft lift instead of hard borders
     14 px corners on anything that holds content, pills on anything you click
     one green and one red, used only to say better or worse
   ========================================================================== */

:root {
  --n0:   #ffffff;
  --n5:   #fafafa;
  --n10:  #f1f1f1;
  --n20:  #e4e4e4;
  --n40:  #adadad;
  --n60:  #707070;
  --n80:  #3f3f3f;
  --n100: #141414;

  --line:   rgba(64, 64, 64, 0.08);
  --line-2: rgba(64, 64, 64, 0.12);
  --ring:   inset 0 0 0 1px rgba(64, 64, 64, 0.11);
  --lift:   0 1px 2px rgba(20, 20, 20, 0.05);
  --pop:    0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.12);

  --up:   #17be00;
  --down: #ff0326;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }

/* The browser hides a [hidden] element at the very bottom of the cascade, so
   any class that sets a display beats it. Said once, here, rather than
   remembered at every rule that sets one. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--n0);
  color: var(--n100);
  font-family: Saans, "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 22px;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- the frame -------------------------------------------------------- */

.app {
  height: 100%;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.nav {
  background: var(--n0);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nav > header { padding: 20px 17px 12px; flex: none; }

.logo { display: block; width: max-content; }
.logo svg { height: 24px; display: block; overflow: visible; }

.nav .scroll { overflow: auto; padding: 14px 12px; flex: 1; }

.menu { display: grid; gap: 2px; }

.menu a,
.menu span.item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--n80);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.menu svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.68;
}

.menu a:hover { background: #f4f4f4; color: var(--n100); }
.menu a:hover svg { opacity: 0.88; }

.menu a.on { background: #f2f2f2; color: var(--n100); font-weight: 600; }
.menu a.on svg { opacity: 1; }

/* Items we have not built. Visible so the shape of the product is honest,
   unclickable so nothing pretends to work. */
.menu span.item { color: var(--n40); cursor: default; }
.menu span.item svg { opacity: 0.4; }
.menu span.item em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--n40);
}

.nav > footer { flex: none; padding: 10px 14px 14px; }

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r);
  background: #f7f7f7;
  font-size: 13px;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

.store .mark {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--n100); color: var(--n0);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none;
}

.store b { display: block; font-size: 13.5px; font-weight: 600; line-height: 18px; }
.store span { font-size: 12px; color: var(--n60); }
.store .chev {
  margin-left: auto; width: 7px; height: 7px;
  border-right: 1.5px solid var(--n40);
  border-bottom: 1.5px solid var(--n40);
  transform: rotate(45deg);
}

/* ---- page ------------------------------------------------------------- */

.page { overflow: auto; background: var(--n0); display: flex; flex-direction: column; }

.page-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  background: var(--n0);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}

.page-bar h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.page-bar .sub { font-size: 13px; color: var(--n60); }

/* Centred, always. A page pinned to the left edge of a wide screen reads as
   something that did not finish loading. The wide pages get more room than
   the narrow ones, but both sit in the middle. */
.body {
  padding: 24px 26px 48px;
  display: grid;
  gap: 16px;
  align-content: start;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.body.narrow { max-width: 760px; }

/* The bar above it follows the same column, so a title is never off to one
   side of the content it belongs to. */
.page-bar > .inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-bar.narrow > .inner { max-width: 760px; }

/* ---- controls --------------------------------------------------------- */

.btn {
  font: inherit; font-size: 13.5px; font-weight: 550; letter-spacing: 0;
  border: 1px solid var(--line-2);
  background: var(--n0); color: var(--n100);
  border-radius: 999px; padding: 8px 15px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--n5); }
.btn-dark { background: var(--n100); border-color: var(--n100); color: var(--n0); }
.btn-dark:hover { background: #2b2b2b; }
.btn-quiet { border-color: transparent; background: none; color: var(--n60); }
.btn-danger { border-color: rgba(255, 3, 38, 0.3); color: var(--down); }
.btn-danger:hover { background: rgba(255, 3, 38, 0.06); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.pills {
  display: inline-flex; gap: 2px; padding: 3px;
  background: #f4f4f4; border-radius: 999px;
}
.pills a, .pills button {
  font: inherit; font-size: 12.5px; font-weight: 550; letter-spacing: 0;
  border: 0; background: none; color: var(--n60);
  padding: 5px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.pills .on { background: var(--n0); color: var(--n100); box-shadow: var(--ring), var(--lift); }

label.l { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.hint { margin: 8px 0 0; font-size: 12.5px; line-height: 17px; color: var(--n60); }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  font: inherit; font-size: 14px;
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  border: 0;
  box-shadow: var(--ring);
  background: var(--n0);
  color: var(--n100);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--n100);
}
textarea { resize: vertical; min-height: 92px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 19px; }

input[type="color"] {
  appearance: none; width: 30px; height: 30px; padding: 0; border: 0;
  background: none; border-radius: 50%; cursor: pointer;
}
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: 50%; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

input[type="range"] {
  appearance: none; flex: 1; height: 4px; border-radius: 999px; background: var(--n10);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--n0); box-shadow: var(--ring), var(--lift); cursor: pointer;
}

.switch {
  appearance: none; width: 40px; height: 24px; border-radius: 999px;
  background: var(--n20); position: relative; cursor: pointer; flex: none;
  transition: background 160ms ease;
}
.switch::after {
  content: ""; position: absolute; inset: 3px auto 3px 3px; width: 18px;
  border-radius: 50%; background: var(--n0); box-shadow: var(--lift);
  transition: transform 160ms ease;
}
.switch:checked { background: var(--n100); }
.switch:checked::after { transform: translateX(16px); }

/* ---- cards ------------------------------------------------------------ */

.card {
  background: var(--n0); border-radius: var(--r);
  box-shadow: var(--ring), var(--lift);
  padding: 18px 20px;
}

.card > h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.card > p.lead { margin: 0 0 16px; font-size: 13.5px; color: var(--n60); }

.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.stat {
  background: var(--n0); border-radius: var(--r);
  box-shadow: var(--ring), var(--lift);
  padding: 15px 17px 14px; display: grid; gap: 3px; align-content: start;
}
.stat h3 { margin: 0; font-size: 12.5px; font-weight: 550; color: var(--n60); }
.stat strong {
  font-size: 22px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.delta {
  margin: 1px 0 0; font-size: 12.5px; font-weight: 550; color: var(--up);
  display: flex; align-items: baseline; gap: 7px;
}
.delta.down { color: var(--down); }
.delta.flat { color: var(--n40); }
.delta em { font-style: normal; font-weight: 450; color: var(--n40); font-size: 11.5px; }

/* ---- chart ------------------------------------------------------------ */

.panel {
  background: var(--n0); border-radius: var(--r);
  box-shadow: var(--ring), var(--lift);
  padding: 18px 20px 14px;
}
.panel-head { display: flex; align-items: baseline; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.panel-head .big {
  font-size: 24px; font-weight: 650; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.panel-head .right { margin-left: auto; font-size: 12.5px; color: var(--n40); }

.chart { position: relative; margin-top: 14px; }
.chart .plot { display: block; width: 100%; height: 216px; overflow: visible; }
.chart .grid { stroke: rgba(64, 64, 64, 0.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#kebbo-fade); stroke: none; }
.chart .line {
  fill: none; stroke: var(--n100); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.chart .xlabs { position: relative; height: 18px; margin-top: 6px; }
.chart .xlabs span {
  position: absolute; transform: translateX(-50%);
  font-size: 11.5px; color: var(--n40); white-space: nowrap;
}
.chart .xlabs span:first-child { transform: none; }
.chart .xlabs span:last-child { transform: translateX(-100%); }

/* The dot and the tooltip sit in HTML over the plot box, never inside the
   stretched SVG, where a circle would be drawn as an oval. */
.chart .over {
  position: absolute;
  inset: 0 0 24px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.chart .over.on { opacity: 1; }
.chart .dot {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--n0);
  border: 2px solid var(--n100);
}
.chart .tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--n100);
  color: var(--n0);
  border-radius: 10px;
  padding: 7px 10px;
  white-space: nowrap;
  box-shadow: var(--pop);
}
.chart .tip b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart .tip span { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* ---- the store switcher's list ---------------------------------------- */

.switch-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 6px;
  border-radius: var(--r);
  box-shadow: var(--ring), var(--lift);
}
.switch-list .btn { justify-content: flex-start; border-color: transparent; }
.switch-list .btn:hover { background: #f4f4f4; }

/* ---- notices ---------------------------------------------------------- */

.notice {
  border-radius: var(--r); padding: 13px 16px; font-size: 13.5px;
  box-shadow: var(--ring); background: var(--n5); color: var(--n80);
  display: flex; align-items: center; gap: 12px;
}
.notice.bad { background: rgba(255, 3, 38, 0.05); color: #a8001a; box-shadow: inset 0 0 0 1px rgba(255, 3, 38, 0.2); }
.notice.good { background: rgba(23, 190, 0, 0.07); color: #0d7a00; box-shadow: inset 0 0 0 1px rgba(23, 190, 0, 0.25); }
.notice .btn { margin-left: auto; }

/* ---- checklist -------------------------------------------------------- */

.steps { display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r);
  box-shadow: var(--ring); background: var(--n0);
}
.step .tick {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--n40);
}
.step.done .tick { background: var(--up); color: #fff; box-shadow: none; }
.step b { display: block; font-size: 14px; font-weight: 600; }
.step span { font-size: 13px; color: var(--n60); }

.meter { height: 5px; border-radius: 999px; background: var(--n10); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--n100); border-radius: 999px; }

/* ---- tables ----------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--n40); padding: 0 12px 10px;
}
td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td.right, th.right { text-align: right; }
.tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--n10); color: var(--n60);
}
.tag.live { background: rgba(23, 190, 0, 0.12); color: #0d7a00; }
.tag.off  { background: rgba(255, 3, 38, 0.08); color: #a8001a; }

/* ---- builder ---------------------------------------------------------- */

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 352px; min-height: 0; flex: 1; }
.builder .stage {
  background: #f5f5f5; display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--line);
}
.builder .stage .bar {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  border-bottom: 1px solid var(--line); background: rgba(245, 245, 245, 0.92);
}
.builder .frames {
  flex: 1; min-height: 0; overflow: auto; padding: 20px;
  display: flex; gap: 24px; align-items: flex-start; justify-content: center;
}
.builder figure { margin: 0; flex: none; }
.builder figcaption {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 13px;
}
.builder figcaption em { font-style: normal; font-size: 12.5px; color: var(--n60); }
.builder .sheet {
  background: var(--n0); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), var(--lift);
}
/* Real viewports, scaled down: 1280 wide is a laptop, 390 wide is a phone.
   Taller than a real window on purpose — a checkout is a long page and a
   merchant wants to see the pay button without scrolling the frame. Scaled
   as large as the stage allows, because a preview you have to lean towards
   is a preview nobody checks properly.

   One at a time: showing both halved the size of each, and the two sizes are
   looked at one after the other anyway. */
.builder iframe { display: block; border: 0; background: var(--n0); }

.builder iframe.desktop { width: 1280px; height: 1400px; transform-origin: top left; }
.builder iframe.mobile  { width: 390px;  height: 1500px; transform-origin: top left; }

body[data-view="desktop"] .builder iframe.desktop { transform: scale(0.76); }
body[data-view="desktop"] .builder .sheet.desktop { width: 973px; height: 1064px; }

body[data-view="mobile"] .builder iframe.mobile { transform: scale(1); }
body[data-view="mobile"] .builder .sheet.mobile { width: 390px; height: 1500px; }

body[data-view="desktop"] figure[data-fig="mobile"],
body[data-view="mobile"] figure[data-fig="desktop"] { display: none !important; }

.builder .panel-side {
  background: var(--n0); display: flex; flex-direction: column; min-height: 0;
}
.builder .panel-side > header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.builder .panel-side h2 { margin: 0 0 3px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.builder .panel-side p { margin: 0; font-size: 13px; color: var(--n60); }
.builder .panel-side .scroll { overflow: auto; padding: 4px 20px 20px; flex: 1; }
.builder .panel-side > footer {
  border-top: 1px solid var(--line); padding: 12px 20px;
  display: flex; align-items: center; gap: 9px;
}

.grp { border-bottom: 1px solid var(--line); padding: 18px 0; }
.grp:last-child { border-bottom: 0; }
.grp > h3 {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--n60);
}
.fld { margin-bottom: 14px; }
.fld:last-child { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row .l { margin: 0; }
.row .switch { margin-left: auto; }

.sw {
  display: flex; align-items: center; gap: 10px;
  border-radius: 999px; box-shadow: var(--ring);
  padding: 5px 14px 5px 5px; cursor: pointer; margin-bottom: 8px;
}
.sw b { font-size: 13px; font-weight: 500; }
.sw input[type="text"] {
  font-size: 12.5px; border: 0; box-shadow: none; background: none;
  color: var(--n60); width: 84px; margin-left: auto; text-align: right;
  text-transform: uppercase; padding: 0;
}
.sw input[type="text"]:focus { box-shadow: none; color: var(--n100); }

.slider { display: flex; align-items: center; gap: 12px; }
.num {
  font-size: 13px; font-variant-numeric: tabular-nums; color: var(--n60);
  min-width: 44px; text-align: right;
}

.meths { display: grid; gap: 6px; }
.meth {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-sm); box-shadow: var(--ring);
  padding: 7px 10px; font-size: 13px; background: var(--n0);
}
.meth.off { color: var(--n40); background: var(--n5); }
.meth { cursor: default; }
.meth .grip {
  color: var(--n20);
  cursor: grab;
  letter-spacing: 1px;
  font-size: 12px;
  padding: 2px 2px 2px 0;
  border-radius: 4px;
}
.meth .grip:active { cursor: grabbing; }
.meth:hover .grip { color: var(--n40); }

/* The row being dragged stays visible but gets out of the way visually, so
   the gap it leaves reads as "this is where it lands". */
.meth.dragging {
  opacity: 0.45;
  box-shadow: inset 0 0 0 1px var(--n100);
}
.meth-label { min-width: 0; }
.meth .switch { margin-left: auto; width: 32px; height: 19px; }
.meth .switch::after { width: 14px; }
.meth .switch:checked::after { transform: translateX(13px); }

/* ---- login ------------------------------------------------------------ */

.signin {
  min-height: 100%; display: grid; place-items: center;
  padding: 40px 20px; background: var(--n5);
}
.signin .box {
  width: 100%; max-width: 380px; background: var(--n0);
  border-radius: var(--r-lg); box-shadow: var(--ring), 0 20px 50px rgba(0, 0, 0, 0.07);
  padding: 30px 30px 26px;
}
.signin .logo { margin: 0 auto 22px; }
.signin h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.signin p.lead { margin: 0 0 22px; font-size: 13.5px; color: var(--n60); }
.signin .fld { margin-bottom: 14px; }
.signin .btn { width: 100%; justify-content: center; padding: 11px; }
.signin .foot { margin: 18px 0 0; font-size: 12.5px; color: var(--n40); text-align: center; }

/* ---- small screens ---------------------------------------------------- */

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: 1fr; }
  .builder .stage { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- connecting a store ----------------------------------------------- */

/* The four steps of setup, shown as a row so a merchant can see where they
   are. Not clickable: the order is not a suggestion. */
.wizard {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.wizard li {
  flex: 1;
  counter-increment: step;
  font-size: 12.5px;
  color: var(--n40);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--n5);
  box-shadow: var(--ring);
}
.wizard li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--n20);
  color: var(--n0);
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: 1px;
}
.wizard li.on {
  background: var(--n0);
  color: var(--n100);
  font-weight: 550;
}
.wizard li.on::before { background: var(--n100); }

.steps-box {
  border-radius: var(--r);
  box-shadow: var(--ring);
  padding: 2px 16px;
  background: var(--n5);
}
.steps-box > summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 550;
  padding: 12px 0;
  list-style: none;
}
.steps-box > summary::-webkit-details-marker { display: none; }
.steps-box > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  transition: transform 140ms ease;
}
.steps-box[open] > summary::before { transform: rotate(90deg); }

.howto {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--n80);
}
.howto li { margin-bottom: 10px; }
.howto b { font-weight: 600; }
.howto .note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--n60);
}

/* The scopes, in one block to copy. A merchant ticking twenty checkboxes from
   memory is a merchant who misses one. */
.scopebox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--n0);
  box-shadow: var(--ring);
}
.scopebox code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 19px;
  color: var(--n80);
  word-break: break-word;
}
.scopebox .btn { flex: none; }

/* ---- the legal documents ---------------------------------------------- */

/* Read once, carefully, by somebody deciding whether to trust you. So: a
   narrow column, generous line height, and nothing else on the page. */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.legal > header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.legal > header nav { display: flex; gap: 18px; margin-left: auto; }
.legal > header nav a {
  font-size: 13.5px;
  color: var(--n60);
  text-decoration: none;
}
.legal > header nav a:hover { color: var(--n100); }
.legal > header nav a.on { color: var(--n100); font-weight: 600; }

.legal article { font-size: 15px; line-height: 25px; color: var(--n80); }
.legal h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--n100);
  margin: 0 0 6px;
}
.legal h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--n100);
  margin: 38px 0 10px;
}
.legal p.updated { font-size: 13px; color: var(--n40); margin: 0 0 28px; }
.legal p.lead { font-size: 16px; line-height: 27px; color: var(--n100); }
.legal p.small { font-size: 13px; color: var(--n60); margin-top: 40px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--n100); text-decoration: underline; text-underline-offset: 2px; }
.legal table { margin: 14px 0; font-size: 14px; }
.legal th { padding-bottom: 8px; }
.legal td { vertical-align: top; }
.legal > footer {
  display: flex;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--n40);
}
.legal > footer a { margin-left: auto; color: var(--n60); text-decoration: none; }
