It's perfectly legal to download videos through the official app, so there's no question about it. You only need a valid subscription to log in. Please note that depending on your subscription plan, you can download up to 1, 2, or 4 devices.