Assuming no leaks it sounds like air has gotten into the lines, has it been stored upright or on it's side recently? I'd try and burp it with the Shimano cup thing in the lever and pump the lever/tap the hoses and see if any bubbles come out, if there's more than minimal pad/rotor wear you may struggle to spread the pistons when it comes time to change them without releasing some of the extra fluid you'll have just put in, so use a bleed block if that's an issue.
Assuming no leaks it sounds like air has gotten into the lines, has it been stored upright or on it's side recently? I'd try and burp it with the Shimano cup thing in the lever and pump the lever/tap the hoses and see if any bubbles come out, if there's more than minimal pad/rotor wear you may struggle to spread the pistons when it comes time to change them without releasing some of the extra fluid you'll have just put in, so use a bleed block if that's an issue.