/* Nagless Learn public site. The family fridge door: notebook sheets, notes and a polaroid
   held by magnets and marker tape on a pale enamel door. Tokens follow DESIGN.md.
   One committed light look (the door), so no dark variant. */

@font-face {
  font-family: "Shantell Sans";
  src: url("/fonts/ShantellSans.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/Lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1d3fa8;
  --ink-deep: #15308a;
  --text: #141c45;
  --muted: #4a5584;
  --paper: #ffffff;
  --grid: rgba(41, 98, 214, 0.11);
  --margin: rgba(242, 100, 126, 0.55);
  --hair: #dce3f5;
  --door: #e9eef6;
  --door-deep: #dfe6f1;
  --door-edge: #cdd6e6;
  --note: #fffbe0;
  --night: #10173a;
  --night-text: #eef1ff;
  --night-muted: #a7afd6;
  --yellow: #ffe45c;
  --pink: #ff9cc8;
  --green: #8df0b2;
  --orange: #ffb866;
  --sky: #94dbff;
  --miti: #ff8a3d;
  --done: #0b5a31;
  --done-tint: #ddf8e8;
  --disp: "Shantell Sans", "Comic Neue", ui-rounded, system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-note: 0 1px 1px rgba(20, 28, 69, 0.08), 0 10px 22px rgba(20, 28, 69, 0.14);
  --shadow-sticker: drop-shadow(0 4px 5px rgba(20, 28, 69, 0.28));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--door);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--yellow);
  color: var(--text);
}
a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--ink-deep);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.skip:hover {
  color: #fff;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- paper, markers, magnets, tape ---- */
.paper {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}
.hl {
  --c: var(--yellow);
  background-image: linear-gradient(
    101deg,
    transparent 0.15em,
    var(--c) 0.4em,
    var(--c) calc(100% - 0.35em),
    transparent calc(100% - 0.1em)
  );
  background-size: 100% 68%;
  background-position: 0 70%;
  background-repeat: no-repeat;
  padding: 0 0.25em;
  margin: 0 -0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl.g,
.hl.green {
  --c: var(--green);
}
.hl.pink {
  --c: var(--pink);
}
.hl.orange {
  --c: var(--orange);
}
.hl.sky {
  --c: var(--sky);
}
.hl.yellow {
  --c: var(--yellow);
}
.magnet {
  position: absolute;
  top: -11px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%), var(--m);
  box-shadow: 0 3px 5px rgba(20, 28, 69, 0.32), inset 0 -2px 0 rgba(20, 28, 69, 0.12);
  z-index: 2;
}
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 22px;
  background: rgba(255, 228, 92, 0.72);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
}
.tape-sky {
  background: rgba(148, 219, 255, 0.8);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: 600 17px/1 var(--body);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(20, 28, 69, 0.22);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink-deep);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sec {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #b9c6ee;
}
.btn-sec:hover {
  background: #f3f6ff;
  color: var(--ink-deep);
}

