:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --accent: #e87c3e;
  --border: #e0e0e0;
  --surface: #f7f7f7;
  --heading: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #e0e0e0;
    --text-secondary: #999999;
    --accent: #f5a46b;
    --border: #333333;
    --surface: #1a1a1a;
    --heading: #ffffff;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
}

.effective-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.intro {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}

ul, ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

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

td {
  vertical-align: top;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

.caps-notice {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Table of Contents */
.toc {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.toc ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 4px;
  font-size: 15px;
}

/* Landing page */
.landing {
  text-align: center;
  padding-top: 80px;
}

.landing h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.landing .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.landing-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-links a {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #e87c3e, #d4622a);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
}

.landing-links a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
