/* ==========================================================
   Shot2Wellness — shared styles
   Layout uses Tailwind (CDN); this file holds brand tokens,
   gradients, animations and form styling.
   ========================================================== */

:root {
  --bg: #000000;
  --bg-soft: #0d0d0d;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --silver-1: #f4f4f4;
  --silver-2: #cfcfcf;
  --silver-3: #8c8c8c;
  --line: rgba(242, 242, 242, 0.2);
  --line-focus: rgba(242, 242, 242, 0.55);
  --error: #ef4444;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Encode Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-head { font-family: "Encode Sans Semi Condensed", "Encode Sans", sans-serif; }
.font-logo { font-family: "Barlow Condensed", sans-serif; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity .5s ease;
}
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash .logo { animation: fadein 2s ease-out both; }

/* ---------- Logo ---------- */
.logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  user-select: none;
}
/* Image logo scales with the logo's font-size (411×58 source). */
.logo { display: inline-block; }
.logo img { display: block; height: .8em; width: auto; max-width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Matches the design: 730px tall at 1440px wide, never taller than the viewport */
  height: min(50.7vw, 100svh);
  min-height: 460px;
  background: #000;
  overflow: hidden;
}
@media (max-width: 767px) {
  .hero { height: 125vw; min-height: 0; max-height: 100svh; }
  .hero__img { object-position: 58% top; }
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: fadein 1s ease-out both;
}
.hero__overlay {
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 70%, #000 100%);
  z-index: 1;
}
.scroll-cue {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px; font-weight: 300;
  color: var(--text);
  opacity: .85;
  cursor: pointer;
  transition: opacity .3s;
}
button.scroll-cue { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }

/* ---------- Text gradient (white → grey, as in the design) ---------- */
.text-gradient {
  background: linear-gradient(75deg, #ffffff 0%, #e9e9e9 40%, #8a8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Silver pill CTA ---------- */
.primary-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ffffff 0%, #d9d9d9 35%, #9b9b9b 100%);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 8px 30px rgba(255,255,255,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 10px 40px rgba(255,255,255,.12);
}
.primary-cta::after {
  content: "";
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg);
}
.primary-cta:hover::after { animation: shine .9s ease; }

/* ---------- Particle orbit around the bottle ----------
   Two canvases sandwich the bottle: particles on the far side of the
   orbit are drawn behind it, near-side particles in front of it. */
.orbit {
  position: relative;
  width: 320px; height: 320px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .orbit { width: 460px; height: 460px; }
}
.orbit canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.orbit__glow {
  position: absolute; left: 50%; top: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 35%, transparent 65%);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
.orbit__floor {
  position: absolute; left: 50%; top: 50%;
  width: 34%; height: 5%;
  transform: translate(-50%, 540%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.16), transparent 70%);
  filter: blur(4px);
  animation: floor-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.orbit__bottle {
  position: absolute; left: 50%; top: 50%;
  width: 80px;
  transform: translate(-50%, -50%);
  animation: bottle-float 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, #000 78%, transparent 100%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .orbit__bottle { width: 112px; }
}
@keyframes bottle-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 8px)); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.95); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes floor-pulse {
  0%, 100% { opacity: .9; transform: translate(-50%, 540%) scaleX(1); }
  50%      { opacity: .5; transform: translate(-50%, 540%) scaleX(.85); }
}

