Pain in both legs could be because of few different reason
1-Radicular pain from lower back (sciatica)
2- Muscular inflammation (myositis)
3- Vascular (bad Circulation)
4- Metabolic disease such as Slow thyroid,...
Consulting with a physician will be the best way to go.