The software itself is legal in most countries. However, downloading copyrighted content without permission may violate YouTube's Terms of Service and local copyright laws.

Because this is an "exclusive" legacy version, you cannot find it on the official website (they now push version 8.x). You must source it from reputable archival sites.