You have to create a set with elements being what you want the legend to state and also declare an element parameter in there. You also should add the color annotations to this set.
Note that I edited the CSS file to have background and stroke elements as well and I remove the .tag-mapv2 filter.