/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ════════════════════════════════════════════════════════════ */
.lang-switch {
  position: relative;
  display: inline-block;
  margin-left: 4px;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text-mute);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 12px 7px 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang-switch-btn:hover {
  color: var(--text);
  border-color: var(--hairline-2);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch-btn svg {
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang-switch.open .lang-switch-btn {
  color: var(--text);
  border-color: var(--hairline-2);
}
.lang-switch.open .lang-switch-btn svg { transform: rotate(180deg); }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 110;
}
.lang-switch.open .lang-switch-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-switch-menu li { margin: 0; }
.lang-switch-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch-menu button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch-menu button[aria-current="true"] {
  color: var(--accent);
  background: rgba(34, 197, 94, 0.08);
}
.lang-switch-menu .lang-code {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Legal page language sections: show only the active language */
.legal-page [data-lang-section] { display: none; }
html[lang="de"] .legal-page [data-lang-section="de"],
html[lang="en"] .legal-page [data-lang-section="en"],
html[lang="es"] .legal-page [data-lang-section="en"],
html[lang="fr"] .legal-page [data-lang-section="en"],
html[lang="it"] .legal-page [data-lang-section="en"] { display: block; }

/* ════════════════════════════════════════════════════════════
   FAQ PAGE
   ════════════════════════════════════════════════════════════ */
.faq-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 0 120px;
}
.faq-page-head {
  margin-bottom: 56px;
}
.faq-page-head .overline {
  display: block;
  margin-bottom: 14px;
}
.faq-page-head h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 20px;
}
.faq-intro {
  font-size: 17px;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}
.faq-allcta {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}
.faq-allcta a {
  color: var(--accent);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.faq-allcta a:hover { border-bottom-color: var(--accent); }

.faq-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.faq-list + .faq-section-title { margin-top: 64px; }
.faq-list .qa {
  scroll-margin-top: 96px;
}
.faq-list .qa-body ul,
.faq-list .qa-body ol {
  margin: 10px 0 4px;
  padding-left: 22px;
}
.faq-list .qa-body li {
  margin-bottom: 6px;
  line-height: 1.55;
}
.faq-list .qa-body p {
  margin: 0 0 10px;
}
.faq-list .qa-body code {
  font-size: 0.9em;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.faq-list .qa[open] {
  border-color: var(--accent-soft);
}
.faq-list .qa:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.faq-legal-cta {
  margin-top: 72px;
  padding: 28px 32px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.faq-legal-cta p {
  margin: 0 0 12px;
  color: var(--text-mute);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.faq-legal-cta ul {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-legal-cta a {
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.faq-legal-cta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  .faq-page { padding: 130px 0 90px; }
  .faq-legal-cta { padding: 22px 20px; }
}

.foundation-disclosure {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.legal-fallback-notice {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.55;
}
html[lang="de"] .legal-fallback-notice,
html[lang="en"] .legal-fallback-notice { display: none; }

/* Mobile placement */
@media (max-width: 720px) {
  .lang-switch {
    margin: 12px 0 0;
    align-self: stretch;
  }
  .lang-switch-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
  }
  .lang-switch-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
  }
}
