/* Language switcher (hero, top nav, privacy page). Plain CSS, no build step. */
.lang { position: relative; font-family: Urbanist, Arial, sans-serif; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 10px 0 9px; border-radius: 999px; cursor: pointer; user-select: none;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s ease, border-color .2s ease;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.12); }
.lang > summary:focus-visible { outline: 2px solid #0f6f57; outline-offset: 2px; }

.lang__flag {
  display: block; flex: none; width: 20px; height: 14px; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.lang__flag svg { display: block; width: 20px; height: 14px; }
.lang__caret {
  width: 0; height: 0; border-style: solid; border-width: 4px 4px 0 4px;
  border-color: #444 transparent transparent; transition: transform .2s ease;
}
.lang[open] .lang__caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 176px; margin: 0; padding: 6px; list-style: none;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: lang-in .16s ease;
}
.lang__menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: #232323; text-decoration: none; font-size: 15px; line-height: 1.2; font-weight: 500; white-space: nowrap;
}
.lang__menu a:hover { background: rgba(44, 206, 165, 0.12); }
.lang__menu a:focus-visible { outline: 2px solid #0f6f57; outline-offset: -2px; }
.lang__menu a[aria-current="true"] { font-weight: 700; }
.lang__menu a[aria-current="true"]::after {
  content: ""; margin-left: auto; width: 5px; height: 10px;
  border: solid #2a957a; border-width: 0 2px 2px 0; transform: translate(-3px, -1px) rotate(45deg);
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } }

/* Placements */
.lang-hero { position: absolute; z-index: 5; top: max(14px, calc(24 * var(--u, 1px))); right: max(14px, calc(28 * var(--u, 1px))); }
.wl-nav__end { display: flex; align-items: center; gap: max(8px, calc(14 * var(--u, 1px))); }

@media (prefers-reduced-motion: reduce) {
  .lang__menu { animation: none; }
  .lang > summary, .lang__caret { transition: none; }
}
