sore legs?

All lastnight when I would get up to pee when I stood up it would feel like my legs are sore or if I just got a cramp & im stretching it out, I'm about to be 36 weeks tomorrow & I have no idea what this is