/* Theme toggle — sun / moon; desktop: far right of header */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* Show moon when light (click → dark); sun when dark (click → light) */
.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-top__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Dual logo: Poz (light) / tr (dark) */
.navbar__logo-picture--dark,
.footer__logo-picture--dark {
  display: none;
}

.navbar__logo-picture--light,
.footer__logo-picture--light {
  display: block;
}

html[data-theme="dark"] .navbar__logo-picture--light,
html[data-theme="dark"] .footer__logo-picture--light {
  display: none;
}

html[data-theme="dark"] .navbar__logo-picture--dark,
html[data-theme="dark"] .footer__logo-picture--dark {
  display: block;
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }
}
