/* neatlywed.com, the product site. One stylesheet for every page on it: the home page, Terms, Privacy, Help and
   the not-found page. Copied in shape from entertainhq.com's (one page, sections as screens, a glide and a fade),
   in NeatlyWed's own roses.

   Every color is a token here and nowhere else (tools/check_site.py fails a hex or an rgb() anywhere else on the
   site). The four brand colors are the app's own, read from static/css/brand.css: the check fails if they drift.
   Light only, as the app is. Designed at 375 first, then 860 (the app's own break) and 1100 for the desktop. */
:root {
  --white: #FFFFFF;
  --dusty: #BC8089;      /* dusty rose: edges, the mark's first ring */
  --coral: #EBA59C;      /* soft coral rose: the cards in a drawing, small accents */
  --antique: #96586A;    /* antique rose: headings' accent, links, the main button */
  --bg: #FFFFFF;
  --wash: #FBF4F3;       /* a breath of dusty rose: quiet bands */
  --blush: #F6E4E2;      /* a fuller tint: a chosen pill */
  --glass: #F1E6E7;      /* a mirror's glass */
  --line: #EAD3D5;       /* hairlines */
  --ink: #3B272C;        /* words */
  --muted: #76595F;      /* quieter words */
  --press: #7E4757;      /* antique rose, pressed */
  --problem: #A8323E;    /* something is wrong */
  --shadow: rgba(59, 39, 44, 0.16);
  --shadow-soft: rgba(59, 39, 44, 0.08);
  /* The iPhone and the window, as entertainhq.com's hero draws them. */
  --device: #101113;              /* the phone's body */
  --device-edge: #2C2D31;         /* its rim */
  --island: #000000;              /* the Dynamic Island */
  --phone-bar: #FFFFFF;           /* the status bar, the app's own white */
  --device-shadow: rgba(59, 39, 44, 0.32);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bar: 60px;
  --max: 1520px;   /* entertainhq.com's width, so the hero's window and phone stand at the size theirs do */
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--antique); text-decoration: none; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.08; letter-spacing: -0.01em; }
.accent { font-style: italic; font-weight: 500; color: var(--antique); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 860px) { .wrap { padding: 0 36px; } }
@media (min-width: 1100px) { .wrap { padding: 0 44px; } }

.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke-width: 1.7; }
.mark-a { stroke: var(--dusty); }
.mark-b { stroke: var(--antique); }

/* Buttons: a fill or a border, and an icon, never words alone. 48px tall, so every one is a full press. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-fill { background: var(--antique); color: var(--white); box-shadow: 0 8px 20px -10px var(--shadow); }
.btn-fill:hover { background: var(--press); }
.btn-line { background: var(--white); color: var(--antique); border-color: var(--dusty); }
.btn-line:hover { background: var(--wash); }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: none; } }
.btn:focus-visible, .nav-links a:focus-visible, .logo:focus-visible, .foot a:focus-visible { outline: 2px solid var(--antique); outline-offset: 3px; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--antique);
}
.eyebrow .icon { width: 18px; height: 18px; }

/* The bar. On a phone it is FIXED and SOLID, never sticky and never glass: iOS drops a sticky bar inside a body that
   clips overflow (EntertainHQ's lesson, the house rule "A pinned bar on a phone is fixed, not sticky"). */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar); background: var(--bg); transition: box-shadow .3s ease; }
