.site-footer {
  background: #1a2124;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 2.5rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
}

.footer-logo img {
  display: block;
  max-height: 44px;
  width: auto;
}

.footer-logo span {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-col p {
  margin: 0 0 0.875rem;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0 0 0.625rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.125rem 0;
  font-size: 0.8125rem;
}

.privacy-link {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-link:hover {
  color: #fff;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  }

  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    color: var(--color-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
  }

  .mobile-tabbar a.is-active {
    color: var(--color-primary);
    font-weight: 600;
  }

  .mobile-tabbar a.is-active svg {
    fill: currentColor;
  }
}

@media (max-width: 560px) {
  .footer-columns {
    grid-template-columns: 1fr;
    padding: 2rem 0 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.cookie-notice {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  width: min(420px, calc(100% - 2rem));
  padding: 1.375rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  animation: cookie-notice-in 0.3s ease-out;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.cookie-notice-text {
  margin: 0 0 1.125rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-notice-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.cookie-notice-actions .btn {
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cookie-settings-link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

@keyframes cookie-notice-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 768px) {
  .cookie-notice {
    right: 1rem;
    bottom: calc(64px + env(safe-area-inset-bottom) + 0.75rem);
  }
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.footer-credit-label {
  opacity: 0.75;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-credit-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-credit-logo {
  display: block;
  height: 11px !important;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .footer-credit {
    justify-content: center;
    white-space: normal;
  }
}