Where a person is in immigration detention under this Act, the person responsible for his or her immigration detention shall, at the request of the person in immigration detention, give to him or her application forms for a visa or afford to him or her all reasonable facilities for making a statutory declaration for the purposes of this Act or for obtaining legal advice or taking legal proceedings in relation to his or her immigration detention.