These movements developed in response to historical discrimination, including criminal laws targeting same-sex relationships, employment restrictions, social exclusion, and cultural stigma.