/* Shared styling for the static legal pages under /docs. */

:root {
  --accent: #00867d;
  --bg: #ffffff;
  --surface-2: #f4f3f1;
  --border: #e3e0db;
  --text: #1b1b1f;
  --text-dim: #3f3f47;
  --text-muted: #6d6c74;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */

.doc-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.doc-header-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-header img { height: 46px; width: auto; }

.doc-back {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.doc-back:hover { color: var(--accent); }

/* ---------- body ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px 70px;
}

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 600;
}

.updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 30px;
}

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin: 44px 0 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--text-dim);
}

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

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

li { margin-bottom: 7px; }

blockquote {
  margin: 14px 0;
  padding: 12px 18px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

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

/* ---------- table of contents ---------- */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
}

.toc h2 {
  margin: 0 0 10px;
  border: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: inherit;
  color: var(--text-muted);
}

.toc ol { margin: 0; }

.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.doc-footer {
  background: #343434;
  color: #fff;
  font-size: 12.5px;
  padding: 22px 20px;
  text-align: center;
}

.doc-footer a { color: #fff; }

@media (max-width: 640px) {
  main { padding: 24px 16px 50px; }
  h2 { font-size: 21px; margin-top: 34px; }
  body { font-size: 15px; }
}
