/* Shared styles for the Terms, Privacy and Support pages. Tokens match the
   homepage's inline styles so the whole site reads as one place. */
:root {
  --brand: #5B4FE8;
  --brand-deep: #3B2FB8;
  --brand-soft: #EEECFD;
  --ink: #1C1830;
  --body: #3B3650;
  --muted: #625C77;
  --line: #E9E4F1;
  --cream: #FBF8F3;
  --paper: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(28,24,48,.05), 0 8px 24px rgba(28,24,48,.07);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }

/* ---------- nav (same as homepage) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,248,243,.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 12px rgba(91,79,232,.35); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 11px;
  font-weight: 700; font-size: 14.5px;
  background: var(--brand); color: #fff;
  transition: background .15s ease;
}
.btn:hover { text-decoration: none; background: #4C40D8; }

/* ---------- page header ---------- */
.page-head { position: relative; padding: 46px 0 30px; }
.page-head::before {
  /* Runs well below the header and fades out, so the glow sits behind the
     card instead of stopping in a hard line where the section ends. */
  content: ""; position: absolute; inset: -80px 0 -260px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(460px 280px at 85% 25%, rgba(91,79,232,.12), transparent 70%),
    radial-gradient(360px 260px at 8% 45%, rgba(255,181,71,.14), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.back-link:hover { color: var(--brand); text-decoration: none; }
/* The eyebrow sits on its own line under the back link. */
.back-link + .eyebrow { display: block; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.page-head h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.025em;
  margin: 10px 0 10px; text-wrap: balance;
}
.page-head .updated, .page-head .lead { color: var(--muted); font-size: 15px; margin: 0; }
.page-head .lead { font-size: 18px; margin-top: 4px; }

/* ---------- document card ---------- */
.doc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 42px 48px; margin: 0 0 72px;
}
.doc > :first-child { margin-top: 0; }
.doc p, .doc li { color: var(--body); }
.doc strong { color: var(--ink); }
.doc h2 {
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2;
  letter-spacing: -.015em; color: var(--ink);
  margin: 38px 0 12px; padding-top: 30px; border-top: 1px solid var(--line);
}
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--brand); }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th {
  background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 700; text-align: left; padding: 12px 16px;
}
.doc td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--body); }
.doc td:first-child { font-weight: 600; color: var(--ink); }

.note, .warn { border-radius: 14px; padding: 16px 20px; margin: 22px 0; font-size: 15px; border: 1px solid; }
.doc .note { background: #FFF6E5; border-color: #FBE1B0; color: #6B4A00; }
.doc .warn { background: #FDECF1; border-color: #F7C9D8; color: #7A1E43; }
.doc .note strong, .doc .warn strong { color: inherit; }

/* ---------- support page ---------- */
.doc .card {
  background: var(--brand-soft); border: 1px solid #DEDAFA;
  border-radius: 18px; padding: 22px 26px; margin: 22px 0;
}
.doc .card h2 { border-top: 0; padding-top: 0; margin: 0 0 6px; font-size: 22px; }
.doc .card p { margin: 0; }
/* Scoped to .faq: :first-child ignores text nodes, so on other pages this
   would catch any paragraph whose first tag happens to be <strong>. */
.faq p:has(> strong:first-child) {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; margin: 14px 0;
}
.faq p:has(> strong:first-child) strong { font-size: 16.5px; }

/* ---------- footer (same as homepage) ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); font-weight: 500; }
.foot nav a:hover { color: var(--brand); }
.foot .logo { font-size: 17px; }
.foot .mark { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; box-shadow: none; }

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .page-head { padding: 30px 0 22px; }
  .doc { padding: 26px 20px; border-radius: 18px; margin-bottom: 48px; }
  .doc h2 { font-size: 21px; margin-top: 30px; padding-top: 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
