"It's not fair" is a value growing, not a complaint.
In one study, kids 4 to 7 turned down candy splits that gave them less. By 8, they turned down splits that gave them more, too. Fairness matters a lot at this age. Name the value under the complaint before you explain anything.
Two for the moment, two for the cookie count.
Skip: "Life isn't fair." It ends the talk and teaches nothing.
Skip: Counting every cookie forever. Even splits on small things, needs-based on big things.
Set it up once, then let the system do the arguing.
Fill in the blanks out loud.
Once there were two bunnies, their name and a sibling or friend, with one big snack.
"Not fair," said their name, when the other bunny got the bigger half.
Then the wind blew, and the little bunny's something flew away. their name helped get it back.
That night, their name gave away half of their half, and felt a feeling. That was fair, too.
If unfairness talk comes with a lot of anger, or one child often feels left out at home, a calm one-on-one talk helps. If it doesn't, mention it to your pediatrician.