Understanding valve seals

Like any other job you need 2 very important things, Good knowledge about what you are working on and the proper tool(s).
Probably covered in the Mazda factory service manual just like most manufacturers.