/* ===========================================================
   GEMFEST '27 · Charlton Park Estate, Malmesbury · 17–20.06
   Acid flyer — flat neon-yellow stock, grainy black ink,
   sticker-style signup panel with hard offset shadow.
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --acid:          #eaff2e;                       /* poster yellow (sampled)   */
  --ink:           #131313;                       /* grainy black ink          */
  --ink-soft:      rgba(19, 19, 19, 0.74);
  --ink-faint:     rgba(19, 19, 19, 0.52);
  --ink-ghost:     rgba(19, 19, 19, 0.2);

  --hairline:      rgba(19, 19, 19, 0.3);
  --hairline-hi:   rgba(19, 19, 19, 0.55);

  /* Inverse surfaces — button + phone dropdown echo the ink */
  --ink-bg:        #161616;
  --ink-bg-deep:   #0c0c0c;
  --on-ink:        #f4f4ee;
  --on-ink-soft:   rgba(244, 244, 238, 0.6);

  --danger:        #b3261e;                       /* dark red, readable on acid */

  --sans:          "Helvetica Neue", "HelveticaNeue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  /* Heavy grotesque display face — same class of black caps as the poster type */
  --display:       "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--acid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- PAGE BACKGROUND: flat acid stock ---------- */
body.page {
  background-color: var(--acid);
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

/* Faint warm vignette — keeps the flat stock from feeling like a swatch */
body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(110, 120, 0, 0.14) 100%);
  pointer-events: none;
  z-index: 0;
}

/* SVG grain — the print noise that carries the whole artwork */
body.page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

/* ---------- LAYOUT ---------- */
.stage {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 4vw, 2.75rem) clamp(0.4rem, 1vw, 0.75rem);
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  align-content: center;
  padding: clamp(0.5rem, 2vw, 2rem) 0;
}
@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}

.hero__col { min-width: 0; }

/* ---------- POSTER COLUMN ----------
   The supplied artwork lockup, stacked as the composite:
   tilted badge → stars → wordmark → date → address. */
.hero__col--poster {
  animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.15s both;
}
.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
  text-align: center;
}
.poster > * { margin: 0; }
.poster img { height: auto; }

/* Sources are 1x cuts of a 1200-wide poster — display at ~half px for retina */
.poster__badge img  { width: clamp(110px, 12vw, 150px); }
.poster__stars img  { width: clamp(180px, 22vw, 240px); }

.poster__wordmark { margin-top: 0.2rem; }
.poster__wordmark img { width: min(86vw, 480px); }
@media (min-width: 1080px) {
  .poster__wordmark img { width: min(42vw, 560px); }
}

.poster__date img    { width: clamp(200px, 24vw, 260px); }
.poster__address img { width: clamp(250px, 30vw, 350px); }

/* LIMITED PRE SALE sticker — bottom-right of the lockup, as the composite.
   The tilt is baked into the artwork. */
.poster__sticker {
  align-self: flex-end;
  margin-top: 0.4rem;
  margin-right: clamp(0rem, 4vw, 3rem);
}
.poster__sticker img { width: clamp(130px, 15vw, 170px); }

/* ---------- SIGNUP COLUMN ---------- */
.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* The supplied "SIGN UP NOW" lockup sits above the panel */
.signup__cta {
  margin: 0 0 1.2rem;
  animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.35s both;
}
.signup__cta img { width: clamp(200px, 24vw, 250px); height: auto; }

/* ---------- SIGNUP PANEL: poster sticker ----------
   Thick ink outline + rounded corners, matching the LIMITED PRE SALE
   sticker; hard offset shadow like a screen-printed drop. */
.panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: clamp(1.7rem, 3vw, 2.2rem) clamp(1.25rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 2.1rem);
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 24px;
  /* box-shadow (not ::before) so the intl-tel-input dropdown is free
     to overflow and nothing stacks over the form — blueprint gotcha #2 */
  box-shadow: 8px 9px 0 rgba(19, 19, 19, 0.85);
  animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.45s both;
}

/* State machine — blueprint contract */
.panel__idle, .panel__otp, .panel__success { display: none; }
.panel[data-form-state="idle"]    .panel__idle    { display: block; }
.panel[data-form-state="otp"]     .panel__otp     { display: block; }
.panel[data-form-state="success"] .panel__success { display: block; }

