Complex magnetic ground states and topological electronic phases of atomic spin chains on superconductors