how much of total legislation is never enforced? probably at least third

It's pointless without people caring.

People care when they are personally and noticeably harmed. And the court system provides for redress, when laws are broken. Very imperfectly, but it is there.

A substantial portion of that 2/3 of the law is never enforced because it's easier to just go ahead and obey, than to fend off class action lawsuits.

Another portion is actually irrelevant. The safety of my next airplane trip is not actually affected by how many barefoot people walk over a threshold.