You can log a court order and supporting documentation by clicking +Add in the Legal section of staff, student or guardian profiles. Using this feature, you can disable logging in for the guardian.
You can see more about how to log court orders here: Court Orders and stopping guardians from logging in
You can report on Court Orders using the Custom Report Writer. Just create a report about Students, Staff or Parents, Guardians and Contacts and add the Linked to Court Order field as a column or filter.