Is this legal in Greece?
Yes. Holding a place in a public queue for someone else is entirely lawful. The person being represented still needs to be present when their turn comes (for appointments that require physical presence). The queuer simply saves the wait time.