/* V58: legal links belong to the final contact page, not a scroll station. */
.site-legal54 {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  padding: 8px 20px 12px;
  background: #05101b;
  color: #afc4d5;
  font: 12px/1.5 "Segoe UI", Arial, sans-serif;
  scroll-snap-align: none;
}
.site-legal54 a { display: inline-flex; align-items: center; min-height: 44px; }
.site-legal54 a:focus-visible { outline: 2px solid #dceef6; outline-offset: 3px; }

/* Preserve the desktop header; mobile keeps all four destinations visible. */
@media (max-width: 700px) {
  :root { --header-height: 72px; --header: 72px; }
  .header,
  body.contact-page38 .header {
    height: 72px;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }
  .header .brand { align-items: flex-start; }
  .header .brand > span { font-size: 15px; }
  .header .brand small { font-size: 5px; }
  .header nav {
    width: auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
    gap: 8px;
  }
  .header nav > a,
  .header .about-nav,
  body.contact-page38 .header .about-nav {
    min-height: 44px;
    font-size: 11px;
    line-height: 1.35;
  }
}
@media (max-width: 360px) {
  .header,
  body.contact-page38 .header { gap: 8px; padding-inline: 8px; }
  .header .brand > span { font-size: 13px; }
  .header nav { gap: 6px; }
  .header nav > a,
  .header .about-nav,
  body.contact-page38 .header .about-nav { font-size: 10px; }
}
/* At extreme widths, reflow rather than clipping or shrinking hit areas. */
@media (max-width: 319px) {
  :root { --header-height: 88px; --header: 88px; }
  .header,
  body.contact-page38 .header {
    height: 88px;
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 6px;
  }
  .header .brand { align-items: center; }
  .header nav { width: 100%; gap: 12px; }
}
