Legal compliance in the context of e-invoicing refers to the activities and practices of e-invoice processing by companies in a given country, carried out in accordance with local regulations.