/* ===================================================================
   Public chrome for base.html (legal + 404 pages) on the app design
   system (static/css/app/ tokens — light/dark aware). These pages sit
   outside the app nav-rail shell: a simple sticky top header, a centered
   content column, and the shared site footer. Ported off the retired
   vibe_ui + theme.css second design system (bead induindex-wll).
   =================================================================== */

/* ── Top header (desktop) ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--text);
}
.header-nav-right { display: flex; align-items: center; gap: 2px; }
.header-nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}
.header-nav-link:hover { background: var(--surface-2); color: var(--text); }

/* ── Mobile top bar (mirrors the app shell's compact bar) ─────────── */
.mobile-top-bar { display: none; }

@media (max-width: 768px) {
  .site-header { display: none; }
  .mobile-top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 var(--pad);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .mobile-top-bar-action { font-size: 13px; }
}

/* ── Content column ───────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
}

/* ── 404 (and any centered error state) ───────────────────────────── */
.error-page {
  text-align: center;
  padding: clamp(48px, 12vh, 120px) 0;
}
.error-page h1 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 12px;
}
.error-page p {
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ── Site footer (shared markup: partials/site_footer.html). The
   landing restyles the same classes under .lp-body in landing.css;
   these unscoped rules serve the legal + 404 pages. ───────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(32px, 5vw, 52px) clamp(20px, 4vw, 44px) 22px;
  margin-top: 56px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  max-width: 1120px;
  margin: 0 auto 28px;
}
.footer-block { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { font-size: 14px; font-weight: 650; color: var(--text); margin: 0; }
.footer-description { color: var(--text-2); font-size: 12.5px; line-height: 1.6; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 7px; }
.footer-nav a { color: var(--text-2); font-size: 12.5px; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-text); }
.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  max-width: 1120px;
  margin: 0 auto;
}
.footer-bottom p { color: var(--text-3); font-size: 12px; margin: 0; }
.footer-bottom a { color: var(--text-2); }

@media (max-width: 720px) {
  .footer-content { grid-template-columns: 1fr; }
}
