/* Shared footer. The page renderer and Policy Generator use the same template. */
.site-footer.site-footer-consolidated {
  --footer-content-width: 1120px;
  --footer-inline-padding: 1.5rem;
  padding: 0;
  background: #e9edf1;
  border-top: 1px solid #c2ccd6;
  color: #364957;
  font-family: var(--sans, Arial, Helvetica, sans-serif);
  font-size: .9rem;
  line-height: 1.6;
  text-align: left;
}
.app-screen .site-footer.site-footer-consolidated {
  --footer-content-width: 940px;
  --footer-inline-padding: 1.25rem;
}
.site-footer.site-footer-consolidated .footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "about navigation licence";
  gap: 2.5rem;
  align-items: start;
  max-width: var(--footer-content-width);
  margin: 0 auto;
  padding: 2rem var(--footer-inline-padding);
}
.site-footer.site-footer-consolidated .footer-about { grid-area: about; }
.site-footer.site-footer-consolidated .footer-site-nav { grid-area: navigation; }
.site-footer.site-footer-consolidated .footer-licence { grid-area: licence; }
.site-footer.site-footer-consolidated .footer-inner > * { min-width: 0; margin: 0; }
.site-footer.site-footer-consolidated h2 {
  margin: 0 0 .9rem;
  color: #536575;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}
.site-footer.site-footer-consolidated p,
.site-footer.site-footer-consolidated li,
.site-footer.site-footer-consolidated a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.site-footer.site-footer-consolidated .footer-inner p {
  max-width: none;
  margin: 0 0 .8rem;
}
.site-footer.site-footer-consolidated .footer-inner p:last-child { margin-bottom: 0; }
.site-footer.site-footer-consolidated .footer-site-name { font-weight: 600; }
.site-footer.site-footer-consolidated a {
  color: #1f3a5f;
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.site-footer.site-footer-consolidated a:hover { text-decoration-thickness: 2px; }
.site-footer.site-footer-consolidated a:focus-visible {
  outline: 3px solid #1f3a5f;
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer.site-footer-consolidated .footer-site-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 1rem;
  list-style: none;
  margin: -.4rem 0 0;
  padding: 0;
  gap: 0;
}
.site-footer.site-footer-consolidated .footer-site-nav li { margin: 0; padding: 0; }
.site-footer.site-footer-consolidated .footer-site-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: .35rem 0;
  width: fit-content;
  max-width: 100%;
}
.site-footer.site-footer-consolidated .footer-licence-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin: -.4rem 0 .8rem;
}
.site-footer.site-footer-consolidated .footer-licence-badge img {
  display: block;
  width: 88px;
  height: 31px;
}
.site-footer.site-footer-consolidated .footer-bottom {
  border-top: 1px solid #c2ccd6;
  padding: .9rem 0;
}
.site-footer.site-footer-consolidated .footer-bottom p {
  max-width: var(--footer-content-width);
  margin: 0 auto;
  padding: 0 var(--footer-inline-padding);
}
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer.site-footer-consolidated .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "about licence" "navigation navigation";
    gap: 2rem 2.5rem;
  }
  .site-footer.site-footer-consolidated .footer-site-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
  }
}
@media (max-width: 1023px), (pointer: coarse) {
  .site-footer.site-footer-consolidated .footer-site-nav a { min-height: 44px; }
}
@media (max-width: 639px) {
  .site-footer.site-footer-consolidated,
  .app-screen .site-footer.site-footer-consolidated { --footer-inline-padding: 1rem; }
  .site-footer.site-footer-consolidated .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "about" "navigation" "licence";
    gap: 2rem;
  }
  .site-footer.site-footer-consolidated .footer-site-nav ul {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .site-footer.site-footer-consolidated .footer-bottom {
    /* Leave a clear area below the last line for the fixed 44px Back to top control. */
    padding-bottom: calc(.9rem + 44px + 2.2rem + env(safe-area-inset-bottom, 0px));
  }
}
