That's nice. The folks who believe in legal positivism have a different point of view. And then some people think these things can both simultaneously be a basis. And there are 27(made up) different positions on the topic. Hence the field of study known as jurisprudence, where very smart people waste time sitting around debating this stuff forever.