The arrangement as such is probably legal. Usually with these services, you become a contractor of them and they become a contractor of your client. Pretty straight forward. But it's not without problems and risks...I don't even understand how this can be "legal". What am I missing?