Hides the footer links in the mobile menu when the footer is visible

Addresses https://github.com/wet-boew/wet-boew/issues/5147