mental competency to contract — Legal Definition, Examples & Cases