legal remedies for unlawful detention and discrimination