/* Developed footer (86:165) */

.aht-footer {
  /* Raw hex in the design, not a system variable: the footer rules are a
     neutral grey rather than the warm line colour. */
  --aht-footer-border: #e0e0e5;
  --aht-footer-divider: #dbdbe0;

  background: var(--aht-color-background-raised);
  border-top: 1px solid var(--aht-footer-border);
  padding-block: 65px var(--aht-spacing-32);
}

.aht-footer__navigation {
  display: flex;
  gap: var(--aht-spacing-40);
  align-items: flex-start;
}

.aht-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--aht-spacing-16);
  width: 300px;
  flex-shrink: 0;
}

.aht-footer__logo {
  width: auto;
  height: 48px;
}

.aht-footer__statement,
.aht-footer__accreditation {
  color: var(--aht-color-text-secondary);
}

.aht-footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--aht-spacing-12);
  width: 180px;
  flex-shrink: 0;
}

.aht-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: var(--aht-spacing-12);
}

.aht-footer__heading {
  color: var(--aht-color-background-brand);
  text-transform: uppercase;
  margin: 0;
}

.aht-footer__link {
  /* The design draws a 44px row; in code that is padding on the anchor, not a
     fixed height on a wrapper (breakpoints-and-states, implementation rule 2). */
  display: inline-flex;
  align-items: center;
  min-height: var(--aht-target-min);
  color: var(--aht-color-text-primary);
}

.aht-footer__link:hover {
  color: var(--aht-color-text-brand);
  text-decoration: underline;
}

.aht-footer__address {
  color: var(--aht-color-text-primary);
}

.aht-footer__divider {
  height: 1px;
  border: 0;
  margin-block: var(--aht-spacing-40);
  background: var(--aht-footer-divider);
}

.aht-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aht-spacing-24);
  min-height: 44px;
}

.aht-footer__copyright {
  color: var(--aht-color-text-secondary);
}

.aht-footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--aht-spacing-24);
}

/* The four columns re-pitch before they crush; the brand column keeps its
   own row so the lockup is never scaled below its legible size. */
@media (max-width: 1119px) {
  .aht-footer__navigation {
    flex-wrap: wrap;
    gap: var(--aht-spacing-40) var(--aht-spacing-32);
  }

  .aht-footer__brand {
    width: 100%;
  }

  .aht-footer__column {
    width: calc(50% - var(--aht-spacing-32));
  }
}

@media (max-width: 767px) {
  .aht-footer {
    padding-block: var(--aht-spacing-48) var(--aht-spacing-32);
  }

  .aht-footer__column {
    width: 100%;
  }

  .aht-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--aht-spacing-16);
  }

  .aht-footer__legal-links {
    flex-wrap: wrap;
    gap: var(--aht-spacing-16) var(--aht-spacing-24);
  }
}
