/* ===================================================================
   style.css — how the app looks.

   The style is "neobrutalist": warm cream paper, thick black outlines,
   and hard offset shadows with no blur, like stickers laid on a page.
   Buttons physically press into their own shadow when tapped.

   Every colour here comes from the theme block of whichever species is
   loaded, via the CSS variables set by js/app.js. Nothing in this file
   knows what a cat is — that is what lets a dog front door look
   completely different with no new code.
   =================================================================== */

:root {
  /* Sensible fallbacks. app.js overwrites all of these from the species
     theme the moment the page loads. */
  --accent: #FF5A3C;
  --accent-text: #FFFFFF;
  --background: #FFF4E4;
  --text: #1A1614;
  --muted: #6E635B;
  --card: #FFFFFF;
  --ink: #1A1614;
  --highlight: #FFD84D;
  --pop: #8FE3B0;
  --glow-1: #FFC2AE;
  --glow-2: #A9E3C6;

  /* The three numbers that make the whole style hang together. */
  --border-width: 3px;
  --shadow-drop: 6px;
  --shadow-drop-small: 3px;

  --radius: 16px;
  --radius-small: 12px;
  --gap: 20px;
  --max-width: 460px;

  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui,
                  -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* The soft colour glows in the corners. Fixed, so they stay put while
   the page scrolls, and behind everything so nothing is blocked. */
.glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46vmax 46vmax at 0% 0%,
      color-mix(in srgb, var(--glow-1) 62%, transparent), transparent 62%),
    radial-gradient(44vmax 44vmax at 100% 100%,
      color-mix(in srgb, var(--glow-2) 58%, transparent), transparent 62%),
    radial-gradient(38vmax 38vmax at 100% 4%,
      color-mix(in srgb, var(--highlight) 30%, transparent), transparent 60%);
}

/* The whole app fills exactly one screenful, never more.

   100dvh is the "dynamic" viewport height: on a phone it accounts for
   the browser's own toolbars appearing and disappearing, which plain
   100vh famously does not. The 100vh line above it is the fallback for
   older browsers. */
#app {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px
           max(18px, env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen[hidden] { display: none; }

/* The banner shown after coming back from paying. */
.flash {
  margin: 0 0 18px;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  background: var(--pop);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}
.flash.is-error { background: #FFD5CE; }


/* -------------------------------------------------------------------
   The two building blocks of the whole style
   ------------------------------------------------------------------- */

/* A "slab" is anything outlined and shadowed: cards, buttons, pills. */
.slab {
  border: var(--border-width) solid var(--ink);
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 var(--ink);
}

/* Tactile press: the thing slides down into its own shadow, so tapping
   feels like physically pushing a button. */
.pressable {
  transition: transform 0.08s ease, box-shadow 0.08s ease,
              background-color 0.14s ease, border-color 0.14s ease;
}
.pressable:active:not(:disabled) {
  transform: translate(var(--shadow-drop), var(--shadow-drop));
  box-shadow: 0 0 0 var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}


/* -------------------------------------------------------------------
   LANDING: badge + headline, upload, picker, go. Nothing else.
   ------------------------------------------------------------------- */

/* ---- the landing page is a single non-scrolling column ----

   The badge, headline, pills and button all take their natural height.
   The upload box then absorbs whatever room is left over, shrinking on
   a small phone and growing on a large one. That is what keeps all five
   things on screen at once without hard-coding a size per device. */
#screen-landing {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Must out-specify the #id rule above, or a hidden landing page would
   still be displayed as a flex column. */
#screen-landing[hidden] { display: none; }

.headline-block {
  flex: 0 0 auto;
  margin: 0 0 clamp(10px, 1.7vh, 18px);
}

.badge {
  display: inline-block;
  transform: rotate(-3deg);
  margin: 0 0 clamp(6px, 1.1vh, 12px) 2px;
  padding: 6px 13px 4px;
  background: var(--highlight);
  color: var(--ink);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(10px, 1.35vh, 12px);
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.badge:empty { display: none; }
.badge-centred { transform: rotate(-2deg); margin-bottom: 18px; }

/* Sized against BOTH the width and the height of the screen, so a short
   phone gets a smaller headline rather than one that eats the page. */
#headline {
  font-family: var(--font-display);
  font-size: clamp(27px, min(8.6vw, 6vh), 46px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
/* The one word painted in the species' accent colour. */
.headline-accent {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
}

/* Was a full-width SQUARE, which on its own was taller than half a
   phone screen and pushed the button off the bottom. It is now a short
   wide rectangle that takes whatever height is left over, between a
   floor and a ceiling. The photo preview fills the same box, so
   choosing a photo never changes the page height. */
.upload {
  display: block;
  position: relative;
  width: 100%;
  /* flex-basis 0, NOT auto. With auto, the chosen photo's own height
     becomes the starting size and the box grows when someone picks a
     picture — which pushed the button off screen on small phones. With
     0, the box is purely "whatever space is left", so the layout is
     identical before and after choosing a photo. */
  flex: 1 1 0;
  min-height: clamp(74px, 10.5vh, 104px);
  max-height: min(32vh, 260px);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 var(--ink);
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.14s ease;
}
.upload:active {
  transform: translate(var(--shadow-drop), var(--shadow-drop));
  box-shadow: 0 0 0 var(--ink);
}
.upload.is-dragging {
  background: color-mix(in srgb, var(--pop) 40%, var(--card));
}

/* Absolutely positioned so the photo fills the box without ever adding
   to its height — belt and braces alongside the flex-basis above. */
#photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Side by side, not stacked — a short wide box wants a row. */
.upload-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 14px);
  color: var(--text);
}
.upload-icon {
  flex: 0 0 auto;
  font-size: clamp(17px, 2.5vh, 26px);
  line-height: 1;
  width: clamp(38px, 5.6vh, 56px);
  height: clamp(38px, 5.6vh, 56px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--highlight);
  border: var(--border-width) solid var(--ink);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}
.upload-text {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.2vh, 20px);
  font-weight: 700;
}

/* Once a photo is in, a small chip keeps the "you can change this"
   affordance without needing any extra markup or JavaScript. */
.upload.has-photo::after {
  content: "Tap to change";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 10px 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  pointer-events: none;
}

.picker {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vh, 10px);
  margin: clamp(10px, 1.7vh, 18px) 0;
}
.picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-height: clamp(38px, 5.4vh, 46px);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vh, 15px);
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.14s ease;
}
.picker button .pill-emoji { font-size: clamp(14px, 1.9vh, 17px); line-height: 1; }

