It is not P2W because it does not offer a power advantage over another. Legendary = ascended quality and you can get ascended weapons as a drop in Fractals and Teq.
Not to mention it would cost you absurd amounts of cash if you buy gems and sell for gold enough for a legendary.