Secondly , if the law categorizes on the basis of gender , legitimacy or similar quasi-suspect classifications , intermediate scrutiny is applied -- the law is unconstitutional .
Law is substantially related to an important government interest .
Secondly , if the law categorizes on the basis of gender , legitimacy or similar quasi-suspect classifications , intermediate scrutiny is applied -- the law is unconstitutional unless it is substantially related to an important government interest .