Well, according to Amazon help page
, Seller accounts are not transferable, but in terms of law they are just accounts on a particular platform, not an established business entity, so they can be transferred legally.
That's how thousands of sellers do every day all around the world. Additionaly, platform allows us to change all the details of an Amazon Seller Account. So we consider this being legal though we should always remember about Amazon polices.