You can legally download videos using YouTube Premium, but downloading with third-party tools violates YouTube’s terms of service.