/* ---- top bar ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--door);
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: rgba(233, 238, 246, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.topbar.scrolled {
  border-bottom-color: var(--door-edge);
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 var(--disp);
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand-miti svg {
  width: 36px;
  height: 36px;
  display: block;
  filter: var(--shadow-sticker);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover {
  text-decoration: underline;
}
.lang {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1.5px solid #b9c6ee;
  border-radius: 999px;
  padding: 5px 11px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang b {
  color: var(--ink);
  font-weight: 700;
}
.lang:hover {
  background: #fff;
}
.nav-login {
  min-height: 42px;
  font-size: 15px;
  padding: 0 16px;
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav {
    gap: 10px;
    min-height: 60px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-miti svg {
    width: 30px;
    height: 30px;
  }
  .lang-cur {
    display: none;
  }
  .nav-login {
    font-size: 14px;
    padding: 0 12px;
    min-height: 40px;
  }
}

/* ---- the door (first viewport) ---- */
.door {
  padding: clamp(28px, 4vw, 56px) var(--gutter-r) clamp(56px, 7vw, 96px) var(--gutter);
  background: linear-gradient(90deg, transparent calc(100% - 26px), var(--door-edge) calc(100% - 26px), var(--door-edge) calc(100% - 24px), var(--door-deep) calc(100% - 24px));
}
.door-in {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.sheet {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3.5vw, 52px) clamp(30px, 3.5vw, 44px) clamp(48px, 5.5vw, 84px);
  box-shadow: var(--shadow-note);
  transform: rotate(var(--r));
  margin-top: 12px;
}
.sheet::before {
  content: "";
  position: absolute;
  left: clamp(30px, 3.6vw, 56px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--margin);
}
.hero-title {
  font: 800 clamp(38px, 4.6vw, 66px) / 1.02 var(--disp);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.hero-title span {
  display: inline;
}
.hero-title > span:first-child::after {
  content: "\A";
  white-space: pre;
}
.hero-lede {
  font-size: clamp(17px, 1.45vw, 20px);
  max-width: 36ch;
  margin: 22px 0 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.hero-cta .btn {
  min-height: 54px;
  font-size: 18px;
  padding: 0 26px;
}
.cta-note {
  font-size: 15px;
  color: var(--muted);
}

/* The cluster of objects on the right of the door. */
.cluster {
  position: relative;
  min-height: clamp(470px, 40vw, 540px);
}
.cluster > * {
  position: absolute;
  transform: rotate(var(--r));
}
.deal {
  left: 0;
  top: 8px;
  width: 54%;
  background: var(--note);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-note);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(41, 98, 214, 0.14) 27px 28px);
  background-position: 0 14px;
}
.deal p {
  margin: 0;
}
.deal-title {
  font: 700 20px/1.2 var(--disp);
  margin-bottom: 8px !important;
}
.deal-line {
  font-size: 15px;
  line-height: 28px;
}
.deal-signed {
  font: 600 15px/1.3 var(--disp);
  color: var(--ink);
  margin-top: 10px !important;
}
.polaroid {
  right: 0;
  top: 0;
  width: 38%;
  margin: 0;
  background: #fff;
  padding: 8px 8px 0;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.page-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f7f3e6;
  background-image: repeating-linear-gradient(transparent 0 15px, rgba(41, 98, 214, 0.18) 15px 16px);
  border-radius: 2px;
  overflow: hidden;
}
.page-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 40%, rgba(20, 28, 69, 0.06));
}
.page-photo i {
  position: absolute;
  left: 12%;
  height: 3px;
  border-radius: 2px;
  background: #2f43a0;
  opacity: 0.8;
}
.polaroid figcaption {
  font: 500 14px/1 var(--disp);
  padding: 12px 4px 14px;
  color: var(--text);
}
.verdict {
  right: 0;
  top: 62%;
  width: 58%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-note);
}
.verdict p {
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px 3px 4px;
}
.pill-done {
  background: var(--done-tint);
  color: var(--done);
}
.tick {
  width: 18px;
  height: 18px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.report {
  left: 0;
  top: 52%;
  width: 46%;
  padding: 20px 16px 14px;
  box-shadow: var(--shadow-note);
}
.report p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.report-title {
  font: 700 17px/1.2 var(--disp) !important;
  margin-bottom: 6px !important;
}
.door-miti {
  left: 10%;
  bottom: -44px;
  width: 88px;
}
.door-miti svg {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--shadow-sticker);
}

/* Notes stick onto the door on load: they arrive from a little higher and more tilted,
   and are visible from the first frame. */
@media (prefers-reduced-motion: no-preference) {
  .note-in {
    animation: stick 620ms var(--ease-out) both;
    animation-delay: var(--d, 0ms);
  }
  @keyframes stick {
    from {
      transform: translateY(-14px) rotate(calc(var(--r) * 2.6)) scale(1.03);
      box-shadow: 0 2px 2px rgba(20, 28, 69, 0.06), 0 26px 40px rgba(20, 28, 69, 0.2);
    }
  }
  .wipe {
    animation: wipe 760ms var(--ease-out) 520ms both;
  }
  @keyframes wipe {
    from {
      background-size: 0% 68%;
    }
  }
}

@media (max-width: 900px) {
  .door-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .door {
    background: var(--door);
  }
  .cluster {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 22px 16px;
    padding-top: 8px;
  }
  .cluster > * {
    position: relative;
    inset: auto;
    width: auto;
  }
  .verdict,
  .report {
    grid-column: span 1;
  }
  .door-miti {
    position: absolute;
    right: 6px;
    left: auto;
    bottom: -30px;
    width: 72px;
  }
}
@media (max-width: 520px) {
  .sheet {
    padding: 34px 20px 26px 40px;
  }
  .sheet::before {
    left: 26px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .cluster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  }
  .deal {
    padding: 18px 14px 14px;
  }
  .deal-title {
    font-size: 17px;
  }
  .deal-line,
  .deal-signed {
    font-size: 14px;
  }
  .verdict {
    grid-column: 1 / -1;
  }
  .report {
    grid-column: 1 / -1;
    width: 82%;
  }
}

/* ---- bands below the door ---- */
.band {
  padding: clamp(64px, 8vw, 112px) var(--gutter-r) clamp(64px, 8vw, 112px) var(--gutter);
}
.band-paper {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  border-top: 1px solid var(--door-edge);
  border-bottom: 1px solid var(--door-edge);
}
.band-door {
  background: var(--door);
}
.band-in {
  max-width: 1160px;
  margin: 0 auto;
}
.band-in.narrow {
  max-width: 820px;
}
.h2 {
  font: 700 clamp(32px, 3.6vw, 46px) / 1.06 var(--disp);
  color: var(--text);
  margin: 0 0 14px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  max-width: 60ch;
  margin: 0 0 clamp(36px, 4vw, 52px);
  color: var(--muted);
}

