.hgdf-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  padding-block: 20px;
  text-align: right;
  direction: rtl;
}
.hgdf-addresses .hgdf-address {
  min-width: 0;
  margin: 0;
  padding: 0;
  font-style: normal;
}
.hgdf-addresses .hgdf-address-title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.hgdf-addresses .hgdf-address-text {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 2 !important;
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hgh-footer .hgdf-addresses {
  border-top: 1px solid rgba(218, 175, 55, .28);
  color: inherit;
}
.hgh-footer .hgdf-address-title {
  color: #f3d68a;
}
.hgpc-footer[data-hgdf-footer-enabled] {
  flex-wrap: wrap;
  row-gap: 16px;
}
.hgpc-footer > .hgdf-addresses {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding-block: 16px 0;
  border-top: 1px solid #e5d3b9;
  color: inherit;
}
.hgpc-footer .hgdf-address-title {
  color: inherit;
}
/* The shared theme gives the catalogue footer a dark background. Override
   the catalogue's original dark foreground with scoped readable colours. */
body.hg-brand .hgpc-footer {
  box-sizing: border-box;
  padding-inline: clamp(18px, 3vw, 36px);
  color: #fff6e9;
}
body.hg-brand .hgpc-footer :is(p, a, bdi, small, svg) {
  color: #fff6e9;
}
body.hg-brand .hgpc-footer :is(strong, .hgdf-address-title) {
  color: #f3d68a;
}
body.hg-brand .hgpc-footer a {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.hg-brand .hgpc-footer a:focus-visible {
  outline: 2px solid #f3d68a;
  outline-offset: 5px;
  border-radius: 4px;
}
.hgh-footer .hgh-footer-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;
}
.hgh-footer .hgh-footer-bottom > nav {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.hgh-footer .hgdf-footer-legal {
  display: contents;
}
.hgh-footer .hgdf-footer-legal > p {
  min-width: 0;
  max-width: 100%;
}
.hgh-footer .hgdf-footer-legal > p:not(.hgdf-design-credit) {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  overflow-wrap: anywhere;
}
.hgh-footer .hgdf-design-credit {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.9 !important;
  color: inherit;
  overflow-wrap: anywhere;
}
.hgh-footer .hgdf-design-credit a {
  display: inline-block;
  max-width: 100%;
  padding-block: 4px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hgh-footer .hgdf-design-credit a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}
@media (max-width: 700px) {
  .hgh-footer .hgh-footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
  .hgh-footer .hgh-footer-bottom > nav {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }
  .hgh-footer .hgdf-footer-legal > p:not(.hgdf-design-credit) {
    grid-column: 1;
    grid-row: 2;
  }
  .hgh-footer .hgdf-design-credit {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
  }
  .hgdf-addresses {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 16px;
  }
  .hgpc-footer > .hgdf-addresses {
    padding-block: 16px 0;
  }
}
@media (max-width: 600px) {
  .hgh-footer .hgdf-address-title {
    color: #6a0d1d;
  }
}
