/* Gold Insight — legal & support pages.
   Self-contained: no webfonts, no CDN, no analytics. These pages are read by
   App Review and by people who want to know what we do with their data, so
   they must load instantly anywhere and never phone home. */

:root {
  --bg: #100e09;
  --surface: #1a1712;
  --border: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-soft: #e8c96a;
  --text: #f5f1e8;
  --muted: #a8a196;
  --max: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  padding: 0 1.25rem 5rem;
}

.wrap { max-width: var(--max); margin: 0 auto; }

/* Header ------------------------------------------------------------------ */

header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  flex: none;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.5rem;
}

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

/* Body -------------------------------------------------------------------- */

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.25rem;
  color: var(--gold-soft);
}

h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }

p, li { color: var(--text); }
p { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold-soft); }

strong { color: #fff; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* Data table -------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

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

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

/* Callout ----------------------------------------------------------------- */

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.75rem;
}

.note p:last-child { margin-bottom: 0; }

/* Footer ------------------------------------------------------------------ */

footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }

/* Home ------------------------------------------------------------------- */

.cards { display: grid; gap: 1rem; margin: 2rem 0; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.card:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); }
.card h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Print — reviewers and lawyers print these ------------------------------- */

@media print {
  body { background: #fff; color: #000; padding: 0; }
  h2, .brand, a { color: #000; }
  .note { border-color: #999; }
  .mark { background: #999; }
}