.panel__eyebrow {
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel__eyebrow-hair {
  flex: 0 0 24px;
  height: 2px;
  background: var(--ink);
}
.panel__eyebrow-hair:last-child {
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--ink), transparent 85%);
}

.panel__title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.2vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
/* The active phrase gets the poster's hand-drawn oval ring
   (like the circle around "NOW" / "17th-20th" in the artwork) */
.panel__title em {
  font-style: normal;
  display: inline-block;
  padding: 0 0.42em 0.06em;
  border: 0.075em solid var(--ink);
  border-radius: 50%;
}

.panel__lede {
  margin: 0 0 1.4rem;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
/* Scoped to avoid clobbering eyebrow — blueprint gotcha #3 */
.panel__success p:not(.panel__eyebrow) {
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  font-size: 14.5px;
  line-height: 1.55;
}

/* Server-supplied success message (e.g. double-opt-in notice) */
.panel__success-note {
  margin: 0 0 1.1rem !important;
  padding: 0.7rem 0.9rem;
  background: rgba(19, 19, 19, 0.07);
  border-left: 3px solid var(--ink);
  border-radius: 0 6px 6px 0;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
}

/* ---------- FORM ---------- */
.form { display: flex; flex-direction: column; gap: 0.95rem; margin: 0; padding: 0; }
/* display:none (not off-screen) so browser autofill / password managers never
   populate the trap — an off-screen field is still a live autofill target and
   Chrome/Edge would fill it, silently blocking the real submit. */
.form__honeypot { display: none !important; }
.form__row { position: relative; }

.form__label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form__label-hint {
  margin-left: 0.4em;
  opacity: 0.65;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.form__input {
  width: 100%;
  padding: 0.65rem 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--hairline);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder { color: var(--ink-faint); letter-spacing: 0; }
.form__input:focus {
  outline: 0;
  border-bottom-color: var(--ink);
}
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--acid) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form__input--otp {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 0.8rem 0;
}

/* ============================================================
   intl-tel-input v19 — ink-on-acid overrides; the dropdown goes
   inverse (ink surface) for contrast, echoing the button
   ============================================================ */

.iti { display: block; width: 100%; }

/* Vendor reserves ~52px for the flag/dial-code area — gotcha #1 */
.iti input.form__input { padding-left: calc(52px + 0.7rem); }

.iti__flag-container { background: transparent; }
.iti__selected-flag {
  background: transparent !important;
  padding-left: 0;
  border-right: 2px solid var(--hairline);
}
.iti__selected-flag:hover,
.iti__selected-flag[aria-expanded="true"] { background: rgba(19,19,19,0.06) !important; }
.iti__arrow { border-top-color: var(--ink-faint); }
.iti__arrow--up { border-bottom-color: var(--ink); }
.iti__selected-dial-code { color: var(--ink-soft); font-family: var(--sans); font-size: 14px; }

.iti__dropdown-content {
  background-color: var(--ink-bg) !important;
  color: var(--on-ink);
  border-radius: 12px !important;
}
.iti--inline-dropdown .iti__dropdown-content {
  position: absolute;
  z-index: 1000;            /* above panel chrome + other inputs */
  margin-top: 4px;
  margin-left: 0;
  border: 2px solid var(--ink) !important;
  box-shadow: 5px 6px 0 rgba(19,19,19,0.35) !important;
  min-width: 280px;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
}

.iti__search-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--ink-bg-deep);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 14px;
  border: 0;
  border-bottom: 1px solid rgba(244,244,238,0.18);
  outline: 0;
  border-radius: 0;
}
.iti__search-input::placeholder { color: var(--on-ink-soft); }
.iti__search-input:focus { border-bottom-color: var(--acid); }

