legal foundations