Well legalities come from an agreement between mankind, what works, what doesn’t, consequences scientifically as well as morally. Now, personally, I do believe in God, but I’ve been blessed with a large dosage of common sense. Morals come from observations that have gone wrong, and have been written about to explore the cause and effects of such situations.