/* Shared by the landing page and the static information pages. */
.language-picker {
  position: relative;
  color: #34463f;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  flex: 0 0 auto;
  z-index: 30;
}

.language-picker-current {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 0 11px;
  border: 1px solid rgba(73, 96, 85, .2);
  border-radius: 8px;
  background: rgba(252, 251, 247, .8);
  color: inherit;
  font: inherit;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.language-picker-current::-webkit-details-marker {
  display: none;
}

.language-picker-flag {
  display: block;
  height: 1em;
  width: 1.5em;
  min-width: 1.5em;
  max-width: none;
  flex: 0 0 1.5em;
  object-fit: fill;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(45, 58, 53, .1);
}

.language-picker-chevron {
  width: .4em;
  height: .4em;
  margin-left: .1em;
  margin-top: -.22em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.language-picker[open] .language-picker-chevron {
  margin-top: .22em;
  transform: rotate(225deg);
}

.language-picker-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 166px;
  width: max-content;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid rgba(73, 96, 85, .18);
  border-radius: 10px;
  background: #fcfbf7;
  box-shadow: 0 10px 32px rgba(41, 60, 51, .15);
}

.language-picker-options li {
  margin: 0;
  padding: 0;
}

.language-picker-options a {
  display: flex;
  align-items: center;
  gap: .65em;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.language-picker-current:hover,
.language-picker-options a:hover,
.language-picker-options a[aria-current="true"] {
  color: #263832;
  background: #e9eee6;
}

.language-picker-current:focus-visible,
.language-picker-options a:focus-visible {
  outline: 2px solid #42574d;
  outline-offset: 3px;
}

/* Shared header action group keeps the menu next to the launch button. */
.site-header-actions,
.legal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.legal-header {
  z-index: 40;
}

@media (max-width: 640px) {
  .language-picker { font-size: 12px; }
  .language-picker-current { padding-inline: 8px; gap: .45em; }
  .language-picker-options { left: 0; right: auto; }
  .site-header-actions, .legal-header-actions { gap: 8px; }
}

@media (max-width: 420px) {
  .legal-header-inner {
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-block: 12px;
  }
  .legal-header-actions {
    width: 100%;
    justify-content: center;
  }
  .legal-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-footer nav {
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px !important;
  }
  .legal-footer-group {
    min-width: 0;
  }
}

@media print {
  .language-picker { display: none; }
}
