/* iPlanly language switcher — shared across all pages */
#lang-switcher {
  position: relative;
  display: inline-flex;
  margin-right: 12px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: #efefef;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.lang-flag {
  font-size: 16px;
  line-height: 1;
}
.lang-code {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #c8f135;
}
.lang-caret {
  opacity: 0.6;
  flex-shrink: 0;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  max-height: 340px;
  background: #181818;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-search {
  width: 100%;
  background: #0d0d0d;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 14px;
  color: #efefef;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.lang-search::placeholder {
  color: #555;
}

.lang-list {
  overflow-y: auto;
  padding: 6px 0;
  flex: 1;
}
.lang-list::-webkit-scrollbar { width: 8px; }
.lang-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  color: #efefef;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.lang-item:hover {
  background: rgba(200,241,53,0.06);
}
.lang-item.active {
  background: rgba(200,241,53,0.1);
  color: #c8f135;
}
.lang-item-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-item-label {
  flex: 1;
  font-weight: 500;
}
.lang-item-code {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.5px;
}
.lang-item.active .lang-item-code {
  color: #c8f135;
}

/* RTL */
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .lang-item { text-align: right; }

/* Mobile */
@media (max-width: 768px) {
  #lang-switcher { margin-right: 8px; }
  .lang-btn { height: 32px; padding: 0 10px; font-size: 12px; }
  .lang-flag { font-size: 14px; }
  .lang-menu { width: 240px; max-height: 300px; }
}

/* Legal-doc banner (privacy/terms when locale ≠ ru/en) */
.legal-banner {
  background: linear-gradient(135deg, rgba(200,241,53,0.08), rgba(200,241,53,0.02));
  border: 1px solid rgba(200,241,53,0.25);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-banner-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(200,241,53,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8f135;
}
.legal-banner-body {
  flex: 1;
  min-width: 220px;
}
.legal-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 2px;
}
.legal-banner-text {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}
.legal-banner-link {
  flex-shrink: 0;
  background: #c8f135;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.legal-banner-link:hover { background: #a8d020; }
