Root
مَّغْرَمٍ ← غَرِمَ
Maghram comes from Gharima.
غَرَام (Gharaam)
That which clings by necessity—torment, enduring evil, affliction, love, or passionate longing—from which one cannot disentangle.
غَرَامَة (Gharaamah)
Something owed and obligated to be paid, often against one’s will; used for a fine or financial penalty, and for ransom payments to free captives or prisoners of war—imposed, burdensome, and often resented.