/* ------------------------------------------------------------------
   Shared footer behavior, loaded last so it wins over each page's
   own footer rules. Colors still come from the page stylesheet; this
   only handles layout and the legal-links treatment.
   ------------------------------------------------------------------ */

/* ---- One brand footer on every page (matches the home page) ---- */
footer{background:#1F2D45;border-top:1px solid rgba(255,255,255,.08)}
footer .wrap{max-width:1180px;margin-inline:auto;padding:30px clamp(16px,4vw,44px);
  display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
footer .brand{display:flex;align-items:center;gap:clamp(14px,2vw,22px);flex-wrap:wrap}
footer .brand img{height:41px;width:auto;display:block}
/* The signature line beside the logo. */
footer .brand .fline{margin:0;padding-left:clamp(14px,2vw,22px);border-left:1px solid rgba(255,255,255,.16);
  max-width:30ch;font-size:.84rem;font-weight:500;line-height:1.4;letter-spacing:0;color:#C3CFE4;text-transform:none}
footer .fl{display:flex;gap:22px;font-size:.74rem;font-weight:500;text-transform:uppercase;letter-spacing:.1em;color:#9fb2d0}
footer .fl a{color:inherit;text-decoration:none;margin-left:0}
footer .fl a:hover{color:#8FB9E8}
footer .copy{flex-basis:100%;font-size:.72rem;letter-spacing:.04em;color:#9fb2d0;opacity:.85}

/* Link row may wrap; legal links read as a same-size, underlined
   extension of the copyright line. */
footer .fl{flex-wrap:wrap}
footer .copy a{font-size:inherit; color:inherit; margin-left:0;
  text-decoration:underline; text-underline-offset:2px}
footer .copy a:hover{opacity:.7}

/* Mobile: page links always on top, copyright below, and the legal
   links drop to their own line under the copyright. */
@media(max-width:600px){
  footer .wrap{flex-direction:column; align-items:flex-start}
  footer .brand{flex-direction:column; align-items:flex-start; gap:10px}
  footer .brand .fline{padding-left:0; border-left:0; max-width:none}
  footer .fl{order:1}
  footer .copy{order:2; flex-basis:auto}
  footer .copy .legal{display:block; margin-top:5px}
  footer .copy .legal .sep{display:none}
}
