A legend is the description of the types of features included in a map, usually displayed in the map layout.
The legend is always available in the Left panel and the legend items are shown only for visible vector layers.