legal process architecture