/* ─────────────────────────────────────────────────────────────
   The legal and support pages: /privacy, /terms and /support.

   Same language as index.html — the app's tokens, Outfit for
   chrome, Nunito for what you read, frosted glass over slow warm
   blooms — turned down so long text stays easy to read: two
   blooms at lower strength, one frosted panel per page, no
   motion beyond the drift.

   Every value is copied from index.html (and so from the app's
   theme/tokens.js). Light only, like the app.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #FFFAF1;
  --ink: #2A1C10;
  --ink-muted: #806F61;
  --separator: rgba(90, 55, 20, 0.1);

  --orange: #FF9214;
  --orange-dark: #E07400;
  --orange-wash: #FFF6E6;
  --on-orange: #FFFFFF;

  --glow-gold: 255, 197, 61;
  --glow-apricot: 255, 154, 77;
  --glow-peach: 255, 178, 122;

  --brand-gradient: linear-gradient(135deg, #FFCB45, #FF9A1F);

  --glass-fill: rgba(250, 244, 236, 0.74);
  --glass-fill-strong: rgba(252, 248, 242, 0.9);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --shadow-glass: 0 10px 40px rgba(139, 90, 43, 0.14);

  --display: "Outfit", -apple-system, system-ui, sans-serif;
  --body: "Nunito", -apple-system, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:where(a, button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
  font: 600 15px/20px var(--display);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.column {
  width: min(100% - 32px, 780px);
  margin-inline: auto;
}

/* ───────────────── the blooms ───────────────── */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bloom {
  position: absolute;
  width: clamp(560px, 78vw, 1180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(var(--c), var(--o)) 0%,
    rgba(var(--c), calc(var(--o) * 0.45)) 45%,
    rgba(var(--c), calc(var(--o) * 0.12)) 75%,
    rgba(var(--c), 0) 100%);
  animation: drift 9s var(--ease-in-out) infinite alternate;
}
.b1 { --c: var(--glow-gold);  --o: 0.4;  --dx: 44px;  --dy: 36px; left: -26vw; top: -34vh; }
.b2 { --c: var(--glow-peach); --o: 0.26; --dx: -40px; --dy: 44px; right: -30vw; top: 40vh; }

@keyframes drift {
  to { transform: translate(var(--dx, 0), var(--dy, 0)); }
}

/* ───────────────── glass ───────────────── */

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.frost {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--shadow-glass);
}

/* ───────────────── nav ───────────────── */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
  padding: 0 9px 0 12px;
  border-radius: 31px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  --s: 34px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.28);
  background: var(--orange);
}
.mark::before {
  content: "";
  width: 88%;
  height: 88%;
  background: var(--on-orange);
  -webkit-mask: url("img/logo-mark.png") center / contain no-repeat;
  mask: url("img/logo-mark.png") center / contain no-repeat;
}

.wordmark {
  font: 700 20px/26px var(--display);
  letter-spacing: -0.015em;
}

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 22px;
  font: 500 15px/20px var(--display);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.85); }

/* Three links and the wordmark don't fit a phone side by side. The
   links tighten first; below 400px the mark stands alone (the link's
   aria-label still says AmenAlarm). */
@media (max-width: 460px) {
  .nav-links a { padding: 10px 9px; font-size: 14px; }
}
@media (max-width: 400px) {
  .nav .wordmark { display: none; }
}

/* ───────────────── the page ───────────────── */

.legal-header {
  padding: clamp(28px, 6vh, 56px) 0 28px;
}

