.site-footer {
  background-color: var(--color-deep-charcoal);
  color: var(--color-ivory);
  padding-block: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-mobile);
}

.site-footer__brand {
  margin-bottom: var(--space-xl);
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: var(--leading-h2);
  color: var(--color-ivory);
  margin: 0;
}

.site-footer__brand-sub {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--color-on-dark-muted);
  margin: var(--space-xs) 0 0;
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--color-ivory);
  margin: var(--space-md) 0 0;
  max-width: 30ch;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.site-footer__column {
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--color-on-dark-muted);
  margin: 0 0 var(--space-md);
}

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

.site-footer__link {
  color: var(--color-ivory);
  text-decoration: none;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  transition: color var(--transition-fade);
}

.site-footer__link:hover {
  color: var(--color-focus-ring);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__address {
  font-style: normal;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ivory);
}

.site-footer__address .site-footer__link {
  display: inline-block;
  margin-top: var(--space-2xs);
}

.site-footer__bottom {
  border-top: var(--border-dark);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__notice {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--color-on-dark-muted);
  margin: 0;
}

.site-footer__copyright {
  font-size: var(--text-small);
  color: var(--color-on-dark-muted);
  margin: 0;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background-color: var(--color-ivory);
  border-top: var(--border-light);
  padding: var(--space-md) var(--container-pad-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-soft);
}

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

.cookie-consent__text {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-graphite);
  margin: 0;
}

.cookie-consent__text a {
  color: var(--color-brick-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__text a:hover {
  color: var(--color-graphite);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.cookie-consent__button {
  flex: 1 1 auto;
  min-width: 120px;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: var(--color-deep-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-pad-mobile);
  overflow-y: auto;
}

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

.age-modal__content {
  background-color: var(--color-ivory);
  color: var(--color-graphite);
  padding: var(--space-lg);
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.age-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  color: var(--color-graphite);
  margin: 0 0 var(--space-md);
}

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

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

.age-modal__button {
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding-inline: var(--container-pad-tablet);
  }

  .site-footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

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

  .cookie-consent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--container-pad-tablet);
  }

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

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

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

  .age-modal__button {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-inline: var(--container-pad-desktop);
  }

  .cookie-consent {
    padding-inline: var(--container-pad-desktop);
  }
}
