/* ─── Dark hero (CGU) ─── */
.hero {
  padding: 140px 48px 72px;
  text-align: center; position: relative; overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,87,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0,87,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.doc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,87,255,0.15); border: 1px solid rgba(0,87,255,0.3);
  padding: 7px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 500; color: rgba(0,150,255,0.9);
  margin-bottom: 28px; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; z-index: 1;
}
.hero-title {
  font-family: 'Syne', sans-serif; font-size: clamp(36px,5vw,64px);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 20px; position: relative; z-index: 1;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.4);
  max-width: 480px; margin: 0 auto; line-height: 1.7; position: relative; z-index: 1;
}
.hero-meta { margin-top: 24px; font-size: 13px; color: rgba(255,255,255,0.2); position: relative; z-index: 1; }

/* ─── Document layout ─── */
.doc-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 0; max-width: 1100px; margin: 0 auto;
  padding: 72px 48px; align-items: start;
}
.sidebar { position: sticky; top: 96px; padding-right: 48px; }
.sidebar-title { font-size: 11px; font-weight: 600; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
  display: block; font-size: 13px; font-weight: 400; color: var(--gray-400); text-decoration: none;
  padding: 8px 12px; border-radius: 10px; border-left: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast); line-height: 1.4;
}
.sidebar-nav a:hover { color: var(--black); background: var(--gray-50); border-left-color: var(--accent); }
.sidebar-nav a.active { color: var(--accent); background: var(--accent-light); border-left-color: var(--accent); font-weight: 500; }
.doc-content { min-width: 0; }
.doc-section { padding: 56px 0; border-bottom: 1px solid var(--gray-100); scroll-margin-top: 100px; }
.doc-section:last-child { border-bottom: none; }
.section-num {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-num::before { content: ''; width: 20px; height: 1px; background: var(--accent); display: inline-block; }
.section-heading {
  font-family: 'Syne', sans-serif; font-size: clamp(22px,3vw,30px);
  font-weight: 800; letter-spacing: -0.025em; color: var(--black); margin-bottom: 28px; line-height: 1.1;
}
.section-body { display: flex; flex-direction: column; gap: 16px; }
.section-body p { font-size: 15px; font-weight: 300; color: var(--gray-600); line-height: 1.8; }
.section-body strong { font-weight: 500; color: var(--black); }
.section-body ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.section-body ul li { font-size: 15px; font-weight: 300; color: var(--gray-600); line-height: 1.7; padding-left: 22px; position: relative; }
.section-body ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section-body ul li.forbidden::before { background: #ef4444; }

/* ─── Highlight boxes ─── */
.highlight-box {
  background: var(--accent-light); border: 1px solid rgba(0,87,255,0.15);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; gap: 16px; align-items: flex-start;
}
.highlight-box-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.highlight-box p { font-size: 14px !important; color: var(--gray-600) !important; line-height: 1.7 !important; }
.highlight-box strong { color: var(--accent) !important; }
.green-box { background: var(--green-light); border-color: rgba(0,196,113,0.2); }
.green-box strong { color: #00a85a !important; }
.red-box { background: #fff5f5; border-color: rgba(239,68,68,0.15); }
.red-box strong { color: #ef4444 !important; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; padding: 48px 32px; }
  .sidebar { position: relative; top: auto; padding-right: 0; padding-bottom: 40px; border-bottom: 1px solid var(--gray-100); margin-bottom: 8px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar-nav a { border-left: none; border-bottom: 2px solid transparent; border-radius: 100px; padding: 6px 14px; font-size: 12px; }
  .sidebar-nav a:hover, .sidebar-nav a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
}
@media (max-width: 768px) {
  .hero { padding: 110px 24px 56px; }
  .doc-layout { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 96px 16px 48px; }
  .doc-layout { padding: 32px 16px; }
  .doc-section { padding: 40px 0; }
  .highlight-box { padding: 18px 20px; }
}
