KiDS-Legacy: consistency of cosmic shear measurements and joint cosmological constraints with external probes