The Foundations of Legal Liability