Finite-size scaling of classical long-ranged Ising chains and the criticality of dissipative quantum impurity models.