:root {
  --pink: #ff3d6e;
  --pink-2: #ff6b8a;
  --coral: #ff7a59;
  --ink: #1d1a1c;
  --muted: #7c7479;
  --line: #efe9ec;
  --bg: #ffffff;
  --card-shadow: 0 18px 40px -12px rgba(29, 26, 28, 0.22);
  --grad: linear-gradient(135deg, var(--pink-2), var(--pink));
  --radius: 26px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* The `hidden` attribute must always win — otherwise .app/.modal/.sheet's own
   display rules keep them shown, and the fixed overlays swallow every click. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }

/* ───────── Landing ───────── */
.landing {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(24px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  background:
    radial-gradient(120% 90% at 50% -10%, #fff5f7 0%, #ffffff 55%);
}
.landing-inner { max-width: 460px; width: 100%; }
.hero-logo { filter: drop-shadow(0 12px 22px rgba(255,61,110,.18)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg);} 50% { transform: translateY(-8px) rotate(1deg);} }
.kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700;
  color: var(--pink); margin: 18px 0 4px;
}
.hero-title {
  font-size: clamp(44px, 12vw, 68px); font-weight: 800; letter-spacing: -0.03em;
  margin: 0; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 16px auto 26px; max-width: 40ch; }
.rotating-pitch {
  margin: 18px auto 0; max-width: 42ch; min-height: 2.6em;
  font-size: 15px; font-style: italic; color: var(--ink); opacity: .82;
  transition: opacity .4s;
}
.fine-print { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.feed-link-line { margin: 12px 0 0; font-size: 13px; }
.feed-link-line a { color: var(--pink); font-weight: 700; text-decoration: none; }
.holo-count { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.holo-count b { color: var(--pink); font-variant-numeric: tabular-nums; }
.holo-count--sheet { margin-top: 18px; text-align: center; }

.btn {
  border: none; border-radius: 999px; font-weight: 700; font-size: 16px;
  padding: 15px 26px; transition: transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -8px rgba(255,61,110,.6); }
.btn-cta { font-size: 18px; padding: 17px 40px; }

.badge-strip {
  position: absolute; bottom: calc(20px + var(--safe-b)); left: 0; right: 0;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 16px;
}
.badge-strip--sheet { position: static; margin-top: 22px; }
.cert {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: #faf6f8; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}

/* ───────── App shell ───────── */
.app {
  min-height: 100dvh; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: calc(10px + var(--safe-t)) 16px calc(12px + var(--safe-b));
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 10px; }
.brand { display: flex; align-items: center; gap: 8px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.tld { color: var(--pink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 800; font-size: 16px;
}

/* ───────── Card deck ───────── */
.deck-wrap { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.deck { position: relative; width: 100%; height: min(66dvh, 620px); }
.swipe-hint {
  position: absolute; bottom: -2px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--muted); pointer-events: none; transition: opacity .4s;
}

.card {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--card-shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; will-change: transform;
  user-select: none; touch-action: pan-y;
}
.card.dragging { transition: none; }
.card.animating { transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s; }

.card-photo { position: relative; height: 62%; flex: none; overflow: hidden; background: #f2f2f2; }
/* Gradient placeholder shown while the photo loads (and if it fails). */
.card-skel { position: absolute; inset: 0; z-index: 0; }
.card-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 60%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}
/* The photorealistic cliché photo fades in over the placeholder. */
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  opacity: 0; transition: opacity .45s ease;
}
.card-img.loaded { opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }
.photo-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.cert-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 800;
  padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.artifact-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; max-width: 55%;
  background: rgba(29,26,28,.72); color: #fff; font-size: 10px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; text-align: right;
}
.photo-name {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff;
}
.photo-name h2 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
.photo-name .sub { font-size: 14px; opacity: .92; margin-top: 2px; }
.photo-name .dist { font-size: 12px; opacity: .8; margin-top: 4px; }

/* swipe stamps */
.stamp {
  position: absolute; top: 26px; z-index: 3; font-size: 30px; font-weight: 900;
  letter-spacing: .06em; padding: 6px 14px; border-radius: 12px; border: 4px solid;
  opacity: 0; transform: rotate(-14deg); transition: opacity .1s;
}
.stamp-like { left: 20px; color: #17c964; border-color: #17c964; }
.stamp-nope { right: 20px; color: var(--pink); border-color: var(--pink); transform: rotate(14deg); }

.card-body { flex: 1; overflow-y: auto; padding: 14px 18px 18px; -webkit-overflow-scrolling: touch; }
.tagline { font-size: 15px; font-weight: 700; color: var(--pink); margin: 0 0 8px; }
.bio { font-size: 15px; line-height: 1.5; margin: 0 0 14px; color: #35302f; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.chip { font-size: 12px; font-weight: 600; color: #55494f; background: #f7f2f4; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.prompt { border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 10px; }
.prompt .q { font-size: 12px; color: var(--muted); font-weight: 600; }
.prompt .a { font-size: 17px; font-weight: 700; line-height: 1.35; margin-top: 3px; }
.greenflag { margin-top: 14px; font-size: 13px; font-weight: 700; color: #12a150; background: #eafaf0; border-radius: 12px; padding: 10px 12px; }

/* sincere digital-detox card — calm counterpoint to the pink chaos */
.card.detox {
  align-items: center; justify-content: center; text-align: center; padding: 40px 30px; gap: 4px;
  background: linear-gradient(160deg, #eafaf3, #dff1ff);
}
.card.detox .detox-mark { font-size: 40px; }
.card.detox .detox-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #12a17a; margin-top: 8px; }
.card.detox .detox-text { font-size: 23px; font-weight: 700; line-height: 1.4; color: #204a44; margin-top: 14px; max-width: 22ch; }
.card.detox .detox-foot { position: absolute; bottom: 22px; left: 0; right: 0; font-size: 12px; color: #5a8a80; font-style: italic; }

/* interstitial comedy card */
.card.inter { align-items: center; justify-content: center; text-align: center; padding: 40px 28px; background: linear-gradient(160deg,#fff, #fff5f7); }
.card.inter .big { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--pink); }
.card.inter .small { font-size: 22px; font-weight: 700; line-height: 1.35; margin-top: 12px; color: var(--ink); }
.card.inter .mark { margin-top: 26px; opacity: .5; }

/* ───────── Actions ───────── */
.actions { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; }
.act {
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 18px -8px rgba(29,26,28,.25);
  display: grid; place-items: center; transition: transform .12s ease;
}
.act:active { transform: scale(.9); }
.act-rewind, .act-boost { width: 46px; height: 46px; font-size: 20px; color: #f5a524; }
.act-nope, .act-like { width: 62px; height: 62px; font-size: 27px; }
.act-nope { color: var(--pink); }
.act-like { color: #17c964; }
.act-super { width: 50px; height: 50px; font-size: 22px; color: #4a9bff; }

/* ───────── Toast ───────── */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 40; max-width: 90vw; text-align: center;
}
.toast.show { opacity: .96; transform: translateX(-50%) translateY(0); }

/* ───────── Modal + sheet ───────── */
.modal, .sheet {
  position: fixed; inset: 0; z-index: 60; display: flex;
  background: rgba(29,26,28,.42); backdrop-filter: blur(4px);
}
.modal { align-items: center; justify-content: center; padding: 24px; }
.modal-card {
  background: #fff; border-radius: 28px; padding: 30px 26px; max-width: 360px; width: 100%;
  text-align: center; box-shadow: var(--card-shadow);
}
.match-burst { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.match-burst span { color: var(--pink); }
.match-face { position: relative; width: 120px; height: 120px; margin: 18px auto; border-radius: 50%; overflow: hidden; box-shadow: var(--card-shadow); }
.face-skel { position: absolute; inset: 0; z-index: 0; }
.face-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .35s ease; }
.face-img.loaded { opacity: 1; }
.match-line { font-size: 17px; font-weight: 700; margin: 6px 0 4px; }
.match-footnote { font-size: 12px; color: var(--muted); margin: 0 0 20px; }

.sheet { align-items: flex-end; }
.sheet-card {
  background: #fff; width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: 26px 26px 0 0; padding: 26px 22px calc(30px + var(--safe-b));
  max-height: 88dvh; overflow-y: auto; position: relative;
  animation: sheetUp .3s cubic-bezier(.22,.61,.36,1);
}
@keyframes sheetUp { from { transform: translateY(100%);} to { transform: translateY(0);} }
.sheet-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; }
.sheet-card h2 { font-size: 26px; margin: 4px 0 14px; letter-spacing: -.02em; }
.sheet-card #about-body p { font-size: 15px; line-height: 1.6; color: #45403f; margin: 0 0 14px; }
.about-footer { font-size: 13px; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 14px; }

/* ───────── Stats chip ───────── */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.stat-chip {
  font-size: 12px; color: var(--muted); background: #faf6f8; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 11px; white-space: nowrap;
}
.stat-chip b { color: var(--pink); }
.stat-chip.hot { background: linear-gradient(90deg,#fff1e6,#ffe0e8); border-color: #ffd0c2; }
.install-btn {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--grad);
  border: none; border-radius: 999px; padding: 7px 12px; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(255,61,110,.6);
}

/* ───────── Compatibility + standout ───────── */
.compat {
  display: inline-block; font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(255,61,110,.9); border-radius: 999px; padding: 3px 9px; margin-bottom: 6px;
  backdrop-filter: blur(2px);
}
.vibe {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff; margin-left: 6px; margin-bottom: 6px;
  background: rgba(0,0,0,.4); border-radius: 999px; padding: 3px 9px; backdrop-filter: blur(2px);
}
.standout-ribbon {
  position: absolute; top: 44px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #6b4e00;
  background: linear-gradient(90deg,#ffe58a,#ffd15c); border: 1px solid #f0be3f;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(240,190,63,.5);
}
.card.legendary { box-shadow: 0 0 0 3px #ffd15c, var(--card-shadow); }
.card.legendary .card-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(255,209,92,.5);
}
.match-face.legendary { box-shadow: 0 0 0 4px #ffd15c, var(--card-shadow); }

/* ───────── Share button ───────── */
.share-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); display: grid; place-items: center;
}
.share-btn:active { transform: scale(.9); }

/* ───────── Likeable prompts ───────── */
.prompt { position: relative; cursor: pointer; transition: background .15s; border-radius: 12px; }
.prompt:hover { background: #fff7f9; }
.prompt-heart { position: absolute; right: 4px; top: 12px; color: #d9b3c0; font-size: 20px; line-height: 1; transition: transform .15s, color .15s; }
.prompt-heart::before { content: "♡"; }
.prompt.liked { background: #fff0f4; }
.prompt.liked .prompt-heart { color: var(--pink); transform: scale(1.3); }
.prompt.liked .prompt-heart::before { content: "♥"; }

/* ───────── Match actions ───────── */
.match-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.match-actions .btn { flex: 1; padding: 13px 14px; font-size: 15px; }
.btn-ghost { background: #f7f2f4; color: var(--ink); border: 1px solid var(--line); }
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px; }
.sheet-legal { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.sheet-legal a { color: var(--pink); font-weight: 700; }

/* ───────── Chat ───────── */
.chat-card { display: flex; flex-direction: column; height: 82dvh; padding-top: 18px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-face { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.chat-name { font-weight: 800; font-size: 17px; }
.chat-status { font-size: 11px; color: #17c964; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 2px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.msg-bot { align-self: flex-start; background: #f2eef0; color: var(--ink); border-bottom-left-radius: 5px; }
.msg-me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { display: flex; gap: 4px; padding: 4px 14px 8px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9c0c5; animation: blink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; } .chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.chat-starters { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.starter { flex: none; font-size: 13px; font-weight: 600; color: #55494f; background: #f7f2f4; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; white-space: nowrap; }
.chat-form { display: flex; gap: 8px; padding-top: 6px; }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font-size: 15px; font-family: inherit; outline: none; }
.chat-form input:focus { border-color: var(--pink-2); }
.chat-form .btn { padding: 12px 18px; }

/* ───────── Achievement toast ───────── */
.ach {
  position: fixed; top: calc(16px + var(--safe-t)); left: 50%; transform: translateX(-50%) translateY(-24px);
  z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--card-shadow); padding: 12px 18px; text-align: center; min-width: 220px; max-width: 90vw;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.ach.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ach-emoji { font-size: 26px; }
.ach-title { font-weight: 800; font-size: 15px; margin-top: 2px; }
.ach-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ───────── Confetti ───────── */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 65; }

/* ───────── Parody auth ───────── */
.auth-row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.auth-row .btn { padding: 11px 18px; font-size: 14px; }
.auth-blurb { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.auth-form input { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 15px; font-family: inherit; outline: none; }
.auth-form input:focus { border-color: var(--pink-2); }
.auth-form .btn { margin-top: 4px; }
#auth-enter { display: block; width: 100%; margin-top: 6px; }

/* ───────── Preferences ───────── */
.pref { display: block; margin: 0 0 18px; }
.pref > span { display: block; font-size: 14px; font-weight: 700; color: #45403f; margin-bottom: 8px; }
.pref select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit; background: #fff; }
.pref input[type="range"] { width: 100%; accent-color: var(--pink); }
.chip.deal { cursor: pointer; }
.chip.deal.on { background: var(--grad); color: #fff; border-color: transparent; }
.prefs-note { font-size: 13px; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 14px; }

/* ───────── The Feed ───────── */
.feed-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(12px + var(--safe-t)) 16px 12px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.feed-top .wordmark { font-size: 18px; }
.feed-back { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 14px; }
.feed-back:hover { color: var(--pink); }
.feed { max-width: 620px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.feed-intro { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 4px 0 6px; }
.feed-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 8px 24px -16px rgba(29,26,28,.25); }
.feed-text { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.feed-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--pink); margin-bottom: 8px; }
.feed-head { font-size: 20px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
.feed-onion { background: linear-gradient(170deg,#fff,#fff6f8); }
.feed-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.feed-more-wrap { text-align: center; padding: 8px 16px calc(40px + var(--safe-b)); }
/* Finite Scroll — the manifesto ending */
.feed-end {
  text-align: center; padding: 40px 26px; margin-top: 8px;
  background: linear-gradient(165deg, #fff, #eef6ff); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 24px -16px rgba(29,26,28,.25);
}
.feed-end-mark { font-size: 44px; }
.feed-end-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-top: 8px; }
.feed-end-text { white-space: pre-line; font-size: 17px; line-height: 1.55; color: #2c2a33; margin: 16px auto 22px; max-width: 42ch; }

/* ───────── Legal / Terms page ───────── */
.legal {
  max-width: 680px; margin: 0 auto;
  padding: calc(24px + var(--safe-t)) 22px calc(50px + var(--safe-b));
  color: #35302f; line-height: 1.65;
}
.legal-back { display: inline-block; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 22px; }
.legal-back:hover { color: var(--pink); }
.legal-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.legal h1 { font-size: clamp(28px, 7vw, 38px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal-sub { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.legal-updated { font-size: 13px; color: var(--muted); background: #faf6f8; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 28px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal p { margin: 0 0 14px; font-size: 15.5px; }
.legal a { color: var(--pink); font-weight: 600; }
.legal-foot { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
