Consider the sequence of numbers defined by $a_1 = 7$, $a_2 = 7^7$, and in general, $a_n = 7^{a_{n-1}}$ for $n \ge 2$. Determine the last digit of the decimal representation of $a_{2021}$.

Let's think step by step and output the final answer within \boxed{}.
user