I have the lower leg twist set to zero to stop the seperate parts from twisting into each other so I think that might be a part of it
Other than that everything looks lined up to me. The bones attached to the legs are pistons btw.