what is the main purpose of civil law