New Zealand has the consumer guarantees act that requires companies to provide repairs or replacements for goods for a reasonable duration.
https://www.govt.nz/browse/consumer-rights-and-complaints/co...
I used this with my first MacBook when the trackpad stopped working outside the default period.
Rather than being based on a fixed period of time it’s based on the expected quality of the product- because Apple computers are a lot more expensive than competitors it’s assumed that Apple are selling a higher quality/more durable product that should last for a reasonable period of time.
Unfortunately Apple doesn’t have any NZ offices so I had to deal with Australian office that took several letters to convince them they needed to make the repair under New Zealand law.
In the end we negotiated and I got free replacement parts and service under a $100 service fee.