Yes, torrent clients are legal. As far as you are using them to download non-copyrighted files, you are good to go. But when it comes to downloading a copyrighted item, and you don't own it, then downloading it free of cost via torrent is illegal. Hence, it is advised that you use a Virtual Private Network or VPN for downloading torrents.