There's a law against that. There's currently no law against making a website so fun that kids will waste all their time playing with it if their parents let them.
I'm not saying I'm against passing laws on this subject. My point is that no such laws currently exist, but a bunch of lawyers and judges just decided Facebook owes $17B for breaking these non-existent laws anyway.