/* Chosen: turns mint and lifts off the page a little. */
.picker button[aria-checked="true"] {
  background: var(--pop);
  transform: translateY(-3px);
  box-shadow: 5px 8px 0 var(--ink);
}
.picker button:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}

.go {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: clamp(48px, 7vh, 62px);
  padding: clamp(11px, 1.7vh, 17px);
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vh, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  color: var(--accent-text);
  background: var(--accent);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.14s ease;
}
.go:active:not(:disabled) {
  transform: translate(var(--shadow-drop), var(--shadow-drop));
  box-shadow: 0 0 0 var(--ink);
}
.go:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 color-mix(in srgb, var(--ink) 45%, transparent);
}

.error {
  margin: 18px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  background: #FFD5CE;
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}

/* -------------------------------------------------------------------
   LOADING
   ------------------------------------------------------------------- */

#screen-loading { padding: 20vh 0; text-align: center; }

.thinking-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.thinking-dots span {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: var(--border-width) solid var(--ink);
  animation: bounce 1.15s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { background: var(--highlight); animation-delay: 0.15s; }
.thinking-dots span:nth-child(3) { background: var(--pop); animation-delay: 0.3s; }
@keyframes bounce {
  0%, 70%, 100% { transform: translateY(0); }
  35%           { transform: translateY(-15px); }
}
.thinking-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}


/* -------------------------------------------------------------------
   RESULT
   ------------------------------------------------------------------- */

/* The polaroid, tilted a degree or two like it was dropped on a table.
   js/card.js redraws this same tilt into the shareable image. */
.polaroid {
  transform: rotate(-1.6deg);
  margin: 6px 4px 26px;
  padding: 16px 16px 12px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--ink);
}
.polaroid-photo {
  border: var(--border-width) solid var(--ink);
  overflow: hidden;
  line-height: 0;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #EEE;
}
.polaroid figcaption { padding: 18px 6px 6px; }

.caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-wrap: pretty;
}
.watermark {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.watermark:empty { display: none; }

.demo-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  background: var(--highlight);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}

.actions { display: flex; gap: 12px; }
.action {
  flex: 1;
  min-height: 54px;
  padding: 13px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.14s ease;
}
.action:active:not(:disabled) {
  transform: translate(var(--shadow-drop), var(--shadow-drop));
  box-shadow: 0 0 0 var(--ink);
}
.action[disabled] { opacity: 0.4; cursor: not-allowed; }
.action.is-speaking { background: var(--pop); }

