/* ============================================================
   Sansoif — Legal / support layout (.lg-*)
   Ported verbatim from the design-system legal kit, minus the
   global reset (now in base.css). Article + nav link treatments
   added (the kit used inline styles for those).
   ============================================================ */

.lg-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.lg-brand img { width: 32px; height: 32px; border-radius: 8px; }
.lg-nav { display: flex; gap: 20px; color: var(--ink-muted); font-weight: 600; font-size: 15px; }
.lg-nav a:hover { color: var(--ink-accent); }

.lg-pagehead {
  background: var(--bg-tint); border-bottom: 1px solid var(--border);
  padding: clamp(44px, 7vw, 84px) clamp(16px, 4vw, 48px) 40px;
}
.lg-pagehead-inner { max-width: 1120px; margin: 0 auto; }
.lg-pagehead h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em;
}
.lg-pagehead p { margin: 16px 0 0; color: var(--ink-muted); font-size: 1.1rem; max-width: 60ch; }

.lg-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: start; max-width: 1120px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 48px);
}
.lg-sidenav {
  position: sticky; top: 86px; display: grid; gap: 8px;
  border-left: 3px solid var(--brand); padding-left: 16px; color: var(--ink-muted); font-size: 15px;
}
.lg-sidenav a:hover { color: var(--ink-accent); }
.lg-sidenav a.active { color: var(--ink); font-weight: 700; }

.lg-article { max-width: var(--container-text); min-width: 0; }
.lg-article section { padding: 28px 0; border-top: 1px solid var(--border); }
.lg-article section:first-child { border-top: 0; padding-top: 0; }
.lg-article h2 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.01em;
}
.lg-article p, .lg-article li { color: var(--ink-body); line-height: 1.7; }
.lg-article p { margin: 12px 0 0; }
.lg-article ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.lg-article a {
  color: var(--ink-accent); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.lg-article a:hover { text-decoration-thickness: 2px; }
.lg-article code {
  font-size: 0.9em; padding: 1px 6px; border-radius: 6px;
  background: var(--bg-tint); border: 1px solid var(--border); white-space: nowrap;
}

.lg-note {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px;
  background: var(--surface); box-shadow: var(--shadow-xs); margin-top: 4px;
}
.lg-note strong { display: block; margin-bottom: 6px; }
.lg-id { display: grid; gap: 4px; font-size: 15px; }
.lg-id .k { color: var(--ink-muted); }

.lg-footer { background: var(--surface-inverse); color: var(--ink-inverse); }
.lg-footer .lg-brand { color: var(--ink-inverse); }
.lg-footer-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 44px;
}
.lg-footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-inverse-muted); font-weight: 600; }
.lg-footer-links a:hover { color: var(--ink-inverse); }
.lg-footer-note { margin: 12px 0 0; color: var(--ink-inverse-muted); font-size: 14px; }

@media (max-width: 820px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-sidenav { position: static; grid-template-columns: repeat(2, 1fr); }
  .lg-nav > a { display: none; }
}