.iti__country-list {
  background: var(--ink-bg);
  color: var(--on-ink);
  border: 0;
  font-family: var(--sans);
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,244,238,0.35) transparent;
}
.iti__country-list::-webkit-scrollbar { width: 8px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb { background: rgba(244,244,238,0.35); }
.iti__country-list::-webkit-scrollbar-thumb:hover { background: rgba(244,244,238,0.55); }

.iti__country {
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background .12s ease;
}
.iti__country:hover { background: rgba(244,244,238,0.07); }
.iti__country.iti__highlight {
  background: rgba(234, 255, 46, 0.16);
  color: var(--acid);
}
.iti__country.iti__highlight .iti__dial-code { color: var(--acid); opacity: 0.85; }
.iti__country-name { color: var(--on-ink); flex: 1; }
.iti__country.iti__highlight .iti__country-name { color: var(--acid); }
.iti__dial-code { color: var(--on-ink-soft); font-size: 12.5px; letter-spacing: 0.02em; }
.iti__divider {
  border-bottom: 1px solid rgba(244,244,238,0.18);
  padding: 0;
  margin: 0.25rem 0;
}
.iti__no-results {
  padding: 0.7rem 0.9rem;
  font-size: 13px;
  color: var(--on-ink-soft);
}

.form__row--check { margin-top: 0.2rem; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.form__check input[type="checkbox"] {
  flex: 0 0 17px;
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.form__check input[type="checkbox"]:hover { background: rgba(19,19,19,0.08); }
.form__check input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.form__check input[type="checkbox"]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  transform: rotate(-45deg) translate(0, -1px);
}
.form__check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--ink-ghost); }
.form__check a:hover { text-decoration-color: var(--ink); }

.form__error {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
}
.form__error--global { margin-top: 0.8rem; }

/* ---------- BUTTONS ---------- */
.btn {
  --btn-h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: var(--btn-h);
  margin-top: 0.5rem;
  padding: 0 1.1rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 4px 5px 0 rgba(19, 19, 19, 0.3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 7px 0 rgba(19, 19, 19, 0.35);
}
.btn:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 rgba(19, 19, 19, 0.3);
}

/* Acid sheen sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(234,255,46,0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .5s ease;
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }

.btn__text { position: relative; z-index: 1; }
.btn__arrow {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  transform: translateX(0);
  transition: transform .2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--whatsapp {
  background: #1aa851;
  color: #eafff1;
  box-shadow: 4px 5px 0 rgba(19, 19, 19, 0.3);
}
.btn__icon { width: 22px; height: 22px; position: relative; z-index: 1; }

.form__resend {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.form__resend-btn {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0 0 0 0.3rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-ghost);
}
.form__resend-btn:disabled { color: var(--ink-faint); text-decoration-color: var(--ink-ghost); cursor: not-allowed; }

/* ---------- FOOTER ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { margin: 0; }

/* Copyright + Furiosa pill share the left side of the footer */
.foot__left {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1rem);
  flex-wrap: wrap;
}
.site-built { margin: 0; line-height: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ink-soft);
  background: rgba(19, 19, 19, 0.05);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.site-built a:hover {
  background: rgba(19, 19, 19, 0.1);
  text-decoration: none;
}
.site-built img { display: inline-block; vertical-align: middle; }

/* Footer: the desktop space-between row gets cramped and uneven on phones once
   the copyright line wraps, so below 600px stack everything into a clean,
   centred column — copyright, then the Furiosa pill, then the privacy link. */
@media (max-width: 600px) {
  .foot {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-top: 1.1rem;
  }
  .foot__left {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }
  .foot__legal { letter-spacing: 0.12em; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__col--poster, .signup__cta, .panel { animation: none; }
  .btn::before { display: none; }
}

/* ---------- A11Y / FOCUS ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__input:focus-visible { outline: 0; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- LEGAL PAGES (privacy.html) ---------- */
body.legal-wrap {
  background: var(--acid);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}
.legal {
  max-width: 740px;
  margin: 0 auto;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem 1.05rem 0.4rem 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease;
}
.legal__back:hover {
  background: rgba(19, 19, 19, 0.07);
}
/* Ink arrow chip — nudges left on hover */
.legal__back-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  transition: transform .18s ease;
}
.legal__back:hover .legal__back-arrow { transform: translateX(-3px); }
.legal__back-arrow svg { width: 13px; height: 13px; display: block; }
/* Stacked label: tiny "BACK TO" eyebrow over the brand in proper casing */
.legal__back-label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.12;
}
.legal__back-text {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legal__back-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.legal h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--ink);
  text-wrap: balance;
}
.legal h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink);
}
.legal h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.8rem 0 0.4rem;
}
.legal h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.4rem 0 0.3rem;
}
.legal p, .legal li {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.legal ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
/* Body-copy links are underlined — but exclude the back-button pill, whose
   underline (from this rule out-specificity-ing .legal__back) was bleeding
   across the whole pill. */
.legal a:not(.legal__back) { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--ink-ghost); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- TINY VIEWPORTS ---------- */
@media (max-width: 380px) {
  .stage { padding: 0.7rem 0.85rem 0.4rem; }
  .panel { padding: 1.3rem 1rem 1.1rem; }
}
