Purchase: No age restriction to buy the physical/digital card.
Redeem & Use: Must be 13+ to create an Xbox Live account (Microsoft account). Under 18 requires parental consent via Microsoft Family Settings.
Gold/Game Pass Core subscription itself has no minimum age beyond the account requirement.