/* Footer component styles */
.site-footer {
  background-color: var(--color-felt);
  color: var(--color-text-on-dark);
  padding: var(--space-xxl) var(--container-padding-mobile) var(--space-lg);
  margin-top: var(--space-xxl);
}

.site-footer__inner {
  max-width: var(--container-max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

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

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

.site-footer__brand-text {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-text-on-dark);
  opacity: 0.85;
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__list li {
  margin: 0;
}

.site-footer__list a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  transition: color var(--transition-base);
}

.site-footer__list a:hover {
  color: var(--color-copper);
}

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

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

.site-footer__address a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer__address a:hover {
  color: var(--color-copper);
}

.site-footer__bottom {
  max-width: var(--container-max-width);
  margin-inline: auto;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(245, 240, 230, 0.2);
  text-align: center;
}

.site-footer__copyright {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  color: var(--color-text-on-dark);
  opacity: 0.7;
  margin: 0;
}

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-ivory);
  border-top: 1px solid var(--color-oak);
  box-shadow: 0 -4px 16px var(--color-shadow);
  padding: var(--space-md) var(--container-padding-mobile);
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner__content {
  max-width: var(--container-max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.consent-banner__text {
  flex: 1 1 300px;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-slate);
  margin: 0;
}

.consent-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Age modal */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.age-modal[hidden] {
  display: none !important;
}

.age-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

.age-modal__dialog {
  position: relative;
  background-color: var(--color-ivory);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.age-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.age-modal__description {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-slate);
  margin-bottom: var(--space-lg);
}

.age-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .consent-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner__actions {
    justify-content: flex-end;
  }

  .age-modal {
    padding: var(--space-md);
  }

  .age-modal__dialog {
    padding: var(--space-lg);
  }
}
