Heightened scrutiny is a legal standard used by courts to evaluate the constitutionality of laws or government actions that classify individuals based on certain characteristics, such as gender or legitimacy. This standard requires that the government demonstrate an important interest that is substantially related to the law or action in question, thus ensuring a more rigorous examination than the rational basis test, but not as stringent as strict scrutiny.