In most countries, using a VPN for gaming is legal. From a platform perspective, Valve Corporation does not ban VPN use outright, but you’re still expected to follow the
Dota 2 Terms of Service and
Steam Subscriber Agreement. Using a VPN for privacy or security is generally fine, but using it to abuse matchmaking, evade bans, or manipulate regions can lead to restrictions.