(Some fediverse instance even locally host images to avoid fetching images again and again.)
Now, if we assume that a simple link is “illegal”, even if it is not piracy (like in the case of LibreOffice above), then all the instances which created a local copy of this reply might be put in trouble.
The fediverse is fast in fediblocking users and instances which tolerate activities that may place most instances into legal issues.