Do girls need to shave their legs hair before puberty?

No. Nobody ever needs to shave anything. You can shave anything you like but it is never necessary. What body parts people choose to shave are culturally determined and those preferrances change over time.