/* Shared site footer: one centred row of links on a thin divider, plus a
   faint company-disclosure line. Company name, number, registered office and
   place of registration are required on UK company websites; keep that line.
   Colours derive from the page's own text colour, so the footer sits on any
   page background (dark app pages or cream marketing pages). */
.cl-footer {
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.cl-footer__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}
.cl-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 33px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.cl-footer .cl-footer__row > * {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: color-mix(in srgb, currentColor 62%, transparent);
}
/* Thin separator before every item but the first. It sits in the gap,
   outside the link box, so a link's focus ring hugs its own text. */
.cl-footer__row > * + *::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.cl-footer__row a {
  text-decoration: none;
  transition: color .15s;
}
.cl-footer .cl-footer__row a:hover { color: currentColor; }
.cl-footer a:focus-visible {
  outline: 2px solid var(--gold, #FFED00);
  outline-offset: 3px;
  border-radius: 2px;
}
.cl-footer__legal {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  /* 58% keeps it fainter than the row (62%) while staying >= 4.5:1 (WCAG AA)
     on the dark app pages, the #070707 legal pages and cream pages. */
  color: color-mix(in srgb, currentColor 58%, transparent);
  overflow-wrap: normal;
}

/* App pages with the fixed sidebar (shell.css): keep the footer clear of it. */
@media (min-width: 1024px) {
  body:has(#cbSidebar) > .cl-footer { margin-left: 256px; }
  .cb-rail body:has(#cbSidebar) > .cl-footer { margin-left: 72px; }
}
/* 768-1023px: the sidebar is the rail, or opens over the page. */
@media (min-width: 768px) and (max-width: 1023px) {
  body:has(#cbSidebar) > .cl-footer { margin-left: 72px; }
}
@media (max-width: 640px) {
  .cl-footer__in { padding: 40px 16px 24px; }
  /* Wrapped rows would start with a stray divider; use plain gaps instead. */
  .cl-footer__row { column-gap: 20px; }
  .cl-footer__row > * + *::before { display: none; }
}
