When leveling a pure bread (non-multi-classed) Rogue, at 3rd level you can chose the Arcane Trickster Archetype; and you are only allowed to choose 1st level wizard spells.
You know three 1st-level wizard spells of your choice, two of which you must choose from the enchantment and illusion spells on the wizard spell list. The Spells Known column of the Arcane Trickster Spell casting table shows when you learn more wizard spells ‘of 1st level or higher’. Each of these spells must be an enchantment or illusion spell of your choice, and must be of a level for which you have spell slots. For instance, when you reach 7th level in this class, you can learn one new spell of 1st or 2nd level.
Per the PHB at 7th level you can only choose a 1st or 2nd level spell. There is no mention of being able to choose a 4th (or higher) level spell. The confusion I am having is in the wording much like this question:
What spells can an Arcane Trickster Rogue choose from when gaining levels?
"Higher Levels" is mentioned multiple times however it is not clear if they are referring to higher character levels or higher spell levels.
It states here:
Whenever you gain a level in this class, you can replace one of the wizard spells you know with another spell of your choice from the wizard spell list. The new spell must be of a level for which you have spell slots, and it must be an enchantment or illusion spell, unless you’re replacing the spell you gained at 3rd, 8th, 14th, or 20th level from any school of magic.
With no restrictions as to what spell level as long as it’s a Wizard spell.
My Question: What is the highest spell level I can choose at each level for a Rogue Arcane Trickster?