Modular structure and duality in conformal quantum field theory