/* MoneySastra legal pages — canonical mobile navigation */

.msw-legal-mobile-actions,
.msw-legal-mobile-nav{
  display:none;
}

@media(max-width:780px){

  /* Hide the desktop guest navigation on legal pages */
  body.msw-legal-mobile-page .msw-header .msw-nav.guest{
    display:none !important;
  }

  body.msw-legal-mobile-page .msw-header .msw-shell-wrap.msw-head{
    box-sizing:border-box !important;
    width:calc(100% - 24px) !important;
    max-width:1260px !important;
    min-height:60px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:.7rem !important;
  }

  body.msw-legal-mobile-page .msw-header .msw-logo-brand{
    flex:0 0 auto !important;
    min-width:0 !important;
  }

  .msw-legal-mobile-actions{
    display:flex;
    margin-left:auto;
    align-items:center;
    gap:.45rem;
    flex:0 0 auto;
  }

  .msw-legal-mobile-member{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:.58rem .72rem;
    border-radius:999px;
    background:#1B7A5A;
    color:#fff !important;
    font-family:'Poppins',system-ui,sans-serif;
    font-size:.68rem;
    font-weight:700;
    line-height:1;
    text-decoration:none !important;
    white-space:nowrap;
  }

  .msw-legal-mobile-toggle{
    width:40px;
    height:40px;
    padding:0;
    border:2px solid #1B7A5A;
    border-radius:10px;
    background:#fff;
    color:#0E3D2C;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    cursor:pointer;
    flex:0 0 40px;
  }

  .msw-legal-mobile-toggle span,
  .msw-legal-mobile-toggle::before,
  .msw-legal-mobile-toggle::after{
    content:"";
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transition:.18s ease;
  }

  .msw-legal-mobile-toggle span{margin:4px 0}

  .msw-legal-mobile-toggle.open{
    background:#1B7A5A;
    color:#fff;
  }

  .msw-legal-mobile-toggle.open::before{
    transform:translateY(6px) rotate(45deg);
  }
  .msw-legal-mobile-toggle.open span{
    opacity:0;
  }
  .msw-legal-mobile-toggle.open::after{
    transform:translateY(-6px) rotate(-45deg);
  }

  .msw-legal-mobile-nav{
    box-sizing:border-box;
    width:calc(100% - 24px);
    max-width:1260px;
    margin:0 auto;
    padding:.38rem;
    border-top:1px solid #E7E2D7;
    background:#FFFCF5;
  }

  .msw-legal-mobile-nav.show{
    display:grid;
  }

  .msw-legal-mobile-nav a{
    min-height:42px;
    display:flex;
    align-items:center;
    padding:.55rem .7rem;
    border-radius:8px;
    color:#4F5F58;
    font-family:'Poppins',system-ui,sans-serif;
    font-size:.82rem;
    font-weight:500;
    text-decoration:none;
  }

  .msw-legal-mobile-nav a:hover{
    background:#F2EEE5;
    color:#0E3D2C;
  }
}

/* Remove the older duplicate member hamburger on legal pages */
@media(max-width:780px){
  body.msw-legal-mobile-page .msw-header .msw-menu-btn{
    display:none !important;
  }

  body.msw-legal-mobile-page .msw-header #msw-mobile-nav{
    display:none !important;
  }
}
