Dealing with Inverse Kinematics - End of "Leg" Moves the Entire Model
Go to the IK bone constraint and check the chain length. The default is 0, meaning that the whole chain is included. Set it instead to the number of bones in the leg. Here is the documentation.