/* ═══════════════════════════════════════════════
    RAWANA B2B — LEGAL PAGES STYLES
    Editorial layout with sticky TOC
   ═══════════════════════════════════════════════ */

:root {
  --lg-sidebar-w: 280px;
  --lg-gap: 56px;
}

.lg-page {
  background: var(--surface);
  min-height: 100vh;
}

/* ── HEADER OVERLAY ── */
.lg-nav-wrap {
  position: relative;
  z-index: 1000;
}

/* ── HERO SECTION ── */
.lg-hero {
  padding: 120px 48px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.lg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lg-back-link:hover {
  color: var(--primary);
}

.lg-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ── GRID LAYOUT ── */
.lg-grid {
  display: grid;
  grid-template-columns: var(--lg-sidebar-w) 1fr;
  gap: var(--lg-gap);
  padding: 20px 48px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── SIDEBAR (TOC) ── */
.lg-sidebar {
  position: sticky;
  top: 100px; /* Offset for sticky header */
  align-self: start;
}

.lg-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-toc-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-muted);
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
}

.lg-toc-item:hover {
  background: rgba(var(--rawana-primary-rgb), 0.04);
  color: var(--primary);
}

.lg-toc-item.is-active {
  background: rgba(var(--rawana-primary-rgb), 0.08);
  color: var(--primary);
  border-left-color: var(--primary);
}

.lg-toc-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  width: 24px;
}

.lg-toc-item.is-active .lg-toc-num {
  color: var(--accent);
}

.lg-toc-label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
}

.lg-toc-item.is-active .lg-toc-label {
  font-weight: 600;
}

/* Sidebar Questions Box */
.lg-sidebar-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--surface-lifted);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.lg-sidebar-box-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 8px 0 12px;
}

/* ── CONTENT ARTICLE ── */
.lg-content {
  background: #fff;
  border-radius: 32px;
  padding: 56px 64px;
  border: 1px solid var(--surface-lifted);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.lg-summary-box {
  padding: 18px 24px;
  background: rgba(var(--rawana-accent-rgb), 0.08);
  border: 1px solid rgba(var(--rawana-accent-rgb), 0.25);
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.lg-section {
  padding-top: 40px;
  margin-bottom: 40px;
  border-top: 1px dashed var(--surface-lifted);
}

.lg-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.lg-section-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.lg-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 10px 0 20px;
  line-height: 1.1;
  color: var(--ink);
}

.lg-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 18px;
}

.lg-list {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.lg-list-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.lg-list-bullet {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 10px;
}

.lg-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-lifted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.lg-version-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
}

.lg-footer-links {
  display: flex;
  gap: 16px;
}

.lg-footer-link {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lg-footer-link:hover {
  color: var(--primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .lg-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lg-sidebar {
    position: static;
  }
  
  .lg-content {
    padding: 40px;
  }
}

@media (max-width: 640px) {
  .lg-hero, .lg-grid {
    padding: 40px 24px;
  }
  
  .lg-content {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .lg-section-title {
    font-size: 26px;
  }
}
