I think you're supposed to lift your legs to above heart level for a few minutes everyday to prevent blood pooling
For me I sleep with compression socks and legs raised on a pillow! My husb also massages my legs every night before bed 😁
Gynae also said taking calcium tablets will help. Drink lots of water too!