It is legal,moral and ethical.
People who think it isn’t have no idea of how investing works and why it might not be a good idea to have your salary and 90% of your savings hitched to a speculative company.
And, investors who bought the shares these guys sold got a market-price deal.
Smells like insider knowledge.
Most officers of companies are only allowed to buy and sell shares on a schedule to avoid appearances like this.