I think it's in the EULA that you can't sell on the software which the original purchaser would have had to agree to to install and register with steam so I think it would be legal, sadly.

Legally it's a bit of a black hole

I'd go for a refund through paypal option, and look out for it 50% off on steam, or in game or a.n. other retailer.