Well in the legal sense, if you commit a murder and are determined to be "legally insane" at the time of said murder, you would be directed to a mental health facility rather than prison. Ruling you "legally bipolar" or "legally depressed" isn't going to get you out of jail.