/* ===== Footer component ===== */
.site-footer {
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border-soft);
  margin-top: var(--space-xxl);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-xxl) var(--space-xl);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-footer__brand-text {
  margin: 0;
  max-width: 36ch;
}

.site-footer__heading {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  margin-block-end: var(--space-sm);
}

.site-footer__nav-list,
.site-footer__legal-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--accent-coral);
}

.site-footer__link:focus-visible {
  outline: 3px solid var(--accent-coral);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

.site-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__address p {
  margin: 0;
}

.site-footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-block: var(--space-md);
}

.site-footer__bottom .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__copyright,
.site-footer__disclaimer {
  margin: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

.site-footer__disclaimer {
  max-width: 70ch;
}

/* ===== Consent banner ===== */
.site-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: var(--surface-raised);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  padding-block: var(--space-md);
  border-top: 1px solid var(--border-soft);
}

.site-consent[hidden] {
  display: none;
}

.site-consent__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-consent__text {
  margin: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

.site-consent__text a {
  color: var(--accent-coral);
  text-decoration: underline;
}

.site-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-consent__button {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-body-size);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.site-consent__button--accept {
  background-color: var(--accent-coral);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-button);
}

.site-consent__button--accept:hover {
  background-color: var(--accent-coral-hover);
}

.site-consent__button--reject {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.site-consent__button--reject:hover {
  background-color: var(--bg-base);
}

.site-consent__button:active {
  box-shadow: var(--shadow-button-active);
  transform: translateY(1px);
}

.site-consent__button:focus-visible {
  outline: 3px solid var(--accent-coral);
  outline-offset: 2px;
}

/* Responsive footer */
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
  }

  .site-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-consent__text {
    flex: 1;
    margin-right: var(--space-md);
  }

  .site-consent__actions {
    flex-shrink: 0;
  }
}