Hi there. You really need a medical evaluation and SOON. this could be a number of things. They call this edema or ascites and different things can cause it. Things on the list are kidney issues, circulatory issues, liver issues, congestive heart failure, etc. All of the nature that you need to find out what is going on and treat it. See doctor as soon as possible. Let us know what they say.
Bowel issues ARE often due to stress. I've never had bloating in my legs from that? I would not worry too much about it but mention it at your next physical/ well check appointment if it is still occurring. Glad the pain is better!