an adviser to the court on some matter of law; usually someone who wants to influence the outcome of a lawsuit but is not a party to it
an adviser to the court on some matter of law who is not a party to the case; usually someone who wants to influence the outcome of a lawsuit involving matters of wide public interest