They've been sued a lot about it, right? It seems they've argued in courts that the Hooters Girl persona is a 'bona fide occupational qualification.' I just don't see how McDonalds can pull that off.
EDIT: and anyways, its probably important to situate McDonald's in context: the vast majority of sales, even pre-pandemic, in the US, is drive through. It doesn't matter what your staff looks like, since customers and employees only see each other only after the order is completed.