/* CertSage legal pages — shared styles.
   Self-contained: no webfonts, no CDN, no JS. A legal page must render
   even when everything else is blocked. */

:root {
  color-scheme: light dark;
  --accent: #364BA1;
  --accent-soft: #EDF0FA;
  --text: #1A1A1A;
  --text-dim: #5B5B5B;
  --surface: #FFFFFF;
  --ground: #F5F5F7;
  --border: #E2E2E6;
  --brand: #1F2747;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #93A6EE;
    --accent-soft: #1E2540;
    --text: #ECECF0;
    --text-dim: #A2A2AD;
    --surface: #16161A;
    --ground: #0E0E11;
    --border: #2C2C34;
    --brand: #FFFFFF;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--ground);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

/* ── Masthead ─────────────────────────────────────────────────────────── */

header.masthead {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--brand);
  margin-bottom: 22px;
}

/* The CertSage mark: two arcs, filled with currentColor so the lockup is one
   colour in both themes. Geometry lifted from design/logo/certsage-icon-*.svg. */
.brand .mark {
  width: 30px;
  height: 29px;
  flex: none;
  display: block;
}

.brand .wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.dates {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Typography ───────────────────────────────────────────────────────── */

h2 {
  font-size: 20px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}

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

p, li { color: var(--text); }

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

ul, ol { padding-left: 22px; }

li { margin: 6px 0; }

strong { font-weight: 650; }

.lede {
  font-size: 17px;
  color: var(--text-dim);
}

/* ── Blocks ───────────────────────────────────────────────────────────── */

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

.card h3:first-child,
.card h2:first-child,
.card p:first-child { margin-top: 0; }

.card p:last-child,
.card ul:last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 22px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ── Tables ───────────────────────────────────────────────────────────── */

.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

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

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

th {
  background: var(--accent-soft);
  font-weight: 650;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

/* ── Contact + footer ─────────────────────────────────────────────────── */

.contact-mail {
  display: inline-block;
  font-weight: 650;
  font-size: 17px;
  margin: 4px 0;
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

footer a { color: var(--text-dim); }

/* ── Index page links ─────────────────────────────────────────────────── */

.doclink {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 14px 0;
}

.doclink:hover { border-color: var(--accent); }
.doclink strong { display: block; color: var(--accent); font-size: 17px; margin-bottom: 4px; }
.doclink span { color: var(--text-dim); font-size: 14.5px; }

@media (max-width: 480px) {
  h1 { font-size: 25px; }
  body { padding: 0 16px 72px; }
  header.masthead { padding-top: 32px; }
}
