You need to refresh on "law." Here's a summary.

- All true law comes from God. 
- Law must serve the true good & the will of God; if not, then it's not a just & true law. 
- Law is a great good; it helps us get closer to God & to the will of God.
- The highest law is called "Eternal Law" (literally the interior order and criteria that exist in the mind of God); it is not directly accessible or fully knowable by us; our brains are deficient.
-The next lower forms of law are the laws of nature and the natural law and what's called "divine positive law" (or revealed law).
-The laws of nature apply to material matter; the natural law applies to behavior.
- Divine positive law is what God positively told us in Scripture; it is complementary to and reinforcing with natural law. There is no conflict.
-The next lower levels of law are "positive law" (what humans have written, declared: civil law, canon law).

- "Positive law" (civil or canon) not consistent with natural law is not law.