Wiretapping is only illegal if it isn't sanctioned in some way.
They can spy on anyone who isn't an American citizen legally, so they could probably tap into any server that's outside the US.
They can also spy on people if a secret court allows them to do so, and (by design) you would never even know about it.
Lastly they can simply have deals with agencies from other countries that have similar "restrictions" where they tap into the US data and then they just exchange the collected data, because then it's technically not them who is doing it so it's perfectly legal.
They certainly have no obligation (or desire) to keep anyone's data private - especially from themselves.
ThePirateBay, the most notorious site in the world, uses Cloudflare.
It wouldn't be far fetched to think that now that the battle against it was lost on all fronts it would work as a good honeypot. You never know what or who is behind it.
Well yeah, it's not easy. Which is why they limit what they do to the aggregated data or to targeted discovery.
But that's only a small technical hurdle and the speed with which you can analyze the data grows much faster than the volume (especially if you are smart about what data you analyze and how you do it) so it won't last forever.