Hi, your clinical history needs further evaluation and investigations to rule out underlying medical condition.
It could be due to heart,
kidney,
liver disease, weakness in leg veins, inadequate lymphatic drainage system,
Edema can be a side effect of some medications, including:
High blood pressure medications.
Consult Physician....