Chronic pain/vitamin d deficiency Watch
Try to increase your sun exposure which should be easy in the current climate.
The most significant source of vitamin D is sun exposure.
It comes mainly in the period 11am to 4pm May to September.
So get outside as much as you can.
Calcium and magnesium are also important for muscle health and absorption of vitamin D into the body.
Magnesium helps muscle's relax and so should reduce pain in legs ( lack of this causes cramp in your legs).
So take a multivitamin and mineral pill everyday and look to improve your diet.
Look online for guides to foods which do this.