How does marriage as a sacrament differ from marriage as a legal contract?