Subsection (1) shall not apply, where the processing is —
(a) necessary to protect the vital interests of the child or person lacking the legal capacity to consent;
(b) carried out for purposes of education, medical, or social care, and undertaken by or under the responsibility of a professional or similar service provider owing a duty of confidentiality; or
(c) necessary for proceedings before a court relating to the individual.