detention law