It is legal because I wish it.
Sex education is legitimate in that girls cannot be taught soon enough how children don't come into the world.