A juvenile alleged to be delinquent may be detained only in a juvenile facility or such other suitable place as the Attorney General may designate. Whenever possible, detention shall be in a foster home or community based facility located in or near his home community. The Attorney General shall not cause any juvenile alleged to be delinquent to be detained or confined in any institution in which the juvenile has regular contact with adult persons convicted of a crime or awaiting trial on criminal charges. Insofar as possible, alleged delinquents shall be kept separate from adjudicated delinquents. Every juvenile in custody shall be provided with adequate food, heat, light, sanitary facilities, bedding, clothing, recreation, education, and medical care, including necessary psychiatric, psychological, or other care and treatment.