The legislation makes it a criminal offense to simply identify as gay and forces relatives to alert the police.