How does it work legally?

A:

PD politicians sign a Deed Poll with their electorate. PD representatives are also bound by the Software Terms and Conditions of the PD voting system.