Illness is related to Depression. Depression is related to Psychological. 
Device is related to Case. Case is related to Legal. Legal is the opposite of Illegal. 
Illness <--RelatedTo--> Depression <--RelatedTo--> Psychological 
Device <--RelatedTo--> Case <--RelatedTo--> Legal <--Antonym--> Illegal 