Swelling in legs can be due to many causes like pregnancy weight , anaemia , hypertension, dehydration, mineral deficiency or even dangerous causes like DVT . .
If it’s mild swelling kindly elevate your leg with pillows while sleeping . If it’s too severe , kindly get a physical consultation as any new symptom in pregnancy cannot be ignored . .
All the best