/* ══════════════════════════════
   LEGAL PAGES (Privacy Policy / Terms & Conditions)
   Reuses design tokens already defined in css/style.css
   (--violet, --teal, --gold, --rose, --border-hi, text colors, etc.)
══════════════════════════════ */

/* ---- Hero ---- */
.lg-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 32px 56px;
  text-align: center;
  border-radius: 0 0 32px 32px;
}

.lg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lg-hero .ab-eyebrow,
.lg-hero-title,
.lg-hero-sub,
.lg-meta {
  position: relative;
  z-index: 1;
}

.lg-hero-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 18px auto 16px;
  max-width: 720px;
}

.lg-hero-sub {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-muted, #6b7280);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lg-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}

.lg-meta i {
  color: var(--violet, #7c4fff);
  margin-right: 6px;
}

/* ---- Layout: TOC + content ---- */
.lg-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .lg-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---- Table of contents ---- */
.lg-toc {
  position: sticky;
  top: 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--border-hi, #e5e7eb);
  border-radius: 16px;
  padding: 20px;
}

@media (max-width: 900px) {
  .lg-toc {
    position: static;
  }
}

.lg-toc-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--text, #111827);
}

.lg-toc-title i {
  color: var(--violet, #7c4fff);
  margin-right: 6px;
}

.lg-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-toc nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lg-toc nav a:hover {
  background: var(--surface-alt, #f9fafb);
  color: var(--text, #111827);
}

.lg-toc nav a.active {
  color: var(--violet, #7c4fff);
  border-left-color: var(--violet, #7c4fff);
  background: var(--surface-alt, #f9fafb);
  font-weight: 600;
}

/* ---- Content ---- */
.lg-content {
  min-width: 0;
}

.lg-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-hi, #e5e7eb);
  scroll-margin-top: 100px;
}

.lg-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lg-section h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--text, #111827);
}

.lg-section h3 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--text, #111827);
}

.lg-section p {
  line-height: 1.75;
  color: var(--text-muted, #4b5563);
  margin-bottom: 14px;
}

.lg-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.lg-section ul li {
  line-height: 1.7;
  color: var(--text-muted, #4b5563);
  margin-bottom: 8px;
}

.lg-section a {
  color: var(--violet, #7c4fff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-section strong {
  color: var(--text, #111827);
}

.lg-contact-card {
  background: var(--surface-alt, #f9fafb);
  border: 1px solid var(--border-hi, #e5e7eb);
  border-radius: 14px;
  padding: 20px 22px;
}

.lg-contact-card p {
  margin: 0;
  color: var(--text, #111827);
  line-height: 1.8;
}