/* Top bar for the privacy, terms and data-deletion pages (v2.9.14).
 * These pages had no way back to the app and their EN/FR buttons were bare
 * browser buttons at the top of the text. */
.rg-legal-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px max(16px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 42, 74, 0.1);
}

.rg-legal-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  color: #0f2a4a;
  text-decoration: none;
}

.rg-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
}

.rg-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: #087c70;
  font-weight: 600;
  text-decoration: none;
}

.rg-legal-links a:hover,
.rg-legal-links a:focus-visible {
  background: #eaf7f2;
}

.rg-legal-links a[aria-current="page"] {
  background: #087c70;
  color: #fff;
}

.rg-legal-bar .language-switch {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

.rg-legal-bar .language-switch button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid #087c70;
  border-radius: 10px;
  background: #fff;
  color: #087c70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rg-legal-bar .language-switch button[aria-pressed="true"] {
  background: #087c70;
  color: #fff;
}

@media (max-width: 640px) {
  .rg-legal-bar { position: static; }
  .rg-legal-links { order: 3; flex-basis: 100%; }
  .rg-legal-bar .language-switch { margin-inline-start: auto; }
}
