It likely is legal. The BestBuy extended warranties work the same way. If BestBuy ultimately needs to replace your product, then your extended warranty is finished.
Extended warranties are totally different from original warranties.
Warranties on cars are much more highly regulated than service plans on consumer electronics.