/* Lang switch + footer — Home and scoped apps */

:root {
  --site-toolbar-h: 2rem;
  --site-footer-zone: 2.25rem;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.45rem 1rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(235, 228, 216, 0.88);
  mix-blend-mode: difference;
  pointer-events: none;
  user-select: none;
}

body.app-page .site-footer {
  mix-blend-mode: normal;
  color: var(--text-subtle);
  background: linear-gradient(to top, rgba(10, 14, 22, 0.92), transparent);
}

body.home-page .site-footer {
  mix-blend-mode: difference;
  color: rgba(235, 228, 216, 0.88);
  background: transparent;
}

.site-footer__privacy {
  pointer-events: auto;
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__privacy:hover {
  opacity: 0.9;
}

.site-toolbar {
  position: fixed;
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  right: 1rem;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.app-page .site-toolbar {
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.site-lang-switch {
  display: flex;
  align-items: stretch;
  height: var(--site-toolbar-h);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--site-toolbar-h);
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--text-subtle);
  background: rgba(18, 28, 46, 0.95);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.site-lang-btn:last-child {
  border-right: none;
}

.site-lang-btn.is-active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.site-lang-btn:focus-visible {
  outline-offset: -2px;
}

.app-header__lang {
  display: flex;
  align-items: stretch;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-header__lang .site-lang-btn {
  width: 1.75rem;
  font-size: 0.6875rem;
  background: rgba(10, 14, 22, 0.6);
}
