TINA that 12.5% in from the edge is the correct limit, but anybody inspecting a tyre will usually only check the centre, unless there is a reason to check nearer the edges.
The comment about main circumferential grooves, is because that is where you measure the tread depth. Any grooves across the tyre are rarely at full depth, and don’t count for tread depth.
If you’re ever in any doubt as to where it should be measured, look for where the tread wear indicators are moulded into the main tread.
Out of shape is fairly specific, and should only apply to obvious tread deformities, which would indicate the tyre carcass is failing. Uneven wear isn’t out of shape.