/* Levelwatch legal pages — shared styles.
   Deliberately small and dependency-free so these can be dropped on any
   static host. Accent matches the app's #007AFF. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #16191d;
  --text-muted: #5b6470;
  --border: #e2e6ea;
  --accent: #0064d2;
  --accent-soft: #eef5ff;
  --warn-border: #e0b300;
  --warn-bg: #fffbeb;
  --warn-text: #6b5200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2026;
    --text: #e8eaed;
    --text-muted: #9aa4b0;
    --border: #2c323a;
    --accent: #6cb2ff;
    --accent-soft: #17233a;
    --warn-border: #a88400;
    --warn-bg: #2a2310;
    --warn-text: #f0d78a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner,
main,
.site-footer .inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--accent);
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.6rem;
  padding-top: 0.25rem;
}

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

p, ul, ol { margin: 0 0 1rem; }

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

li { margin-bottom: 0.4rem; }

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

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

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.callout {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

.callout strong { color: inherit; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.15rem;
  margin: 1.5rem 0;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

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

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

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

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

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

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
}
