Dual topology in van der Waals-type superconductor Nb2S2C