obtain fresh macos for old iMac?
I have a "late 2013" iMac I'd like to give to a friend to sell. Problem is, it has my name as the admin, and probably elsewhere even after I've deleted (& copied over*) all documents, etc. I want to set up the software as-if new, but cannot find an installer (as opposed to an updater) online; following the advice/links at How to download and install macOS - Apple Support only "updated" Mojave 14.3 to ... Mojave 14.3 - still with my name.
The App Store, even when accessed with this same ten-year-old Mac, only offers Ventura and Sonoma (which won't run on this model), and snooping around non-Apple sites has so far given me only an "installer" which didn't work (but at least passed a Norton virus scan).
Any suggestions?
*The internal drive reports itself as having 1 terabyte of capacity. I created a 500MB file of nonsense characters in TextEdit, duplicated it 19 times to fill a folder with 10GB, duplicated that 9 times for 100GB, and so on - and kept going until I had, theoretically, filled the drive with >1TB (not counting the System software, Apple's apps, etc). "Get Info" reported I had ~299GB available at the start of this process - and at the end. What the Foxtrot???
iMac 27″, macOS 10.14