/* v2 site chrome for hand-written static pages (privacy, terms, 404).
   Every rule is anchored on header.top so it never leaks into, or picks up,
   the legacy styles.css (.brand, .nav, .wrap ...). */

header.top {
  position: relative;
  z-index: 5;
  background: #0B0C10;
  color: #F2F3F7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  line-height: 1.3;
  letter-spacing: normal;
  padding-block: 1rem;
}
header.top *,
header.top *::before,
header.top *::after { box-sizing: border-box; margin: 0; }

header.top .w {
  width: min(1200px, 100% - 2 * clamp(1.25rem, 4.5vw, 3rem));
  margin-inline: auto;
  padding: 0;
  max-width: none;
}
header.top .top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
}

header.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 auto 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F2F3F7;
  text-decoration: none;
  white-space: nowrap;
}
header.top .brand img {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 22.5%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

header.top .top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 2.5vw, 2rem);
}
header.top .top__nav a,
header.top .top__app {
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
header.top .top__nav a { color: #C3C8D3; }
header.top .top__nav a:hover,
header.top .top__nav a:focus-visible { color: #F2F3F7; }

header.top .top__app {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(242, 243, 247, 0.1);
  color: #F2F3F7;
}
header.top .top__app:hover,
header.top .top__app:focus-visible { box-shadow: inset 0 0 0 1px rgba(242, 243, 247, 0.28); }

@media (max-width: 900px) {
  header.top .top__nav {
    order: 3;
    flex-basis: 100%;
    gap: 0.5rem 1.25rem;
    margin-top: 0.85rem;
  }
}

/* Legacy legal pages: the old fixed nav needed 110px of top padding; the
   v2 header sits in normal flow, so pull the first section up. */
header.top + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
