Yes, BitTorrent is legal. However, downloading illegal files isn’t. That’s why torrenting without a VPN can get in you in trouble.