/* =====================================================
   LEGAL.CSS — RankBoost Agency (2026)
   Privacy Policy + Disclaimer. Prefix: lgl-
   Content-focused, calm, highly readable — not a marketing layout.
   Requires only: master.css + design-system.css
   ===================================================== */

/* ─────────────────────────────────────────────────────
   PAGE HEADER — simple, not a marketing hero
───────────────────────────────────────────────────── */
.lgl-header {
  padding-top: var(--section-py-sm); padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.lgl-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #7468e8 35%, rgba(200,255,0,0.8) 70%, var(--accent) 100%);
}
.lgl-header-inner { max-width: 760px; }
.lgl-header h1 {
  font-size: var(--fs-h2); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-top: var(--space-sm);
}
.lgl-effective-date {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--ink-muted);
  margin-top: var(--space-md);
}
.lgl-effective-date strong { color: var(--ink); font-weight: 800; }
.lgl-header-lede {
  font-size: var(--fs-body-lg); color: var(--ink-muted);
  line-height: 1.75; margin-top: var(--space-md);
}
.lgl-header-lede + .lgl-header-lede { margin-top: var(--space-sm); }

/* ─────────────────────────────────────────────────────
   LAYOUT — sticky TOC sidebar + reading column
───────────────────────────────────────────────────── */
.lgl-body { padding-top: var(--space-2xl); padding-bottom: var(--section-py); }
.lgl-layout { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 1024px) {
  .lgl-layout { grid-template-columns: 260px 1fr; gap: var(--space-xl); }
}

/* ── Table of Contents ── */
.lgl-toc {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2); padding: var(--space-md);
}
.lgl-toc summary {
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.lgl-toc summary::-webkit-details-marker { display: none; }
.lgl-toc summary::after {
  content: '+'; font-size: 16px; font-weight: 700; color: var(--primary);
  transition: transform 180ms var(--ease);
}
.lgl-toc[open] summary::after { transform: rotate(45deg); }
.lgl-toc-list {
  display: grid; gap: 2px; margin-top: var(--space-md);
}
.lgl-toc-list a {
  display: block; padding: 8px 10px 8px 12px; border-radius: var(--r-md);
  border-left: 2px solid transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink-muted);
  text-decoration: none; line-height: 1.4;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.lgl-toc-list a:hover,
.lgl-toc-list a:focus-visible {
  background: var(--surface); color: var(--primary); border-left-color: var(--primary);
}
@media (min-width: 1024px) {
  .lgl-toc { position: sticky; top: 100px; max-height: calc(100vh - 140px); overflow-y: auto; }
  .lgl-toc summary { cursor: default; pointer-events: none; }
  .lgl-toc summary::after { display: none; }
}

/* ── Reading column ── */
.lgl-content { max-width: 720px; }
.lgl-content section { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.lgl-content section:first-child { padding-top: 0; }
.lgl-content section:last-child { border-bottom: none; padding-bottom: 0; }

.lgl-content h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25;
  margin-bottom: var(--space-md);
  padding-left: 18px; border-left: 4px solid var(--primary); position: relative;
}
.lgl-content h3 {
  font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em;
  margin-top: var(--space-lg); margin-bottom: var(--space-sm);
}
.lgl-content p {
  font-size: var(--fs-body-lg); color: var(--ink-muted); line-height: 1.8;
  margin-bottom: var(--space-md);
}
.lgl-content p:last-child { margin-bottom: 0; }
.lgl-content strong { color: var(--ink); font-weight: 700; }
.lgl-content a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lgl-content a:hover { color: var(--ink); }

.lgl-content ul, .lgl-content ol {
  margin: var(--space-sm) 0 var(--space-md); padding-left: 0;
  display: grid; gap: 10px;
}
.lgl-content ul li, .lgl-content ol li {
  font-size: 15.5px; color: var(--ink-muted); line-height: 1.7;
  padding-left: 28px; position: relative;
}
.lgl-content ul li::before {
  content: ''; position: absolute; left: 6px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.lgl-content ol { counter-reset: lgl-ol; }
.lgl-content ol li { counter-increment: lgl-ol; }
.lgl-content ol li::before {
  content: counter(lgl-ol) '.'; position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--primary); font-size: 14px; width: 22px;
}

/* Two-column variant for long flat lists (6+ short items) — keeps a
   16-item list from reading as one unbroken vertical wall of dots */
@media (min-width: 640px) {
  .lgl-content ul.lgl-list-grid {
    grid-template-columns: 1fr 1fr; column-gap: var(--space-lg); row-gap: 10px;
  }
}

/* ── Notice / callout box ── */
.lgl-notice {
  background: var(--primary-light); border: 1px solid rgba(91,71,224,0.18);
  border-radius: var(--r-lg); padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0; font-size: 15px; color: var(--ink); line-height: 1.7;
}
.lgl-notice strong { color: var(--ink); }

/* ── Contact block ── */
.lgl-contact-box {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-lg);
  margin-top: var(--space-md);
}
.lgl-contact-box p { margin-bottom: var(--space-xs); }
.lgl-contact-box p:last-child { margin-bottom: 0; }
.lgl-contact-box .lgl-contact-name { font-weight: 800; color: var(--ink); font-size: 16px; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .lgl-toc { margin-bottom: 0; }
  .lgl-toc-list { max-height: 50vh; overflow-y: auto; }
}
@media (max-width: 767px) {
  .lgl-content h2 { font-size: 21px; }
  .lgl-content section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .lgl-content p, .lgl-content ul li, .lgl-content ol li { font-size: 15px; }
}
