Many, many things in this world cannot be safely legislated.
Trying causes more issues than it solves.
This is a big problem with our current governing body.
You can consult experts on the subject to determine what issues are causing poor parenting, and using the current systems in place to protect children, with appropriate modifications, as well as all the other current systems in place, address those issues.
You cannot legislate the human mind, but you can modify the situation in which the human mind develops, and by improving that, improve the results.