/* ---------- Footer ---------- */
.footer a.link {
  color: var(--text);
  opacity: .9;
  transition: opacity .2s;
}
.footer a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer .social { opacity: .75; transition: opacity .2s; }
.footer .social:hover { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Early access form ---------- */
.field-label { font-size: 14px; color: var(--text); display: flex; gap: 2px; }
.field-label .req { color: var(--error); }

.field-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  color: var(--text);
  caret-color: #d6d6d6;
  padding: 8px 0 6px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.field-input::placeholder { color: #6f6f6f; font-weight: 300; }
.field-input:focus { border-color: var(--line-focus); }
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 1000px #000 !important;
  -webkit-text-fill-color: var(--text) !important;
}
.field.has-error .field-input { border-color: var(--error); }
.field-error { font-size: 11px; color: var(--error); min-height: 14px; margin-top: 4px; }

.cc-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  padding: 6px 12px;
  border-radius: 4px 4px 0 4px;
  font-size: 12px; color: var(--text);
  flex-shrink: 0;
}
.cc-menu {
  position: absolute; top: 100%; left: 0; z-index: 50;
  margin-top: 6px;
  width: 260px; max-height: 260px; overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.cc-menu input {
  width: 100%;
  background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid #333;
  padding: 10px 12px; font-size: 13px; outline: none;
}
.cc-menu li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; color: #bdbdbd;
  cursor: pointer;
}
.cc-menu li:hover { background: rgba(255,255,255,.06); }
.cc-menu li.is-active { background: rgba(255,255,255,.12); color: var(--text); }
.cc-menu li .dial { margin-left: auto; color: #888; }

.checkbox-box {
  width: 16px; height: 16px; margin-top: 1px;
  border: 1px solid #555;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.checkbox-box svg { opacity: 0; color: #000; width: 11px; height: 11px; }
label:hover .checkbox-box { border-color: #888; }
input:checked + .checkbox-box { background: var(--text); border-color: var(--text); }
input:checked + .checkbox-box svg { opacity: 1; }
input:focus-visible + .checkbox-box { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }

.submit-btn {
  background: linear-gradient(120deg, #ffffff 0%, #d9d9d9 35%, #9b9b9b 100%);
  color: #111;
  font-size: 12px;
  border-radius: 9999px;
  width: 120px;
  padding: 12px 24px;
  transition: opacity .2s, transform .2s;
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #111;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}

/* ---------- Keyframes ---------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--dx), var(--dy)); }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@keyframes shine { to { left: 125%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   /early — step-by-step questionnaire
   ========================================================== */
.quiz {
  /* fills the screen below the sticky .site-bar (≈61px, 53px on phones) */
  min-height: calc(100svh - 61px);
  display: flex;
  padding: 32px 20px 64px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,.06), transparent 70%),
    #000;
}
.quiz-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.quiz:not(.is-ready) .quiz-stage { visibility: hidden; }

/* Progress */
.quiz-top__row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px;
}
.quiz-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted);
  transition: color .2s;
}
.quiz-back:hover { color: var(--text); }
.quiz-back[hidden] { display: none; }
.quiz-count {
  margin-left: auto;
  font-size: 12px; letter-spacing: .12em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.quiz-progress {
  margin-top: 12px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #9b9b9b, #ffffff);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}

/* Steps */
.quiz-stage {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0 24px;
}
.quiz-step { display: none; width: 100%; }
.quiz-step.is-active { display: block; }
.quiz-step.enter-fwd  { animation: quiz-in-fwd .55s cubic-bezier(.22,1,.36,1) both; }
.quiz-step.enter-back { animation: quiz-in-back .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes quiz-in-fwd  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes quiz-in-back { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

.quiz-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.quiz-title {
  margin-top: 14px;
  font-family: "Encode Sans Semi Condensed", "Encode Sans", sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  background: linear-gradient(75deg, #ffffff 0%, #e9e9e9 45%, #8a8a8a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quiz-title--sm { font-size: 26px; }
@media (min-width: 768px) {
  .quiz-title { font-size: 42px; }
  .quiz-title--sm { font-size: 34px; }
}
.quiz-sub {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px; font-weight: 300; line-height: 1.5;
  color: var(--text-muted);
}
.quiz-sub[hidden] { display: none; }

/* Options */
.quiz-options {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .quiz-options { grid-template-columns: 1fr 1fr; }
}
.quiz-option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  transition: background-color .2s, border-color .2s, transform .15s, color .2s;
}
.quiz-option:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.quiz-option:active { transform: scale(.985); }
.quiz-option:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.quiz-key {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px;
  color: var(--text-muted);
  transition: all .2s;
}
.quiz-label { flex: 1; }
.quiz-check {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.quiz-option.is-selected {
  color: #111;
  background: linear-gradient(120deg, #ffffff 0%, #dedede 45%, #a8a8a8 100%);
  border-color: transparent;
}
.quiz-option.is-selected .quiz-key { border-color: rgba(0,0,0,.25); color: #111; background: rgba(0,0,0,.06); }
.quiz-option.is-selected .quiz-check { opacity: 1; transform: none; }

.quiz-other { margin-top: 20px; max-width: 520px; }
.quiz-other[hidden] { display: none; }

.quiz-actions {
  margin-top: 36px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.quiz-actions .submit-btn { width: auto; min-width: 128px; }
.quiz-hint { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.quiz-hint kbd {
  font-family: inherit; font-size: 11px;
  padding: 2px 6px; margin-left: 2px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 5px;
}
@media (hover: none) { .quiz-hint kbd, .quiz-step:not(#stepContact) .quiz-hint { display: none; } }

/* Phones: tighter spacing so the question and options fit on one screen */
@media (max-width: 639px) {
  .quiz { min-height: calc(100svh - 53px); padding: 16px 16px 48px; }
  .quiz-top__row { min-height: 24px; }
  .quiz-progress { margin-top: 8px; }
  .quiz-stage { align-items: flex-start; padding: 32px 0 16px; }
  .quiz-title { font-size: 27px; }
  .quiz-title--sm { font-size: 24px; }
  .quiz-options { margin-top: 22px; gap: 8px; }
  .quiz-option { padding: 10px 14px; gap: 12px; font-size: 14px; border-radius: 12px; }
  .quiz-key { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
  .quiz-check { width: 16px; height: 16px; }
  .quiz-actions { margin-top: 28px; }
  .quiz-form { margin-top: 28px; gap: 24px; }
}

/* Contact */
.quiz-form {
  margin-top: 36px;
  max-width: 520px;
  display: flex; flex-direction: column; gap: 28px;
}
.wa-icon { width: 14px; height: 14px; margin-right: 4px; color: #25d366; align-self: center; }

/* Success */
.quiz-done-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #111;
  background: linear-gradient(120deg, #ffffff 0%, #d9d9d9 35%, #9b9b9b 100%);
  box-shadow: 0 0 40px rgba(255,255,255,.15);
}
.quiz-done-icon svg { width: 26px; height: 26px; }
#quizSuccess.is-active {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  align-self: center;
}
#quizSuccess .quiz-sub { margin-left: auto; margin-right: auto; }
#quizSuccess .quiz-title { margin-top: 28px; }
.quiz-home { display: inline-block; width: auto; margin-top: 36px; padding: 12px 28px; }

.submit-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* Honeypot field: off-screen for people, still in the form for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   /privacy-policy, /terms — legal documents
   ========================================================== */
.legal {
  --sheet: #0a0a0a;
  --sheet-line: rgba(255,255,255,.09);
  --ink-soft: #b9b9b9;
  position: relative;
  padding: 0 16px 96px;
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(255,255,255,.07), transparent 70%),
    #000;
}

/* Reading progress */
.legal-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 2px; pointer-events: none;
}
.legal-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8a8a8a, #ffffff);
}

/* Top bar (shared by /early, /privacy-policy, /terms) */
.site-bar {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 16px;
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.legal .site-bar { margin: 0 -16px; }
.site-bar.is-stuck { border-bottom-color: rgba(255,255,255,.09); }
.site-bar__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-bar .logo { font-size: 24px; }
.site-switch {
  display: inline-flex; padding: 3px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.site-switch a {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.site-switch a:hover { color: var(--text); }
.site-switch a[aria-current="page"] {
  color: #111;
  background: linear-gradient(120deg, #ffffff 0%, #dedede 45%, #a8a8a8 100%);
}
.site-bar a:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
@media (max-width: 480px) {
  .site-bar { padding: 12px 16px; }
  .site-bar .logo { font-size: 20px; flex-shrink: 0; }
  /* Fluid on phones: ~20px tall at 375px, ~17px at 320px, so it never crowds the nav. */
  .site-bar .logo img { height: clamp(16px, 5.4vw, 21px); }
  .site-switch a { padding: 6px 11px; font-size: 11px; }
}

/* Hero */
.legal-hero { max-width: 1120px; margin: 0 auto; padding: 56px 0 40px; }
.legal-eyebrow {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-muted);
}
.legal-title {
  margin-top: 14px;
  font-family: "Encode Sans Semi Condensed", "Encode Sans", sans-serif;
  font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em;
  background: linear-gradient(75deg, #ffffff 0%, #e9e9e9 40%, #8a8a8a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
  .legal-hero { padding: 88px 0 56px; }
  .legal-title { font-size: 64px; }
}
.legal-lede {
  margin-top: 18px; max-width: 620px;
  font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-soft);
}
.legal-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--sheet-line); background: rgba(255,255,255,.03);
}
.legal-chip svg { width: 13px; height: 13px; opacity: .7; }

/* At a glance */
.legal-glance { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .legal-glance { grid-template-columns: repeat(3, 1fr); } }
.legal-glance__card {
  padding: 20px;
  border: 1px solid var(--sheet-line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}
.legal-glance__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #111;
  background: linear-gradient(120deg, #ffffff 0%, #d9d9d9 35%, #9b9b9b 100%);
}
.legal-glance__icon svg { width: 17px; height: 17px; }
.legal-glance__card h3 {
  margin-top: 14px;
  font-family: "Encode Sans Semi Condensed", "Encode Sans", sans-serif;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.legal-glance__card p { margin-top: 6px; font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--text-muted); }

/* Layout: contents + sheet */
.legal-layout {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
}

/* Table of contents: collapsible on mobile, sticky sidebar on desktop */
.legal-toc { font-size: 13px; }
.legal-toc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--sheet-line); border-radius: 14px;
  background: var(--sheet); color: var(--text);
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary svg { width: 16px; height: 16px; transition: transform .25s; }
.legal-toc[open] summary svg { transform: rotate(180deg); }
.legal-toc ol {
  list-style: none; margin: 8px 0 0; padding: 8px;
  border: 1px solid var(--sheet-line); border-radius: 14px; background: var(--sheet);
  max-height: 60vh; overflow-y: auto;
}
.legal-toc a {
  display: flex; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--text-muted); line-height: 1.35;
  transition: color .2s, background-color .2s;
}
.legal-toc a span { flex-shrink: 0; width: 20px; font-variant-numeric: tabular-nums; opacity: .6; }
.legal-toc a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.legal-toc a.is-active { color: var(--text); background: rgba(255,255,255,.07); }
.legal-toc a.is-active span { opacity: 1; }
@media (min-width: 1024px) {
  .legal-toc { position: sticky; top: 88px; }
  .legal-toc summary {
    cursor: default; pointer-events: none;
    padding: 0 10px 12px; border: 0; background: none;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
  }
  .legal-toc summary svg { display: none; }
  .legal-toc ol { margin: 0; padding: 0; border: 0; background: none; max-height: calc(100vh - 140px); }
}

/* The sheet */
.legal-sheet {
  border: 1px solid var(--sheet-line); border-radius: 24px;
  background: var(--sheet);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  padding: 8px 20px;
}
@media (min-width: 768px) { .legal-sheet { padding: 16px 48px; } }

.legal-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--sheet-line);
  scroll-margin-top: 84px;
}
.legal-section:last-child { border-bottom: 0; }
.legal-section__head { display: flex; align-items: baseline; gap: 14px; }
.legal-num {
  flex-shrink: 0; min-width: 18px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .06em; color: var(--silver-3);
  font-variant-numeric: tabular-nums;
}
.legal-section h2 {
  font-family: "Encode Sans Semi Condensed", "Encode Sans", sans-serif;
  font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--text);
}
@media (min-width: 768px) { .legal-section h2 { font-size: 26px; } }
.legal-body { margin-top: 16px; }
@media (min-width: 768px) { .legal-body { padding-left: 32px; } }
.legal-body > * + * { margin-top: 14px; }
.legal-body p, .legal-body li {
  font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--ink-soft);
}
.legal-body strong { font-weight: 500; color: var(--text); }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.legal-body a:hover { text-decoration-color: #fff; }
.legal-body h3 {
  margin-top: 26px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
}
.legal-body h3:first-child { margin-top: 0; }

/* Bulleted lists */
.legal-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.legal-body .legal-list li + li { margin-top: 0; }
.legal-list li { position: relative; padding-left: 20px; }
.legal-list li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(120deg, #fff, #8c8c8c);
}
@media (min-width: 768px) { .legal-list--2col { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* Short items as chips */
.legal-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-body .legal-tags li {
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; line-height: 1.3; color: var(--text);
  border: 1px solid var(--sheet-line); background: rgba(255,255,255,.04);
}

/* Callouts */
.legal-note {
  display: flex; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.legal-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; color: var(--text); }
.legal-body .legal-note p { color: var(--text); }
.legal-note > div > * + * { margin-top: 8px; }

/* Contact card */
.legal-contact {
  display: grid; gap: 1px; margin: 0;
  border: 1px solid var(--sheet-line); border-radius: 16px; overflow: hidden;
  background: var(--sheet-line);
}
@media (min-width: 640px) { .legal-contact { grid-template-columns: 1fr 1fr; } }
.legal-contact div { padding: 16px 18px; background: #0f0f0f; }
.legal-contact dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.legal-contact dd { margin: 6px 0 0; font-size: 15px; color: var(--text); }
.legal-body .legal-contact dd a { text-decoration: none; }
.legal-body .legal-contact dd a:hover { text-decoration: underline; }

/* Back to top */
.legal-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #111; border: 0; cursor: pointer;
  background: linear-gradient(120deg, #ffffff 0%, #d9d9d9 35%, #9b9b9b 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.legal-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.legal-top svg { width: 18px; height: 18px; }
.legal a:focus-visible, .legal button:focus-visible, .legal summary:focus-visible,
.legal-top:focus-visible {
  outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px;
}

/* Print: a clean white sheet */
@media print {
  body { background: #fff; color: #000; }
  .legal { background: none; padding: 0; }
  .site-bar, .legal-progress, .legal-toc, .legal-top, .legal-glance, .footer { display: none !important; }
  .legal-layout { display: block; }
  .legal-title { -webkit-text-fill-color: #000; background: none; font-size: 32px; }
  .legal-hero { padding: 0 0 16px; }
  .legal-sheet { border: 0; box-shadow: none; background: none; padding: 0; }
  .legal-section { padding: 16px 0; border-color: #ddd; }
  .legal-section h2, .legal-body strong, .legal-body .legal-note p, .legal-body .legal-tags li, .legal-contact dd { color: #000; }
  .legal-body p, .legal-body li, .legal-lede, .legal-chip { color: #222; }
  .legal-body .legal-tags li, .legal-chip, .legal-note, .legal-contact { border-color: #ccc; background: none; }
  .legal-contact div { background: none; }
}
