/* ==========================================================================
   Footer (.foot2), right-to-left fixes for the Arabic pages.
   Loads after css/teradix-rtl.css. The base (section 11) already mirrors the
   columns, the primary button block, link underlines, social hover, the
   reassurance tag padding and the side of the scene. Only what the base does
   not cover lives here. Every selector starts with [dir="rtl"].
   ========================================================================== */

/* Phone: the English footer sets each link list in two columns inside a
   two-column grid, which leaves about 75px per link. Arabic labels are longer
   ("تقنية المعلومات ومسؤولو الـERP") and broke over three or four lines, so
   each list runs as a single column and every link stays on one or two lines. */
@media(max-width:640px){
  [dir="rtl"] .foot2 .f2-list,
  [dir="rtl"] .foot2--v2 .f2-list{grid-template-columns:minmax(0,1fr);gap:11px}
}

/* Link labels wrap as whole words and balance when they do wrap. */
[dir="rtl"] .foot2 .f2-link{text-wrap:balance}

/* The reassurance tag: two Arabic lines need more air than the Latin 1.35. */
[dir="rtl"] .foot2 .f2-safe{line-height:1.6}

/* The copyright line mixes a Latin year with Arabic: keep it reading from
   the right with the year in place. */
[dir="rtl"] .foot2 .f2-copy{unicode-bidi:plaintext;text-align:start}
