Right side
公 supplies the sound — gōng shifted to sòng through onset alternation, the same pattern that gives
颂 (sòng, praise) from the same phonetic.
公 also contributes a perfect semantic flavour: a lawsuit is taking a private grievance into the public realm for adjudication. Modern compounds:
诉讼 (litigation),
讼师 (legal pleader).