/* Legal pages — Privacy + Terms shared template */

.lg-hero {
  padding-top: calc(var(--nav-height) + var(--space-7));
  padding-bottom: var(--space-5);
  text-align: center;
  background: var(--surface-1);
  border-bottom: 1px solid var(--ink-hair);
}
.lg-hero .chip { margin-bottom: var(--space-4); }
.lg-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  letter-spacing: var(--ls-tighter);
  margin-bottom: var(--space-2);
}
.lg-hero-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wide);
  color: var(--ink-muted);
  text-transform: uppercase;
}
.lg-hero-strip {
  margin-top: var(--space-3);
  display: flex; justify-content: center; gap: var(--space-4);
  font-size: var(--fs-13, 13px);
  color: var(--ink-muted);
}

/* Reading progress */
.lg-progress {
  position: sticky;
  top: var(--nav-height);
  height: 3px;
  background: transparent;
  z-index: 10;
}
.lg-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.lg-body-section { background: var(--bg); padding-block: var(--space-7); }
.lg-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-7);
}
@media (max-width: 880px) { .lg-body { grid-template-columns: 1fr; } }

.lg-toc {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
  align-self: start;
}
@media (max-width: 880px) { .lg-toc { position: static; } }
.lg-toc h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.lg-toc ul {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--ink-hair);
}
.lg-toc li a {
  display: block;
  padding: 8px var(--space-4);
  margin-left: -2px;
  font-size: var(--fs-14);
  color: var(--ink-muted);
  border-left: 2px solid transparent;
  transition: all var(--t-base) var(--ease-out);
}
.lg-toc li a:hover { color: var(--ink); }
.lg-toc li a.is-active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.lg-content {
  max-width: 70ch;
}
.lg-content section {
  margin-bottom: var(--space-7);
  scroll-margin-top: calc(var(--nav-height) + var(--space-5));
}
.lg-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: var(--ls-tighter);
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.lg-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.lg-content p {
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.lg-content ul {
  margin-left: 1.2em;
  margin-bottom: var(--space-4);
}
.lg-content ul li {
  list-style: disc;
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: 6px;
}
.lg-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Tinted callouts */
.lg-callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border-left: 3px solid;
  margin-block: var(--space-4);
}
.lg-callout-def     { background: var(--lavender); border-color: var(--accent); }
.lg-callout-warn    { background: var(--peach);    border-color: var(--accent-coral); }
.lg-callout-rights  { background: var(--mint);     border-color: #16A34A; }
.lg-callout-title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}

.lg-contact {
  margin-top: var(--space-9);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-xl);
  text-align: center;
}
.lg-contact h3 { font-family: var(--font-display); font-size: var(--fs-20); margin-bottom: var(--space-3); }
.lg-contact p { color: var(--ink-muted); margin-bottom: var(--space-2); }
.lg-contact a { color: var(--accent); }
