The pancake stretch is one of the best stretches for leg flexibility.
Level 1 - If you can't. pass 60 degrees or so in siting pancake, do it with the bum elevated or standing up so that gravity can assist you to stretch further
Level 2 - Once level 1 is easy, do it on the floor. Keep the back straight, aim the stomach towards the floor and eventually totally flat on the floor.
Level 3. Active flexibility development by going up and down with the leg muscles with less or no hand assistance.