/* How it works: four notes in order. The number is the order of the afternoon. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.step {
  position: relative;
  background: #fff;
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-note);
  transform: rotate(var(--r));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-no {
  font: 800 44px/1 var(--disp);
  color: var(--ink);
}
.step h3 {
  font: 700 21px/1.2 var(--disp);
  margin: 0;
}
.step p {
  font-size: 15.5px;
  margin: 0;
  flex: 1;
}
.step-tag {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 0.25em;
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Two pinned notes. */
.twin {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.pin-note {
  position: relative;
  background: #fff;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-note);
  transform: rotate(var(--r));
}
.pin-note p {
  font-size: 17px;
  margin: 0;
  max-width: 56ch;
}
.pin-note.night {
  background: var(--night);
  color: var(--night-text);
}
.pin-note.night .h2 {
  color: var(--night-text);
}
.pin-note.night p {
  color: var(--night-muted);
}
@media (max-width: 800px) {
  .twin {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pricing. */
.period {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #b9c6ee;
  margin-bottom: 28px;
}
.period button {
  font: 600 15px/1 var(--body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 20px;
  cursor: pointer;
}
.period button[aria-checked="true"] {
  background: var(--yellow);
  color: var(--text);
}
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: 920px;
}
.plan {
  position: relative;
  padding: 32px clamp(22px, 3vw, 36px) 30px;
  box-shadow: var(--shadow-note);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-free {
  transform: rotate(-0.6deg);
}
.plan-premium {
  background: var(--note);
  transform: rotate(0.7deg);
}
.plan h3 {
  font: 800 30px/1 var(--disp);
  margin: 0;
  color: var(--ink);
}
.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.amount {
  font: 800 46px/1 var(--disp);
  font-variant-numeric: tabular-nums;
}
.per {
  color: var(--muted);
  font-size: 15px;
}
.plans[data-period="year"] .show-month,
.plans[data-period="month"] .show-year {
  display: none;
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan-list li,
.rule-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.check {
  width: 22px;
  height: 22px;
  color: var(--done);
  margin-top: 1px;
}
.plan .btn {
  align-self: stretch;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.plan-trial {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.plan-miti {
  position: absolute;
  right: -18px;
  top: -30px;
  width: 78px;
  transform: rotate(10deg);
}
.plan-miti svg {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--shadow-sticker);
}
.fine {
  font-size: 14px;
  color: var(--muted);
  max-width: 80ch;
  margin: 32px 0 0;
}
@media (max-width: 720px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-miti {
    right: 6px;
  }
}

/* Safety: the house rules sheet. */
.rules {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 52px) clamp(22px, 4vw, 56px);
  box-shadow: var(--shadow-note);
  transform: rotate(var(--r));
}
.rule-list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
}
.rule-list p {
  margin: 0;
  font-size: 16px;
}
.rule-list strong {
  display: block;
  font-weight: 600;
}
@media (max-width: 700px) {
  .rule-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ. */
.faq {
  display: grid;
  border-top: 1px dashed #b9c6ee;
}
.faq details {
  border-bottom: 1px dashed #b9c6ee;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  margin: 0 0 20px;
  max-width: 65ch;
}

/* Contact and closing. */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.contact-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px !important;
  font-weight: 600;
  margin-top: 18px !important;
}
.contact-mail svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  flex: none;
}
.contact-company {
  font-size: 14px !important;
  color: var(--muted);
  margin-top: 14px !important;
}
.closer {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.closer-title {
  font: 800 clamp(32px, 3.8vw, 50px) / 1.05 var(--disp);
  color: var(--ink);
  margin: 0;
}
@media (max-width: 800px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer. */
.footer {
  background: var(--ink);
  color: #dfe6ff;
  padding: 48px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  font-size: 15px;
}
.footer a,
.footer a:hover {
  color: #fff;
}
.footer a:hover {
  text-decoration-thickness: 2.5px;
}
.footer-in {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.footer .brand {
  color: #fff;
}
.footer-brand p {
  margin: 14px 0 0;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-fine {
  max-width: 1160px;
  margin: 36px auto 0;
  font-size: 13px;
  color: #b9c6ee;
}

/* Legal pages: one long notebook sheet on the door. */
.legal-wrap {
  padding: clamp(28px, 4vw, 56px) var(--gutter-r) clamp(56px, 7vw, 96px) var(--gutter);
}
.legal {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 56px) clamp(44px, 7vw, 96px);
  box-shadow: var(--shadow-note);
}
.legal::before {
  content: "";
  position: absolute;
  left: clamp(26px, 4.4vw, 62px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--margin);
}
.legal-title {
  font: 800 clamp(34px, 4.4vw, 52px) / 1.05 var(--disp);
  color: var(--ink);
  margin: 0 0 8px;
}
.legal h2 {
  font: 700 23px/1.25 var(--disp);
  margin: 40px 0 10px;
}
.legal p,
.legal li {
  max-width: 68ch;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 6px 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  background: #fff;
}
.legal table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
  width: 100%;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
}
.legal th {
  font-weight: 600;
  background: #f3f6ff;
}
.legal-back {
  margin-top: 48px;
  font-size: 15px;
}