.overline {
  margin: 0 0 10px;
  font: 600 13px/16px var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

h1, h2, h3 { margin: 0; text-wrap: balance; }

.legal-header h1 {
  font: 700 clamp(36px, 5vw, 52px)/1.06 var(--display);
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 12px 0 0;
  font: 500 15px/20px var(--display);
  color: var(--ink-muted);
}

.intro {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* The short version, as its own card above the prose. */
.summary {
  margin: 0 0 20px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 28px;
}
.summary h2 {
  margin-bottom: 12px;
  font: 600 20px/26px var(--display);
}
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin-bottom: 0.5em; text-wrap: pretty; }
.summary li:last-child { margin-bottom: 0; }

.toc {
  margin: 0 0 20px;
  padding: clamp(20px, 4vw, 28px) clamp(22px, 4vw, 32px);
  border-radius: 28px;
}
.toc h2 {
  margin-bottom: 10px;
  font: 600 13px/16px var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.toc ol {
  margin: 0;
  padding-left: 1.6em;
  font: 500 15px/1.5 var(--display);
}
@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 32px; }
}
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--orange-dark); text-decoration: underline; }
.toc li::marker { color: var(--orange-dark); }

.prose {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
}

.prose section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--separator);
}

.prose h2 {
  margin-bottom: 14px;
  font: 600 clamp(21px, 2.4vw, 24px)/1.3 var(--display);
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 24px 0 8px;
  font: 600 17px/1.35 var(--display);
}
.prose h2 + h3 { margin-top: 0; }

.prose p { margin: 0 0 1em; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; text-wrap: pretty; }
.prose li::marker { color: var(--orange-dark); }
.prose :is(p, ul, ol):last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; }

/* The one paragraph per page that matters most: same panel, a warm
   wash behind it so it can't be skimmed past. */
.prose .callout {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--orange-wash);
}

/* ───────────────── support ───────────────── */

/* The site's primary control: the gold→orange pill with INK text,
   which grows under your finger and springs back. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 28px;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glass);
  color: var(--ink);
  font: 600 17px/22px var(--display);
  text-decoration: none;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .btn:hover { transform: scale(1.02); transition-duration: 200ms; transition-timing-function: var(--ease-out); }
}
.btn:active { transform: scale(1.04); transition: transform 140ms var(--ease-out); }

.contact {
  margin: 0 0 20px;
  padding: clamp(24px, 5vw, 36px);
  border-radius: 28px;
}
.contact h2 {
  margin-bottom: 6px;
  font: 600 22px/28px var(--display);
}
.contact .address {
  margin: 0 0 18px;
  font: 600 clamp(19px, 4.6vw, 22px)/1.3 var(--display);
  overflow-wrap: anywhere;
}
.contact .address a { color: var(--orange-dark); }
.contact p { margin: 0 0 1em; text-wrap: pretty; }
.contact p:last-child { margin-bottom: 0; }
.contact .muted { color: var(--ink-muted); font-size: 15px; }
.contact .actions { margin: 4px 0 20px; }
.contact ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-muted); font-size: 15px; }
.contact li { margin-bottom: 0.3em; }

.faq-group + .faq-group { margin-top: 18px; padding-top: 28px; }
.faq-group > h2 {
  margin-bottom: 12px;
  font: 600 clamp(21px, 2.4vw, 24px)/1.3 var(--display);
  letter-spacing: -0.01em;
}

/* One question per row, like the app's grouped list: a separator
   inset to the text, no card per question. */
.faq details { border-top: 1px solid var(--separator); }
.faq details:last-child .answer { padding-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font: 600 17px/1.35 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--orange-dark); }
.faq .answer { padding: 0 0 18px; }

.updated {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
  text-align: center;
}

/* ───────────────── footer ───────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 44px 0 52px;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer .mark { --s: 26px; }
.footer .wordmark { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }

/* Reduce Motion: the blooms hold still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bloom { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
  .faq summary::after { transition: none; }
}

@media print {
  .backdrop, .nav-wrap, .toc, .footer, .skip-link { display: none; }
  body { background: #fff; font-size: 12pt; }
  .summary, .prose { padding: 0; border: 0; box-shadow: none; background: none; }
  .prose section + section { margin-top: 18pt; padding-top: 12pt; }
  a { color: inherit; }
}
