:root {
  --primary-red: #D32F2F;
  --primary-red-dark: #9A0007;
  --primary-red-light: #FFEBEE;
  --primary-red-glow: rgba(211, 47, 47, 0.15);
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #CBD5E1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(211, 47, 47, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.25);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-badge {
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.btn-pill {
  background: var(--primary-red);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.btn-pill:hover {
  background: var(--primary-red-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Layout */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

/* Sidebar Navigation */
.toc-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.toc-list li a:hover {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

/* Policy Content */
.policy-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.policy-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-red);
  background: var(--primary-red-light);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.policy-section p {
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--text-body);
}

.policy-section ul, .policy-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
  font-size: 14px;
}

.policy-section li {
  margin-bottom: 8px;
}

/* Callout Box */
.callout-box {
  background: #FFF7ED;
  border-left: 4px solid #F97316;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0;
}

.callout-box.success {
  background: #ECFDF5;
  border-left-color: #10B981;
}

.callout-box.info {
  background: var(--primary-red-light);
  border-left-color: var(--primary-red);
}

.callout-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.callout-box p {
  font-size: 13.5px;
  margin-bottom: 0;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background: #F1F5F9;
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

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

.badge-tag {
  display: inline-block;
  background: #F1F5F9;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-red);
}

/* Responsive */
@media (max-width: 860px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .policy-content {
    padding: 26px 20px;
  }
  .hero-title {
    font-size: 26px;
  }
}
