/*
 * RelayBases legal-page top bar.
 *
 * Keep this visual contract aligned with the documentation top bar.
 */
.rb-legal .rb-docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.rb-legal .rb-docs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.rb-legal .rb-docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 580;
  letter-spacing: -0.01em;
}

.rb-legal .rb-docs-brand img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.rb-legal[data-theme="dark"] .rb-docs-brand img {
  filter: invert(1);
}

.rb-legal .rb-docs-brand-sub {
  margin-left: 2px;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 460;
}

@media (max-width: 560px) {
  .rb-legal .rb-docs-topbar-inner {
    padding: 0 16px;
  }

  .rb-legal .rb-docs-brand-sub {
    display: none;
  }
}
