/* /legal: the site's own navigation (animated isla mark + round menu button, as on the
   homepage, About Us and Finance), added to the Mass Torts page by legal.php. The page keeps
   its "Connect with us" button beside the menu button. */
.bar > .bar-in { max-width: none; height: auto; padding: 16px 5%; } /* same container as the other pages' bar */
.bar-end { display: flex; align-items: center; gap: 12px; }
.bar-logo { display: flex; align-items: center; height: 36px; border-radius: 6px; }
.bar-logo svg { height: 36px; width: auto; }
.logo-animated path { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.5; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.logo-animated .logo-letter-1 { --len: 150; animation: logo-draw .4s ease-out .4s forwards, logo-fill .3s ease-out .8s forwards; }
.logo-animated .logo-letter-2 { --len: 50; animation: logo-draw .3s ease-out .6s forwards, logo-fill .3s ease-out .9s forwards; }
.logo-animated .logo-letter-3 { --len: 120; animation: logo-draw .3s ease-out .7s forwards, logo-fill .3s ease-out 1s forwards; }
.logo-animated .logo-letter-4 { --len: 280; animation: logo-draw .5s ease-out .9s forwards, logo-fill .3s ease-out 1.4s forwards; }
.logo-animated .logo-letter-5 { --len: 140; animation: logo-draw .3s ease-out 1.2s forwards, logo-fill .3s ease-out 1.5s forwards; }
.logo-animated .logo-letter-6 { --len: 200; animation: logo-draw .5s ease-out 1.4s forwards, logo-fill .3s ease-out 1.9s forwards; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-animated path { animation: none !important; fill-opacity: 1; stroke-dashoffset: 0; } }

.menu-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--plum); color: #fff; cursor: pointer; transition: background-color .3s ease, color .3s ease, transform .3s ease, opacity .3s ease;
}
.menu-btn:hover { background: var(--deep); transform: translateY(-2px); }
.bar.is-solid .menu-btn { background: #fff; color: var(--plum); }
.bar.is-solid .menu-btn:hover { background: var(--blush); }
.menu-btn svg { width: 24px; height: 24px; }
body:has(.menu[open]) .menu-btn { opacity: 0; pointer-events: none; }

.menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: 320px; max-width: 85vw;
  padding: 0; border: 0; display: none; flex-direction: column; overflow: hidden; color: #fff; background: var(--deep);
}
.menu[open] { display: flex; }
.menu::backdrop { background: rgba(0, 0, 0, .5); }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-head a { display: flex; align-items: center; height: 32px; border-radius: 6px; }
.menu-logo { height: 32px; width: auto; }
.menu .x-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--plum); cursor: pointer; transition: background-color .2s ease; }
.menu .x-btn:hover { background: var(--blush); }
.menu .x-btn svg { width: 24px; height: 24px; }
.menu-links { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 32px 24px; overflow-y: auto; }
.menu-label { margin-bottom: 8px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.menu-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; font-weight: 600; font-size: 18px; line-height: 1.4; color: #fff; border-radius: 6px; transition: color .2s ease; }
.menu-links a:hover { color: var(--coral); }
.menu-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.menu-ic svg { width: 16px; height: 16px; }
.menu-ic .menu-ic-legal { width: 20px; height: 20px; fill: currentColor; }
.menu-rule { height: 1px; margin: 16px 0; background: rgba(255, 255, 255, .1); }
.menu-foot { padding: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.menu-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px 32px; border-radius: 999px;
  background: #fff; color: var(--plum); text-decoration: none; font-weight: 600; font-size: 18px; line-height: 1; transition: background-color .2s ease;
}
.menu-cta:hover { background: var(--blush); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: menu-in .3s ease-out; }
  .menu[open]::backdrop { animation: menu-fade .3s ease-out; }
}
@keyframes menu-in { from { transform: translateX(100%); } }
@keyframes menu-fade { from { opacity: 0; } }

@media (max-width: 359px) {
  .bar-logo, .bar-logo svg { height: 28px; }
  .bar-end { gap: 8px; }
  .menu-btn { width: 44px; height: 44px; }
}

/* The LegalCove mark over the heading, as zerobill on /finance. */
.lc-mark { display: block; height: 30px; width: auto; margin-bottom: 28px; }
