Quoting from the case file: how intertextual practices shape discourse at various stages in the legal trajectory