/* Shared styling for the public legal pages.
   Self-contained on purpose: the web app serves these under a strict CSP that
   allows same-origin styles only, and no external font or asset host. */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #1a1d23;
  --muted: #5b6472;
  --accent: #2563eb;
  --border: #e2e6ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1c2027;
    --text: #e8eaed;
    --muted: #a0a8b4;
    --accent: #6f9bff;
    --border: #2a3039;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 46rem;
  margin: 0 auto;
}

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

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}

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

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

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

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
}

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

th {
  font-weight: 600;
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  margin: 0.9rem 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

footer a { margin-right: 1rem; }