.voice-options { margin: 20px 0 0; }
.voice-options summary {
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
  list-style: none;
}
.voice-options summary::-webkit-details-marker { display: none; }
.voice-options summary::before { content: "▸ "; }
.voice-options[open] summary::before { content: "▾ "; }

.voice-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.voice-label {
  flex: 0 0 62px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.segmented { display: flex; gap: 8px; }
.segmented button {
  padding: 8px 16px;
  min-height: 42px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.14s ease;
}
.segmented button.is-on { background: var(--pop); }
.segmented button:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}

#accent-select {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}

/* ---- premium voice menu (only shown to people who've paid) ---- */

.voice-premium-head { margin: 4px 0 12px; }
.badge-inline {
  transform: rotate(-2deg);
  margin: 0;
  font-size: 11px;
  padding: 5px 11px 4px;
}

.voice-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.14s ease;
}
.voice-pill[aria-checked="true"] {
  background: var(--pop);
  transform: translateY(-3px);
  box-shadow: 5px 8px 0 var(--ink);
}
.voice-pill:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}

/* ---- the one-line hint under the controls ---- */

.voice-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
}
/* When it's the upsell it gets a little more presence, but stays a
   single quiet line — it is not a second go button. */
.voice-hint.is-upgrade {
  color: var(--ink);
  font-weight: 500;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--highlight) 45%, var(--card));
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}
.voice-upgrade-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.again {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 24px 0 0;
  padding: 15px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop) var(--shadow-drop) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.again:active {
  transform: translate(var(--shadow-drop), var(--shadow-drop));
  box-shadow: 0 0 0 var(--ink);
}

.text-button {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}


/* -------------------------------------------------------------------
   BELOW THE FOLD: products + sibling line
   ------------------------------------------------------------------- */

.products { margin: 52px 0 0; }
.products-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}
.products-disclosure {
  margin: -6px 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.products-disclosure:empty { display: none; }

.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product-list a {
  display: block;
  padding: 15px 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.product-list a:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}
.product-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.product-blurb { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

.sibling {
  margin: 36px 0 10px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.sibling button {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--highlight);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  cursor: pointer;
}
.sibling button:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}


/* -------------------------------------------------------------------
   UNLOCK
   ------------------------------------------------------------------- */

#screen-unlock { padding: 10vh 0; text-align: center; }
.unlock-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 12px;
}
.unlock-text { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 28px; }


/* -------------------------------------------------------------------
   SITE FOOTER — the joke, plus the legal links. Always below the fold.
   ------------------------------------------------------------------- */

.site-footer {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px max(30px, env(safe-area-inset-bottom));
  text-align: center;
}
.footer-joke {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.footer-joke:empty { display: none; }

.footer-links {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 2px;
}
.footer-links a:hover { color: var(--ink); }
.footer-sep { opacity: 0.5; padding: 0 4px; }


/* -------------------------------------------------------------------
   LEGAL PAGES — terms and privacy. Plain and readable, same furniture.
   ------------------------------------------------------------------- */

.legal {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 22px
           max(60px, env(safe-area-inset-bottom));
  font-size: 16px;
  line-height: 1.65;
}

.legal-back {
  display: inline-block;
  margin-bottom: 26px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}
.legal-back:active {
  transform: translate(var(--shadow-drop-small), var(--shadow-drop-small));
  box-shadow: 0 0 0 var(--ink);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 6px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 38px 0 10px;
}
.legal-updated {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted);
}
.legal-lead {
  padding: 16px 18px;
  margin: 0 0 8px;
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
  font-weight: 500;
}
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal strong { font-weight: 700; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--card);
  border: var(--border-width) solid var(--ink);
  box-shadow: var(--shadow-drop-small) var(--shadow-drop-small) 0 var(--ink);
}
.legal-table th, .legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
}
.legal-table th {
  font-family: var(--font-display);
  font-weight: 700;
  background: color-mix(in srgb, var(--highlight) 40%, var(--card));
}
.legal-table tr:last-child td { border-bottom: none; }

.legal-links {
  margin: 46px 0 0;
  padding-top: 22px;
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Tables are the one thing that can't shrink gracefully on a phone. */
@media (max-width: 460px) {
  .legal-table { display: block; overflow-x: auto; }
}


/* -------------------------------------------------------------------
   Respect people who ask their device for less movement.
   ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .thinking-dots span { animation: none; }
  .picker button[aria-checked="true"] { transform: none; }
}
