/* Mobile nav drawer — shared across every marketing/legal page.
   Desktop: inert. Mobile (<=768px): hides the inline .nav, shows a
   hamburger button in the header lockup, and a full-viewport drawer
   with large editorial links + a pill CTA at the foot.
   Same brand primitives as the gate/marketing pages — #fafafa, Inter,
   28px black disc. Zero blue, zero shadows. */

.nav-mobile-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -6px -10px 0;
  cursor: pointer;
  color: #111;
  border-radius: 8px;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: #fafafa;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  overflow-y: auto;
  box-sizing: border-box;
}
.nav-mobile-drawer *,
.nav-mobile-drawer *::before,
.nav-mobile-drawer *::after { box-sizing: border-box; }
.nav-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #ececec;
  flex-shrink: 0;
}
.nav-mobile-drawer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-mobile-drawer-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-mobile-drawer-logo-icon::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}
.nav-mobile-drawer-close {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -6px -10px 0;
  cursor: pointer;
  color: #111;
  line-height: 0;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-drawer-close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.nav-mobile-drawer-close svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-mobile-drawer-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  min-height: 0;
}
.nav-mobile-drawer-body a {
  display: block;
  padding: 22px 2px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.025em;
  line-height: 1.2;
  border-bottom: 1px solid #ececec;
  transition: color 0.15s;
}
.nav-mobile-drawer-body a:hover,
.nav-mobile-drawer-body a:active { color: #000; }

.nav-mobile-drawer-body a.nav-mobile-cta {
  margin-top: auto;
  margin-bottom: calc(8px + env(safe-area-inset-bottom));
  background: #111;
  color: #fff;
  text-align: center;
  padding: 18px 24px;
  border-radius: 12px;
  border-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-mobile-drawer-body a.nav-mobile-cta:hover { background: #2a2a2a; color: #fff; }

@media (max-width: 768px) {
  /* Kill the inline .nav on every page and surface the hamburger. */
  .header .nav { display: none !important; }
  .nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  html.nav-mobile-open,
  html.nav-mobile-open body { overflow: hidden; }
}
