You'll need to add another feature for your Spellcasting ability.
You'll need 9 options in the feature, 3 for each ability modifier with the correct Legacy as a pre-req.
Under each of those 9 options, you'll grant the specific spells at the appropriate levels.
Also, it's apparently against the rules to publish UA material, so expect those to get taken down once a mod gets a chance.
Edit: I also strongly advise you to add the Background benefits to your races. This will minimize the amount your players have to memorize. Just prepend those features with "Background: "
You'll need to add another feature for your Spellcasting ability.
You'll need 9 options in the feature, 3 for each ability modifier with the correct Legacy as a pre-req.
Under each of those 9 options, you'll grant the specific spells at the appropriate levels.
Also, it's apparently against the rules to publish UA material, so expect those to get taken down once a mod gets a chance.
Edit: I also strongly advise you to add the Background benefits to your races. This will minimize the amount your players have to memorize. Just prepend those features with "Background: "