/* Shared PT/EN language switch, used on every page across the site
   (home, quem-somos, colorir, escrever, and their privacy/support pages).
   Two visual variants share the same markup and behavior (real <a> links
   to the alternate-language URL, no JS):
     - default: light pill, dark text — for light/cream page backgrounds.
     - .lang-switch--invert: white-on-translucent — for vivid hero backgrounds.
   Each call site can set --lang-accent to brand-color the active link. */

.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(17, 19, 27, 0.06);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(17, 19, 27, 0.55);
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-link.active {
  background: #ffffff;
  color: var(--lang-accent, #11131b);
  box-shadow: 0 1px 3px rgba(17, 19, 27, 0.15);
}

.lang-switch--invert {
  background: rgba(255, 255, 255, 0.22);
  pointer-events: auto;
}

.lang-switch--invert .lang-link {
  color: #ffffff;
}

.lang-switch--invert .lang-link.active {
  background: #ffffff;
  color: var(--lang-accent, #2d78ff);
  box-shadow: none;
}

@media (max-width: 640px) {
  .lang-link {
    min-width: 26px;
    padding: 4px 7px;
    font-size: 0.66rem;
  }
}
