The law says you can't have sex between an adult and a child. The law says people who have sufficient income must pay taxes to help support those that are poor. The law says that handicapped people get special parking places. Etc. Etc. All law is based on certain moral principles.
The question is whether it should be. Or if, instead, it should focus on protecting our rights. There's a lot of overlap between rights and morals but they aren't the same thing. RIghts are freedoms, morals are imperatives of behavior. Clarity on that distinction would do our nation a lot of good.