/* The main website's navbar (public/assets/style.css + refinement.css), scoped to .header
   so it does not touch the Legal Center's own styles. */
.header { position: sticky; top: 0; z-index: 50; background: #ffffffed; border-bottom: 1px solid #e2ebf0; box-shadow: 0 4px 25px #0b345d04; backdrop-filter: blur(18px); font-family: Archivo, Arial, sans-serif; }
.header a { color: #112a46; text-decoration: none; }
.header .wrap { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.header .nav { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.header .brand { display: flex; align-items: center; }
.header .brand img { width: 58px; height: 64px; object-fit: contain; display: block; }
.header .brand > span { display: none; }
.header .nav nav { display: flex; gap: 30px; align-items: center; }
.header .nav nav a { position: relative; font-size: .875rem; line-height: 2; color: #31516b; }
.header .nav nav a::after { content: ''; position: absolute; height: 2px; left: 0; right: 100%; bottom: -5px; background: #00aaca; transition: right .2s; }
.header .nav nav a:hover::after, .header .nav nav a[aria-current]::after { right: 0; }
.header .nav-actions { display: flex; align-items: center; gap: 18px; }
.header .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 13px 23px; border: 1px solid #163c55; border-radius: 100px; background: linear-gradient(145deg, #224660, #0b2944); box-shadow: inset 0 1px 0 #ffffff25, 0 5px 12px #0e2f4910; color: #fff; font-size: .875rem; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: background .2s; }
.header .button:hover { background: linear-gradient(145deg, #176681, #0c3854); }
.header .menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 0; background: none; cursor: pointer; }
.header .menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #112a46; }
/* Keep the Legal Center's sticky notice menu below the sticky navbar. */
.side nav { top: calc(84px + 1rem); max-height: calc(100vh - 84px - 2rem); }

@media (max-width: 1100px) {
  .header .nav { gap: 20px; }
  .header .nav nav { gap: 21px; }
  .header .button { padding: 13px 20px; }
}
@media (max-width: 900px) {
  .header .wrap { width: calc(100% - 64px); }
  .header .nav { height: 80px; }
  .header .brand img { width: 44px; height: 50px; }
  .header .nav nav { display: none; position: absolute; top: 80px; left: 0; right: 0; padding: 25px 24px; background: #fff; border-bottom: 1px solid #d1e3ee; box-shadow: 0 15px 20px #143d5610; flex-direction: column; align-items: stretch; gap: 14px; }
  .header .nav nav[data-open] { display: flex; }
  .header .nav nav a { font-size: 1rem; padding: 8px 0; }
  .header .menu-toggle { display: block; }
  .header .nav-actions { gap: 10px; }
  .side nav { top: calc(80px + 1rem); }
}
@media (max-width: 640px) {
  .header .wrap { width: calc(100% - 32px); }
  .header .nav { height: 76px; gap: 12px; }
  .header .nav nav { top: 76px; }
  .header .button { min-height: 43px; padding: 12px 16px; }
  .header .menu-toggle { width: 32px; padding: 5px; }
}
@media print { .header { display: none !important; } }

/* The main website's footer, scoped to .footer. */
.footer { background: #061b30; color: #dbeaf5; padding-top: 58px; font-family: Archivo, Arial, sans-serif; }
.footer a { color: inherit; text-decoration: none; }
.footer .wrap { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.1fr 1.4fr; gap: 40px 60px; padding-bottom: 54px; }
.footer-brand { display: block; font-size: 1.8rem; letter-spacing: -.04em; font-weight: 500; line-height: 1.1; }
.footer-brand span { display: block; font-size: .75rem; letter-spacing: .13em; line-height: 1.7; color: #7ea8c1; margin-top: 12px; max-width: 300px; }
.footer p { font-size: .875rem; color: #8da8bd; margin: 19px 0 0; line-height: 1.9; max-width: 350px; }
.footer h3 { font-size: .875rem; font-weight: 500; letter-spacing: 0; margin: 6px 0 18px; color: #e0f0fa; }
.footer-grid > div:not(:first-child) > a { display: block; font-size: .875rem; color: #94b0c6; margin-bottom: 11px; line-height: 1.6; }
.footer a:hover { color: #76dcf0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 77px; border-top: 1px solid #203d56; font-size: .75rem; color: #8aa8be; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 24px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 35px 65px; } }
@media (max-width: 900px) { .footer .wrap { width: calc(100% - 64px); } }
@media (max-width: 640px) {
  .footer { padding-top: 44px; }
  .footer .wrap { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 25px; padding-bottom: 37px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; justify-content: flex-start; gap: 17px 22px; padding: 25px 0; }
  .footer-bottom > div { gap: 20px; }
}
@media print { .footer { display: none !important; } }

/* Legal Center only: a fifth footer column with the legal notices. */
.footer-grid:has(.footer-legal) { grid-template-columns: 1.6fr 1fr 1.1fr 1.2fr 1.5fr; gap: 40px 44px; }
.footer-legal p { margin-top: 14px; font-size: .8rem; line-height: 1.7; }
.footer-legal p a { display: inline; margin: 0; color: #94b0c6; }
@media (max-width: 1100px) { .footer-grid:has(.footer-legal) { grid-template-columns: 1.5fr 1fr; gap: 35px 65px; } }
@media (max-width: 640px) { .footer-grid:has(.footer-legal) { grid-template-columns: 1fr 1fr; gap: 32px 25px; } .footer-legal { grid-column: 1 / -1; } }
