“legacy / to leave behind” in Japanese is 遺, read i, yui (い, ゆい). It is a Grade 6 Kyōiku kanji, taught in year 6 of Japanese elementary school, and appears in words such as 遺産 (heritage).
What does 遺 mean?
古い遺跡を見学する。
Same sound, different character — the classic trap. Compare them side by side: