Access to the law and to court in pretrial detention