You asked:

is spinach a legume

No. A Spinach is not a legume.
Spinach
Spinach
Spinach

legume
legume
legume