style legend outside of document