.nav.scrolled, .nav.open { box-shadow: 0 1px 0 var(--line); }
body { padding-top: var(--bar); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--antique); font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1; white-space: nowrap; }
.logo .mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1.5px; border-radius: 2px; background: var(--antique); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
/* A short word ("Help") is still a full press: every link in the bar and the foot is 44 wide at least. */
.nav-links a, .foot-links a { min-width: 44px; justify-content: center; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links .btn { color: var(--antique); padding: 9px 16px; min-height: 44px; }
.nav-links .btn::after { display: none; }
.nav-links .sheet-only { display: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; }
.menu-btn .bar-line { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn .bar-line + .bar-line { margin-top: 5px; }

@media (max-width: 859px) {
  .menu-btn { display: inline-flex; }
  /* The open menu is a sheet over the page, the links at the top and the two buttons at its foot. It is always in
     the document, hidden by opacity, so opening and closing ease. */
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--bar); bottom: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s ease, transform .3s ease, visibility 0s; }
  .nav-links a { display: flex; align-items: center; justify-content: flex-start; min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-links .btn { justify-content: center; border-bottom: 1px solid var(--dusty); margin-top: 14px; font-size: 17px; }
  .nav-links .sheet-only { display: flex; }
  .nav-links .sheet-only.btn-fill { margin-top: auto; color: var(--white); border-color: transparent; }
  html:has(.nav.open) { overflow: hidden; }
  /* The three lines turn into an X: slide together, then turn. */
  .menu-btn .bar-line { transition: transform .26s cubic-bezier(.2, .7, .2, 1), opacity .16s ease; }
  .nav.open .menu-btn .bar-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn .bar-line:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn .bar-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 860px) {
  :root { --bar: 76px; }
  .nav { position: sticky; }
  body { padding-top: 0; }
  .logo { font-size: 32px; gap: 11px; }
  .logo .mark { width: 40px; height: 40px; }
}

/* Sections. From 860 each named section is a screen of its own under the bar, its content starting at the
   padding, so the next one is always below the fold and fades in when it is reached. */
section { padding: 40px 0 72px; }
@media (min-width: 860px) {
  section { padding: 64px 0 88px; }
  main > section.page { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; }
}
.band { background: linear-gradient(to bottom, var(--bg) 0%, var(--wash) 12%, var(--wash) 88%, var(--bg) 100%); }
.sec-head { max-width: 760px; margin: 0 0 30px; }
.sec-head h2 { margin-top: 12px; font-size: clamp(34px, 5.2vw, 52px); }
.sec-head p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

/* The opening screen. */
.hero { padding-top: 34px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-top: 14px; font-size: clamp(44px, 11.5vw, 82px); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.hero h1 .accent { display: block; }
.lede { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero .btn-pair { margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
@media (max-width: 400px) { .hero .btn-pair .btn { flex: 1 1 100%; } }
/* Two columns from 901, as entertainhq.com's hero (1.05 to .95), so the phone sits at the same size as theirs. */
@media (min-width: 901px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hero h1 { font-size: clamp(46px, 4.6vw, 70px); }
}

/* The devices, copied whole from entertainhq.com's hero (its site.css, the #195 block; the house rule "A phone on a
   marketing page is a real iPhone, copied from EntertainHQ's hero"): the app in a browser window, and the iPhone
   overlapping its lower right corner, its frame, Dynamic Island and 9:41 status bar drawn here, covering the top 62 of
   the screen's 874 points. Only the screenshots and the colors are NeatlyWed's. The pictures are the real app on a
   made-up wedding (tools/shots). In the hero the window and the phone turn through the same six pages together
   (site.js); further down each holds one. */
.window { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px var(--device-shadow), 0 1px 2px var(--shadow-soft); overflow: hidden; font-size: .84rem; }
.window .chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--wash); }
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window .chrome i:nth-child(1) { background: var(--coral); }
.window .chrome i:nth-child(2) { background: var(--dusty); }
.window .chrome .url { margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.window .body { display: grid; }
.window .body > .shot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.window .body > .shot.on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.window img { display: block; width: 100%; height: auto; }
.devices { position: relative; padding-bottom: 64px; }
.devices .window { margin-right: 12%; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; min-width: 132px; max-width: 230px; padding: 7px; border-radius: 40px;
  background: var(--device); border: 1px solid var(--device-edge); box-shadow: 0 40px 70px -28px var(--device-shadow), 0 2px 8px var(--shadow-soft); }
.phone-screen { position: relative; display: grid; aspect-ratio: 1206 / 2622; border-radius: 33px; overflow: hidden; background: var(--phone-bar); container-type: inline-size; }
.phone-screen > .pshot { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.phone-screen > .pshot.on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.phone-screen img { display: block; width: 100%; height: auto; }
/* The status bar covers the screens' own (62 of the iPhone's 874 points), laid out as the iPhone's is. */
.phone-bar { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 7.1%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 14%; background: var(--phone-bar); color: var(--ink); font-family: var(--sans); font-size: .62rem; font-size: 4.2cqw; font-weight: 700;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.phone-bar .island { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 31%; height: 58%; border-radius: 999px; background: var(--island); }
.phone-bar .phone-icons { width: 15%; width: 19.4cqw; height: auto; }
@media (prefers-reduced-motion: reduce) {
  .window .body > .shot, .phone-screen > .pshot { transition: none; }
}
@media (max-width: 600px) {
  .devices { padding-bottom: 52px; }
  .devices .window { margin-right: 16%; }
  .phone { width: 38%; padding: 5px; border-radius: 30px; }
  .phone-screen { border-radius: 25px; }
}

/* A feature: words on one side, the app on the other. On a phone the words come first. */
.feature { display: grid; gap: 30px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature h3 { margin-top: 12px; font-size: clamp(32px, 6.6vw, 46px); text-wrap: balance; }
.feature .body { margin-top: 14px; font-size: 18px; color: var(--muted); }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature.flip .words { order: 2; }
}
/* The list's marks are the product's own thing: a small card, as it hangs on a mirror. */
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 15px; border-radius: 2px; border: 1.5px solid var(--coral); background: var(--white); }

/* Print, Cricut and place cards: one big window and two small ones. */
.trio { display: grid; gap: 16px; }
.trio .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trio figure { margin: 0; }
.trio figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trio figcaption .icon { width: 16px; height: 16px; color: var(--antique); }
.trio .pair .window .chrome { padding: 6px 10px; }
.trio .pair .window .chrome i { width: 8px; height: 8px; }
.trio .pair .window .chrome .url { display: none; }

/* What is live, and what is on the way: a card each. A card on the way wears the word "Coming" and a dashed edge. */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) and (max-width: 1199px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.feat { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 24px 22px; }
.feat .glyph { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--wash); color: var(--antique); }
.feat .glyph .icon { width: 22px; height: 22px; }
.feat h3 { margin-top: 14px; font-size: 27px; }
.feat p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.feat .tag { display: inline-flex; align-items: center; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--blush); color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.feat.soon { border-style: dashed; border-color: var(--dusty); background: transparent; }
.feat.soon .glyph { background: var(--white); }
.feat .top { display: flex; align-items: center; justify-content: space-between; }
.feat .top .tag { margin-left: 0; }

/* How it works: four steps. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; border-radius: 18px; background: var(--white); border: 1px solid var(--line); padding: 24px 22px 26px; }
.step .num { font-variant-numeric: lining-nums; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--dusty); font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--antique); }
.step h3 { margin-top: 14px; font-size: 27px; }
.step p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.story { text-wrap: balance; margin: 44px auto 0; max-width: 46ch; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(23px, 3.4vw, 30px); line-height: 1.35; color: var(--ink); }
.story .rings { display: block; margin: 0 auto 14px; width: 40px; height: 40px; }

/* Early access. */
.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
@media (min-width: 1000px) { .ask { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.form { border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 24px 20px; box-shadow: 0 30px 60px -40px var(--shadow); }
@media (min-width: 600px) { .form { padding: 32px 30px; } }
.form .two { display: grid; gap: 16px; }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
/* Space between the rows of the form, never between the two boxes sharing a row. */
.form > .two + .two, .form > .two + .field, .form > .field + .field, .form > .field + .two { margin-top: 16px; }
.field { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.field b { color: var(--antique); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.text {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
textarea.text { min-height: 110px; resize: vertical; }
.text::placeholder { color: var(--muted); opacity: .75; }
.text:focus { outline: none; border-color: var(--dusty); box-shadow: 0 0 0 3px var(--blush); }
/* Choices are pills, never the system's own drop-down. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); font-size: 15px; color: var(--ink); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.pill input:checked + span { background: var(--blush); border-color: var(--dusty); color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--antique); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { margin-top: 18px; max-width: 100%; overflow: hidden; }
.ts:empty { display: none; }
.say { margin-top: 18px; font-size: 15.5px; line-height: 1.5; min-height: 0; }
.say:empty { display: none; }
.say.ok { color: var(--antique); font-weight: 600; }
.say.err { color: var(--problem); font-weight: 600; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: space-between; }
.form-legal { flex: 1 1 240px; font-size: 14px; color: var(--muted); max-width: 44ch; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 599px) { .form-foot .btn { flex: 1 1 100%; } }
.aside { display: grid; gap: 26px; }
.aside h3 { font-size: 26px; }
.aside p { margin-top: 6px; font-size: 16px; color: var(--muted); }
.aside .btn { margin-top: 12px; }
.mail { -webkit-user-select: text; user-select: text; font-weight: 600; }

/* The foot of every page. */
.foot { border-top: 1px solid var(--line); background: var(--wash); padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.foot .wrap { display: grid; gap: 18px; }
.foot .logo { font-size: 24px; }
.foot .logo .mark { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-links a:hover { color: var(--antique); }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; } .foot-links { justify-content: center; } }

/* Terms, Privacy and Help: a long read in one column, in the site's type. */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.legal h1 { font-size: clamp(38px, 7vw, 56px); }
.legal h2 { margin: 40px 0 10px; font-size: clamp(26px, 4vw, 32px); }
.legal h3 { margin: 26px 0 8px; font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { margin-top: 10px; font-size: 15px; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--wash); }

/* The Terms and the Privacy Policy are generated by scripts/site_legal_pages.py (#7) with a small header and foot
   of their own: body.legal-page, header.legal-top with a.brand, article.legal with .legal-date and .legal-body,
   div.legal-table round each table, footer.legal-foot. This styles them in the site's type and roses. */
.legal-page { padding-top: 0; }
.legal-top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.legal-top .brand { display: flex; align-items: center; max-width: 760px; min-height: 60px; margin: 0 auto; padding: 0 20px; font-family: var(--serif); font-weight: 600; font-size: 27px; color: var(--antique); }
.legal-page main { padding: 0 20px; }
.legal .lede { margin-top: 12px; }
.legal .legal-date { margin-top: 10px; font-size: 15px; color: var(--muted); }
.legal .legal-body { margin-top: 28px; }
.legal code { font-family: var(--sans); font-size: inherit; color: var(--ink); overflow-wrap: anywhere; }
.legal strong { font-weight: 600; }
.legal-table { overflow-x: auto; margin: 16px 0; }
.legal-table table { display: table; margin: 0; min-width: 520px; }
.legal-foot { border-top: 1px solid var(--line); background: var(--wash); padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.legal-foot p, .legal-foot nav { max-width: 760px; margin: 0 auto; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 6px; }
.legal-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
@media (min-width: 860px) { .legal-top .brand, .legal-page main { padding-left: 0; padding-right: 0; } }

/* Not found. */
.lost { min-height: calc(100svh - var(--bar) - 140px); display: flex; align-items: center; padding: 60px 0; }
.lost h1 { margin-top: 14px; font-size: clamp(40px, 8vw, 64px); }
.lost .btn-pair { margin-top: 26px; }

/* Motion, borrowed from entertainhq.com: sections fade and lift in as they are reached and settle back as they are
   left; cards rise once with a small stagger. Only once site.js has put js-ready on <html>, so without the script
   the page is whole. The stagger rides on --rise-delay, never transition-delay, which would hold up hover too. */
.js-ready main > section > .wrap { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1); }
.js-ready main > section.is-visible > .wrap { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--rise-delay, 0s), transform .6s ease var(--rise-delay, 0s); }
.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready main > section > .wrap, .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
