1. Measure the gap and height between the front door and the body.
2. If not as specified, loosen the door hinge installation bolts or the door lock striker installation screws, and reposition the door.
Clearance
a: 2.5-4.5 mm {0.10-0.18 in} b: -1.0-1.0 mm {-0.04-0.04 in} c: 4.0-8.0 mm {0.16-0.31 in}

3. Tighten the bolts or screws.
Trunk lid disassembly/assembly
Stay damper disposalMazda 6 Service Manual: Rear seat disassembly/assembly
4SD
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
5HB
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
...
Mazda 6 Service Manual: Dsc on-board diagnosis
On-Board Diagnostic (OBD) Test Description
(See ABS (ABS/TCS) ON-BOARD DIAGNOSIS)
DTC Table
PID/DATA Monitor Table
Active Command Modes Table
...