Yes, it is legal. The Pirate bay website is legitimate and open to download content from the web browser and view all the content available on the torrent site entirely in the eyes of the law. It is legal and has a website that hosts a database of links to connect to a network with its copy of the content.