/* Shared styles for pember.tv sub-pages (legal, support, account).
   Tokens mirror the landing page (index.html :root). No inline styles are
   used on these pages so their Content-Security-Policy can stay strict. */

:root {
  --bg: #060912;
  --bg-soft: #0d1526;
  --panel: rgba(20, 30, 56, 0.55);
  --text: #fff4eb;
  --body: rgba(255, 244, 235, 0.84);
  --muted: #d7a89d;
  --gold: #ffd08a;
  --ember: #ff7a25;
  --rose: #ff3e72;
  --line: rgba(255, 122, 37, 0.22);
  --hairline: rgba(255, 214, 173, 0.16);
  --danger: #ff8a8a;
  --ok: #8be3b4;
}

* { box-sizing: border-box; }

/* No smooth scrolling: links into long legal pages (e.g. /privacy/#your-choices)
   must land on their section immediately. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 78% 8%, rgba(255, 110, 40, 0.12), transparent 30rem),
    radial-gradient(circle at 12% 14%, rgba(44, 76, 170, 0.20), transparent 28rem),
    linear-gradient(135deg, #05070f 0%, #0d1526 48%, #05070d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe3b8; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  z-index: 10;
}
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0 18px;
}

.wordmark {
  font-size: 30px;
  letter-spacing: 0.18em;
  line-height: 1;
  font-weight: 300;
  text-decoration: none;
  background: linear-gradient(90deg, #ff922e, #ffca86 43%, #ff3e72 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: rgba(255, 244, 235, 0.76); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Documents (privacy, terms, support, delete account) ---------- */
.doc {
  margin: 8px 0 40px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 120, 220, 0.14), transparent 40%),
    var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.doc h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}

.doc p, .doc li {
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.doc p { margin: 0 0 16px; }
.doc strong { color: var(--text); font-weight: 650; }
.doc ul { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li ul { margin: 6px 0 0; list-style: circle; }
.doc a { overflow-wrap: anywhere; }

.toc {
  margin: 4px 0 28px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: rgba(8, 12, 24, 0.35);
}
.toc summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 15px; }
.toc ol { margin: 12px 0 2px; padding-left: 22px; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 4px 0; font-size: 14px; line-height: 1.5; break-inside: avoid; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Account pages (verify email, reset password) ---------- */
.auth {
  max-width: 500px;
  margin: 8vh auto 48px;
  padding: clamp(24px, 5vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 120, 220, 0.16), transparent 38%),
    var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.auth h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth p { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.auth p.fine { font-size: 14px; color: rgba(255, 229, 207, 0.62); }
.auth .account { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.spark {
  display: inline-block;
  width: 10px;
  height: 15px;
  margin-bottom: 18px;
  border-radius: 100% 0 100% 100%;
  background: linear-gradient(180deg, #ffd08a, #ff6c22 50%, #ff3e72);
  transform: rotate(28deg);
  box-shadow: 0 0 22px rgba(255, 111, 31, 0.8);
}

.field { display: block; margin: 0 0 14px; }
.field span { display: block; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 173, 0.22);
  background: rgba(16, 24, 44, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field input:focus { border-color: var(--gold); outline: none; }

.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--ember); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: white;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff8b2d, #ff3e72);
  box-shadow: 0 14px 40px rgba(255, 72, 89, 0.30);
}
.button:hover { color: white; filter: brightness(1.05); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button.secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: #ffe6d8; box-shadow: none; }

.actions { display: grid; gap: 10px; margin-top: 18px; }

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(255, 122, 61, 0.10);
  border: 1px solid var(--hairline);
  color: #ffe9d8;
}
.notice.error { background: rgba(255, 80, 80, 0.10); border-color: rgba(255, 138, 138, 0.35); color: #ffd6d6; }

[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 48px;
  border-top: 1px solid rgba(255, 122, 37, 0.12);
  color: rgba(255, 244, 235, 0.62);
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 244, 235, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  .wordmark { font-size: 26px; }
  .doc { border-radius: 22px; }
  .toc ol { columns: 1; }
}
