Conformal geometry of null hexagons for Wilson loops and scattering amplitudes