Yeah, one of the “ends” being Facebook itself. It's “legal” as in it is indeed end-to-end encrypted in the same way Cloudflare-hosted websites are, but very shitty. I always thought Facebook did this, but having some confirmation bias is very nice indeed, lol.