(1) Subject to the provisions of this section, nothing in this Part shall prevent a scheme from providing special treatment for women in connection with pregnancy or childbirth.
(2) Where a scheme contains a rule -
(a) which relates to continuing membership of, or the accrual of rights under, the scheme during any period of qualifying maternity absence in the case of a woman who -
(i) is, or
(ii) immediately before the commencement of such period, was,
an employee and which treats that woman in a manner other than that in which she would be treated under the scheme if she was not absent from work and was in receipt of remuneration from her employer during the period, or
(b) which requires the amount of any benefit payable under the scheme to or in respect of any such woman, to the extent that it falls to be determined by reference to her earnings in respect of a period which includes a period of qualifying maternity absence, to be determined other than it would so be determined if she
…