[SOLVED] Grub not working after installation (previously ubuntu partition)

I have never used rEFInd so I don’t know if it is capable of booting both legacy and UEFI at the same time. So perhaps @2000 can help you better with that.

My suggestion at this point is to check if your Windows is still functional/bootable. You can see if you bring up bios boot menu and boot into Windows.

edit: It seems that rEFInd supports legacy boot as well but there is a bit more involved: https://rodsbooks.com/refind/using.html#boot_options