dark magic is generally outlawed under the law , although exceptions may be made for dark magic that is performed out of necessity in the course of shadowhunter business-for example , summoning a demon in order to interrogate it .