/* Rigel legal pages — palette lifted from Rigel.Agora.Web/src/app/app.scss so the policy pages and
   the product read as the same thing. Self-contained: no webfonts, no third-party requests. */
:root {
  --void: #05070b;
  --deep: #0b1118;
  --panel: #101725;
  --line: #1e2839;
  --primary: #6d7cff;
  --primary-hi: #9aa5ff;
  --ice: #eef3ff;
  --slate: #8792a7;
  --mute: #aeb7c9;
  --mint: #52d6a3;
  --fill: #ffce6b;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: linear-gradient(160deg, #0d1420 0%, var(--deep) 45%, var(--void) 100%);
  background-attachment: fixed;
  color: var(--mute);
  font: 16px/1.68 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  padding: 0 20px 96px;
}

.wrap { max-width: 780px; margin: 0 auto; }

/* ── header ─────────────────────────────────────────────────────────────── */
header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

header.site svg { width: 34px; height: 34px; display: block; flex: none; }

header.site .name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--ice);
  text-decoration: none;
}

header.site .sub {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 1px;
}

header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

header.site nav a {
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

header.site nav a:hover { color: var(--ice); border-bottom-color: var(--primary); }
header.site nav a[aria-current='page'] { color: var(--ice); border-bottom-color: var(--primary); }

/* ── type ───────────────────────────────────────────────────────────────── */
h1 {
  color: var(--ice);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.dateline { color: var(--slate); font-size: 13px; margin: 0 0 34px; }

h2 {
  color: var(--ice);
  font-size: 20px;
  letter-spacing: -0.2px;
  margin: 42px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

h3 { color: var(--ice); font-size: 16px; margin: 26px 0 8px; }

p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }

a { color: var(--primary-hi); text-decoration: none; border-bottom: 1px solid rgba(154, 165, 255, .35); }
a:hover { border-bottom-color: var(--primary-hi); }

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

code {
  font-family: 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: #0a101b;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--primary-hi);
}

/* ── callouts ───────────────────────────────────────────────────────────── */
.lede {
  color: var(--ice);
  font-size: 17px;
  border-left: 2px solid var(--primary);
  padding-left: 18px;
  margin: 0 0 34px;
}

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 22px 0;
}

.note.warn { border-left-color: var(--fill); }
.note p:last-child, .note ul:last-child, .note li:last-child { margin-bottom: 0; }

.note h3 { margin-top: 0; font-size: 15px; }

/* Unresolved values. Deliberately loud: publishing one of these by accident is the failure mode. */
.fill {
  background: rgba(255, 206, 107, .13);
  border: 1px dashed var(--fill);
  border-radius: 4px;
  color: var(--fill);
  padding: 0 6px;
  font-size: .93em;
  font-weight: 600;
  white-space: nowrap;
}

/* ── tables ─────────────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 0 0 20px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14.5px;
}

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

th { color: var(--ice); font-weight: 600; white-space: nowrap; }
td:first-child { color: var(--ice); }

/* ── index cards ────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 32px 0; }

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--mute);
}

.card:hover { border-color: var(--primary); }
.card .t { color: var(--ice); font-weight: 600; display: block; margin-bottom: 6px; }
.card .d { font-size: 14px; display: block; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer.site {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 13px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

footer.site a { color: var(--slate); border-bottom-color: transparent; }
footer.site a:hover { color: var(--ice); }
footer.site .spacer { margin-left: auto; }

@media (max-width: 560px) {
  header.site { flex-wrap: wrap; }
  header.site nav { margin-left: 0; width: 100%; padding-top: 6px; }
  footer.site .spacer { margin-left: 0; width: 100%; }
}
