.footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 14px;
}

.footer__legal a,
.footer__legal button {
  padding: 0;
  color: var(--text-alt-color);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--heading-font-color);
}

.analytics-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1000000;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-color);
}

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

.analytics-consent__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--background-color);
  border: 1px solid var(--border-color-alt);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(12, 16, 26, 0.22);
}

.analytics-consent__copy {
  flex: 1;
}

.analytics-consent__copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.analytics-consent__copy p {
  margin: 0;
  color: var(--text-alt-color);
  font-size: 15px;
  line-height: 1.5;
}

.analytics-consent__copy a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.analytics-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--button-color);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 6px;
  cursor: pointer;
}

.analytics-consent__button:hover {
  background: var(--button-background-hover);
  border-color: var(--button-background-hover);
}

.analytics-consent__button--secondary {
  color: var(--text-color);
  background: transparent;
  border-color: var(--border-color-alt);
}

.analytics-consent__button--secondary:hover {
  color: var(--heading-font-color);
  background: var(--background-alt-color);
  border-color: var(--border-color-alt);
}

.analytics-consent__button:focus-visible,
.footer__legal a:focus-visible,
.footer__legal button:focus-visible {
  outline: 3px solid var(--brand-color);
  outline-offset: 3px;
}

@media only screen and (max-width: 768px) {
  .footer__info-box {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__legal {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .analytics-consent__inner {
    display: block;
    padding: 20px;
  }

  .analytics-consent__actions {
    justify-content: flex-end;
    margin-top: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .footer__legal {
    gap: 12px;
  }

  .analytics-consent__actions {
    flex-direction: column;
  }

  .analytics-consent__button {
    width: 100%;
  }
}