/* The footer closes on the onboarding canvas: deep blue with a darker arc across the top.
   The links come first and the tonal wordmark rises from the bottom edge, cropped. */
.brand-footer {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: clip;
  margin-top: 64px;
  padding-top: 28px;
  background:
    radial-gradient(ellipse 110% 85% at 50% 0%, #113c7d 0%, #113c7d 45%, #113c7d00 80%),
    #154999;
}
.brand-footer::before { content: none; }
/* Matches the header's content width so the copyright lines up with the logo. */
.footer-inner { width: min(calc(100% - 2 * max(40px, var(--safe-left), var(--safe-right))), 1000px); margin-inline: auto; }
/* The page ends through the wordmark, clipping the bottom quarter of its letters. They
   span units 28 to 552 of its 1590 × 578 drawing, so the frame shows 28 to 421. */
.footer-art { order: 1; flex: none; position: relative; width: calc(100% + 12px); height: auto; aspect-ratio: 1590 / 393; margin: 20px 0 0 -6px; overflow: hidden; }
.footer-art::after { content: none; }
.footer-art img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: calc(-28 / 1590 * 100%);
  filter: brightness(0) invert(1);
  opacity: .08;
  /* Fades into shadow toward the page's end, so it reads as texture rather than a logo. */
  -webkit-mask-image: linear-gradient(#000, #0005 50%, #0000);
  mask-image: linear-gradient(#000, #0005 50%, #0000);
}
.brand-footer .footer-meta {
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 0;
  border: 0;
  color: #ffffffc7;
  font-size: 12px;
}
.footer-copyright { flex: none; }
.footer-start { display: flex; align-items: center; gap: 0 24px; }
/* The language picker opens a menu of links. It never draws a focus ring: keyboard focus
   brightens the button like hover does and highlights the focused language. */
.language-picker { display: inline-flex; }
.language-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  anchor-name: --language-picker;
}
.language-picker__button,
.language-picker__button:focus-visible { outline: none; }
.language-picker__button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.language-picker__current::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 3px 7px; border: solid currentColor; border-width: 0 1.2px 1.2px 0; rotate: 45deg; }
.language-picker__button:hover,
.language-picker__button:focus-visible,
.language-picker:has(:popover-open) .language-picker__button { color: #fff; }
.language-menu {
  position-anchor: --language-picker;
  position-area: top span-right;
  position-try-fallbacks: flip-block;
  inset: auto;
  margin: 0 0 4px;
  min-width: 176px;
  padding: 4px;
  border: 1px solid #2f312f14;
  border-radius: 10px;
  background: #fff;
  color: #2f312f;
  font-size: 13px;
  box-shadow: 0 12px 32px -8px #0b1d3f59, 0 2px 6px #0b1d3f1f;
  overflow: visible;
  transform-origin: bottom left;
  transition: opacity .12s ease-out, scale .12s ease-out;
}
@starting-style {
  .language-menu:popover-open { opacity: 0; scale: .96; }
}
.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 8px;
  border-radius: 6px;
  line-height: 20px;
  white-space: nowrap;
}
.language-menu a,
.language-menu a:focus-visible { outline: none; }
.brand-footer .language-menu a:hover,
.brand-footer .language-menu a:focus-visible { color: inherit; background: #2f312f12; }
.language-menu a[aria-current] { font-weight: 600; }
.language-menu__check { width: 14px; height: 14px; fill: none; stroke: #185bcb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) {
  .language-menu { font-size: 15px; }
  .language-menu a { padding: 10px; }
}
.footer-meta .legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 28px; }
/* On the narrowest phones the links drop below the copyright instead of breaking mid-label,
   and long translated links wrap onto a second row. */
.footer-meta .legal-links a { white-space: nowrap; }
.brand-footer .legal-links a:hover { color: #fff; }
.brand-footer .footer-meta [aria-current="page"] { color: #fff; }
/* Beats the legal pages' Signal Blue ring, which disappears on this blue. */
.brand-footer a:focus-visible { outline-color: #ffffff99; }
@media (max-width: 1000px) {
  .footer-inner { width: calc(100% - 2 * max(20px, var(--safe-left), var(--safe-right))); }
}
@media (max-width: 600px) {
  .brand-footer { margin-top: 48px; padding-top: 20px; }
  .footer-art { margin-top: 12px; }
  .brand-footer .footer-meta { column-gap: 18px; font-size: 11px; }
  .footer-meta .legal-links { justify-content: flex-start; column-gap: 20px; }
  .footer-start { column-gap: 18px; }
}
@media (max-width: 360px) {
  .brand-footer .footer-meta { column-gap: 12px; }
  .footer-meta .legal-links { column-gap: 14px; }
}
