It's no illegal, just against Steam's (or whomever's) TOS, also the keys may be region locked. So don't buy from…
Sign in to your account
Username or Email Address
Password
Remember Me