The Include borders setting determines whether the border is displayed around the legend and, if selected, the border color.

Your options are:

If selected, You also have the option to set the border color

For more information, see Border.