/* Xira Live — shared styling for the public legal pages.
   Mirrors the app's palette so a reviewer landing here from a store listing
   sees the same product. Self-contained: no build step, no CDN beyond the
   font, so these pages keep working if anything else on the host changes. */

:root {
  --bg: #110d2b;
  --card: #1a1040;
  --cyan: #00e5ff;
  --purple: #7b2fbe;
  --gold: #d4a843;
  --border: #2d2060;
  --text: #ece9f7;
  --muted: #a49cc7;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  /* A wash of brand colour at the top, fading to flat so long documents do not
     sit on a distracting gradient while you read them. */
  background-image:
    radial-gradient(1100px 420px at 50% -180px, rgba(123, 47, 190, 0.5), transparent 70%),
    radial-gradient(760px 320px at 85% -120px, rgba(0, 229, 255, 0.14), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 96px; }

/* ---------- header ---------- */

header { padding: 56px 0 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 28px;
}

.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px 0 0;
}

/* ---------- content ---------- */

h2 {
  font-size: 1.28rem;
  font-weight: 600;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--cyan);
}

p, li { color: #d7d2ec; }

ul { padding-left: 22px; }

li { margin: 7px 0; }

li::marker { color: var(--purple); }

a { color: var(--cyan); }

a:hover { color: #7ff0ff; }

strong { color: var(--text); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--cyan);
}

/* ---------- cards / callouts ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
}

.card h3 { margin-top: 0; }

.card > :last-child { margin-bottom: 0; }

.warn {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.11), var(--card) 42%);
}

.warn h3 { color: var(--gold); }

/* ---------- data table ---------- */

.table-scroll { overflow-x: auto; margin: 18px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0; }

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 0 46px;
  margin: 0 0 18px;
  min-height: 32px;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.steps li::marker { content: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0b0820;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  margin-top: 6px;
}

.btn:hover { color: #0b0820; filter: brightness(1.08); }

/* ---------- footer ---------- */

footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

footer a { margin-right: 18px; }

/* A light-mode reader (or a reviewer printing to PDF) should still get a
   legible document rather than dark-on-dark. */
@media print {
  body { background: #fff; color: #000; }
  p, li, td { color: #000; }
  .card { background: #f6f5fb; }
}

@media (max-width: 560px) {
  header { padding-top: 36px; }
  .wrap { padding-bottom: 64px; }
  .card { padding: 18px; }
}
