legal doctrines