/* ============================================================
   Legal pages (Privacy / Terms) — page-local styles.
   Built on v5 tokens (styles.css). Classes namespaced `lg-`.
   ============================================================ */

.lg-wrap {
  padding: clamp(48px, 7vh, 80px) 0 clamp(72px, 10vh, 112px);
  background: var(--bg);
  position: relative;
}
/* faint top wash, consistent with product heroes */
.lg-wrap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  background: radial-gradient(ellipse 60% 100% at 30% 0%, rgba(79,70,229,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.lg-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ── TOC sidebar ── */
.lg-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: var(--sp-2);
}
.lg-toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--g7);
  padding: 0 0 var(--sp-3);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--hairline);
}
.lg-toc a {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--g8);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color var(--duration-base) var(--ease), background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
}
.lg-toc a:hover { color: var(--text-strong); background: var(--s1); }
.lg-toc a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: var(--weight-medium);
}

/* ── Content ── */
.lg-content { max-width: 760px; }
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--g8);
  margin-bottom: var(--sp-5);
}
.lg-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.lg-h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: var(--weight-semibold);
  line-height: 1.02;
  letter-spacing: -0.034em;
  color: var(--text-strong);
  margin-bottom: var(--sp-4);
}
.lg-updated {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--g7);
  padding-bottom: var(--sp-8);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--hairline);
}

.lg-content section + section { margin-top: var(--sp-10); }
.lg-content section { scroll-margin-top: 84px; }

.lg-content h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.2;
  margin-bottom: var(--sp-5);
}
.lg-content h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1.3;
  margin: var(--sp-6) 0 var(--sp-3);
}
.lg-content p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--g9);
  margin-bottom: var(--sp-4);
}
.lg-content p strong { color: var(--text-strong); font-weight: var(--weight-semibold); }
.lg-content ul {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.lg-content ul li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: 15px;
  line-height: 1.65;
  color: var(--g9);
}
.lg-content ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.lg-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-mid);
  transition: border-color var(--duration-base) var(--ease);
}
.lg-content a:hover { border-bottom-color: var(--accent); }
.lg-content code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--s2);
  border: 1px solid var(--hairline);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--g10);
}

/* Callout (DPO / contact details) */
.lg-callout {
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin: var(--sp-5) 0;
}
.lg-callout dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
}
.lg-callout dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g7);
  padding-top: 2px;
}
.lg-callout dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-strong);
}
.lg-callout dd a { color: var(--accent); }

/* Uppercase legal blocks (warranty / liability) */
.lg-upper {
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--g8) !important;
  background: var(--s1);
  border-left: 2px solid var(--hairline-strong);
  padding: var(--sp-5) var(--sp-5);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: var(--sp-4) 0 var(--sp-5);
}

@media (max-width: 880px) {
  .lg-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .lg-toc {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-1);
    padding: var(--sp-4);
    background: var(--bg-subtle);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
  }
  .lg-toc-label { width: 100%; border-bottom: none; padding-bottom: var(--sp-2); margin-bottom: 0; }
  .lg-toc a { border-left: none; font-size: 12px; padding: 5px 9px; background: var(--bg); border: 1px solid var(--hairline); }
  .lg-toc a.is-active { border-left: none; }
}
