; and (III) that provides the care for not more than six children in foster care. (B) State flexibility The number of foster children that may be cared for in a home under subparagraph (A) may exceed the numerical limitation in subparagraph (A)(ii)(III), at the option of the State, for any of the following reasons: (i) To allow a parenting youth in foster care to remain with the child of the parenting youth. (ii) To allow siblings to remain together. (iii) To allow a child with an established meaningful relationship with the family to remain with the family. (iv) To allow a family with special training or skills to provide care to a child who has a severe disability. (C) Rule of construction Subparagraph (A) shall not be construed as prohibiting a foster parent from renting the home in which the parent cares for a foster child placed in the parent’s care. (2) Child-care institution (A) In general The term child-care institution means a private child-care institution, or a public child-care institution which accommodates no more than 25 children, which is licensed by the State in which it is situated or has been approved by the agency of the State responsible for licensing or approval of institutions of this type as meeting the standards established for the licensing. (B) Supervised settings In the case of a child who has attained 18 years of age, the term shall include a supervised setting in which the individual is living independently, in accordance with such conditions as the Secretary shall establish in regulations. (C) Exclusions The term shall not include detention facilities, forestry camps, training schools, or any other facility operated primarily for the detention of children who are determined to be delinquent. . (c) Training for state judges, attorneys, and other legal personnel in child welfare cases Section 438(b)(1) of such Act ( 42 U.S.C. 629h(b)(1) ) is amended in the matter preceding subparagraph (A) by inserting shall provide for the training of judges, attorneys, and other legal personnel in