Laws and guidelines for local detention facilities