.footer-utility-row,
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  color: inherit;
}

.locale-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.locale-icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.locale-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.locale-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.locale-select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  color: var(--ink-secondary);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

.locale-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  direction: inherit;
  text-align: start;
  padding: 0 20px 0 0;
  min-width: 132px;
  cursor: pointer;
}

.locale-select:focus {
  outline: none;
}

.locale-control:focus-within {
  border-color: rgba(26, 92, 150, 0.35);
  box-shadow: 0 0 0 4px rgba(26, 92, 150, 0.12);
}

[dir="rtl"] .locale-select-wrap::after {
  right: auto;
  left: 4px;
}

[dir="rtl"] .footer-utility-row,
[dir="rtl"] .footer-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] .locale-select {
  padding: 0 0 0 20px;
}

@media (max-width: 640px) {
  .footer-utility-row,
  .footer-bar {
    justify-content: center;
    text-align: center;
  }

  .locale-control {
    width: min(100%, 320px);
    justify-content: center;
  }

  .locale-select {
    min-width: 144px;
  }
}
