foster care, or related services is subject to section 601, unless otherwise provided in this section. Any entity that receives Federal financial assistance to perform adoption or foster care placements or related services, or that contracts with an entity that receives Federal financial assistance for those services, except for a private agency when participating in the indirect funding program as described under subsection (c)(2)(B) or (d)(1), may not in the course of performing an adoption, foster care, or related service discriminate against a prospective parent or a child because of race, color, national origin, sex, sexual orientation, or gender identity. (1) An entity unlawfully discriminates against a prospective parent by— (A) denying to any qualified person equal access to or equal treatment during the adoption or foster care evaluation and placement process because of the race, color, national origin, sex, sexual orientation or gender identity of the qualified prospective adoptive or foster parent or of the child involved