1. Loosen the door hinge installation bolts.
2. Adjust the gap and height difference to the standard range by moving the door back and forth, left and right.

a: 2.5―4.5 mm {0.10―0.17 in}
b: -1.0―1.0 mm {-0.039―0.039 in}
c: 2.5―4.5 mm {0.10―0.17 in}
d: -1.0―1.0 mm {-0.039―0.039 in}
e: 2.5―4.5 mm {0.10―0.17 in}
f: -1.0―1.0 mm {-0.039―0.039 in}
3. Tighten the bolts.
4. If the door does not open/close smoothly, adjust it by loosening the door lock striker installation screw.
Door Sash Film InstallationSunlight/Temperature Sensor
The climate control system measures
inside and outside temperatures, and
sunlight. It then sets temperatures inside
the passenger compartment accordingly.
CAUTION
Do not obstruct either sensor,
otherwise the climate control system
will not operate properly.
...
DSC Sensor Initialization Procedure
WARNING:
If the DSC sensor initialization procedure is not completed, the DSC will
not operate properly and it might cause an unexpected accident. Therefore, after
replacing or removing the DSC HU/CM or SAS control module, make sure to perform
the DSC sensor initialization procedure ...
Stop Vehicle in Safe Place Immediately
If any of the following warning lights turns on, the system may have a
malfunction. Stop the
vehicle in a safe place immediately and contact an Authorized Mazda Dealer.
...