/*
 * Clark Coach legal pages — shared stylesheet.
 *
 * Deliberately self-contained: no webfont, no CDN, no analytics, no script.
 * These pages assert "we set no third-party requests and run no trackers";
 * loading a font from a third-party CDN here would falsify that claim on the
 * very page that makes it. System font stack only.
 */

:root {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --text: #1a1c1e;
  --muted: #5a6068;
  --border: #dfe3e6;
  --accent: #3f6b53;
  --warn-bg: #fdf6ec;
  --warn-border: #e0b878;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d23;
    --text: #e6e8ea;
    --muted: #a2a9b0;
    --border: #2c3038;
    --accent: #8fbfa4;
    --warn-bg: #2a2318;
    --warn-border: #6b5426;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 1.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

main,
header,
footer {
  max-width: 44rem;
  margin: 0 auto;
}

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

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

.lang {
  float: right;
  font-size: 0.9rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

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

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

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

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

/* Wide tables must scroll inside their own box, never the page body. */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  font-size: 0.9em;
  word-break: break-word;
}

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left-width: 4px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

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

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

li {
  margin: 0.35rem 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem 1rem 2.2rem;
  margin: 1.5rem 0;
}

.index-list {
  list-style: none;
  padding: 0;
}

.index-list li {
  margin: 0.75rem 0;
}
