Leg shots aren't any "better," there's arteries in there. Foot shots are better for not killing the guy, but they're also better for missing and having a ricochet kill an innocent bystander. And both are still AWDW at best, attempted/successful murder at worst.
If you're going to shoot (legally) it's because you or someone else's life is in immanent danger to the degree that if you don't shoot the guy someone else will die or have permanent injury as a result of his actions, aiming for his feet can be argued by prosecutors as you "knowing" your life itself wasn't in immediate danger, people have been convicted on that before. More importantly, the reason you're trained to shoot for center mass is A) Aim small miss small, you're more likely to actually hit center mass than a tiny moving foot and B) shots that hit center mass (with the appropriate ammo that you should be carrying for exactly this reason) are more likely to stay inside the attacker instead of over penetrating and endangering bystanders.
This situation would fall under the "protecting others" part, even having disarmed him, and would likely be covered by continuance of action. The shot would be legal.*
In any US state without a Duty to Retreat™, that does have Stand Your Ground®. Lord knows for AUS, idk their self defense laws at all.