(1) A person is not excused from giving information or producing a document under section 778 on the ground that the information or the production of the document might tend to incriminate the person or expose the person to a penalty.
(2) However—
(a) the information given or the document produced; or
(b) giving the information or producing the document; or
(c) any information, document or thing obtained as a direct or indirect consequence of giving the information or producing the document—
is not admissible in evidence against the person—
(d) in any civil proceedings; or
(e) in criminal proceedings other than proceedings for an offence against section 778(4) or section 783 or 784.