inverse kinematic animation alignement of mouvement issue
First you can see that if you make an altG the armature is completely messed up in rest pose. So you need to correct all this (if you want pole targets in front of the knees in Pose mode by default, put there in front in Edit mode as well).

But first to make things cleaner I would align the bones on the axis with some ctrlN > Global +X axis.



Now select your lowerleg bones in Bone mode and in the IK constraint set their Pole Angle at 0°.



Now if you want the knee to bend more inwards, you need to move the IK Pole Target a bit inwards in Edit mode, pole targets are here for this purpose. You can also move the knees a bit inwards. When you'll switch to Pose mode it will already work better.