Question: can you get a legendary out of an epic chest?
Answer: Any chest from P.E.K.K.A's Playhouse (Arena 4) or higher, besides Epic Chests and low-tier War Chests, can contain a Legendary Card. Check out Pixel Crux's Card Chance Calculator to find out the probability of getting cards of a given rarity in a certain chest.