/* Footer, consent banner, and age modal styles */
.site-footer {
  background-color: var(--color-espresso);
  color: var(--color-stone-text-on-dark);
  padding-block: var(--space-64) var(--space-32);
  margin-top: var(--space-64);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
  color: var(--color-stone-text-on-dark);
}

.site-footer__brand-link:hover {
  text-decoration: none;
}

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

.site-footer__brand-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: var(--weight-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-text-on-dark);
}

.site-footer__tagline {
  margin-top: var(--space-16);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-stone-text-on-dark);
  max-width: 32ch;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: var(--weight-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-copper-text-on-dark);
  margin-bottom: var(--space-16);
}

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

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

.site-footer__link:hover {
  color: var(--color-copper-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

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

.site-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.site-footer__copyright {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone-text-on-dark);
  margin: 0;
}

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--color-warm-grey);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-16) var(--container-padding-mobile);
}

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

.consent-banner__content {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
}

.consent-banner__text {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-espresso);
  margin: 0;
}

.consent-banner__actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

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

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

.age-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-pale-stone);
  opacity: 0.95;
}

.age-modal__dialog {
  position: relative;
  background-color: var(--color-pale-stone);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-modal);
  padding: var(--space-32);
  max-width: 480px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.age-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-heading);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  color: var(--color-espresso);
  margin-bottom: var(--space-16);
}

.age-modal__description {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-espresso);
  margin-bottom: var(--space-24);
  margin-inline: auto;
  max-width: 36ch;
}

.age-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

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

  .site-footer__legal {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .age-modal__actions {
    flex-direction: row;
    justify-content: center;
  }
}
