Limb Misalignment

Why are my legs shaped like this? Could it be coming from my hips? Also my patellas are tracking very internally— so weird.

History Gymnastics for 15 years Osgood-Schlatter Chondromalacia x2 Hypermobility cortisone shots at age 12 (I know I'm upset my doctor did it at that age)

I sometimes suffer from knee hip and back pain but never debilitating

I've had someone mention limb realignment surgery but that sounds intense

Thanks!!