Do you lose points according to your rank or the points ?

I'm wondering if we lose points against another player (in 1 v 1) in according to the rank that the palyers have or according to the number of points each player has?
Also, in team vs team format, are the ranks/points of the teams averaged out when it comes to points? Or does the winning team members gets the points that the highest ranked member of the winning team would had got in winning 1 v 1 from the lowest rank member of the losing team?
I'm afraid I've worded this question very confusingly........so in simpler terms, How are the points calculated when a player/team wins from the opposing player/team?
Also, in team vs team format, are the ranks/points of the teams averaged out when it comes to points? Or does the winning team members gets the points that the highest ranked member of the winning team would had got in winning 1 v 1 from the lowest rank member of the losing team?
I'm afraid I've worded this question very confusingly........so in simpler terms, How are the points calculated when a player/team wins from the opposing player/team?
