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

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --danger: #dc2626;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

/* ── Layout ── */
.page-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Nav ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f3f4f6;
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

/* ── Header ── */
.doc-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.doc-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.doc-header .meta {
  font-size: 13px;
  color: var(--muted);
}

.doc-header .intro {
  margin-top: 16px;
  color: #374151;
  max-width: 680px;
}

/* ── Sections ── */
section {
  margin-bottom: 40px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 20px 0 8px;
}

p {
  color: #374151;
  margin-bottom: 12px;
}

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

/* ── Lists ── */
ul, ol {
  padding-left: 20px;
  color: #374151;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li {
  margin-bottom: 6px;
  padding-left: 4px;
}

li:last-child { margin-bottom: 0; }

ul ul, ol ul, ul ol, ol ol {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ── Nested enforcement lists ── */
.enforcement-block {
  background: #f3f4f6;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 12px 0;
}

.enforcement-block + .enforcement-block {
  margin-top: 8px;
}

.enforcement-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.enforcement-label.deleted { color: var(--danger); }
.enforcement-label.retained { color: #059669; }

/* ── Strong / emphasis ── */
strong { font-weight: 600; color: var(--text); }

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

thead {
  background: #f3f4f6;
}

th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 14px;
  color: #374151;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

/* ── Note callout ── */
.callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: #92400e;
  margin: 12px 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-brand span { display: none; }
  .doc-header h1 { font-size: 22px; }
  h2 { font-size: 16px; }
}
