Detainee rights are legal protections afforded to individuals held in custody, ensuring humane treatment and due process regardless of the nature of their detention. These rights are grounded in international human rights law, aiming to prevent abuses such as torture, unlawful detention, and denial of legal representation.