:root {
  --green: #1b8354;
  --footer: #074d31;
  --ink: #212529;
  --paper: #f8f8f8;
  --line: rgba(0, 0, 0, .1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.15 Cairo, Tahoma, sans-serif; }
a { color: var(--green); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #8fb9e1; outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 30px; }
.icon { width: 24px; height: 24px; fill: none; stroke: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { border-bottom: 1px solid #dedede; background: #f3f4f5; }
.topbar-content { display: flex; align-items: center; gap: 24px; min-height: 52px; font-size: 14px; color: #565656; }
.meta-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.meta-item .icon { color: #333; width: 23px; height: 23px; }
.header { background: #fff; border-bottom: 1px solid #e3e3e3; }
.header-content { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 320px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.navigation { display: flex; align-items: center; gap: 18px; }
.nav-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 6px; min-height: 48px; white-space: nowrap; color: #333; }
.nav-button:hover { color: var(--green); background: #f5faf7; }
.language .icon { width: 30px; height: 30px; }
main { min-height: 650px; padding: 50px 16px 110px; display: flex; justify-content: center; align-items: flex-start; }
.license-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 40px; width: 301px; max-width: 100%; }
.license-details { margin: 0; }
.field { display: grid; grid-template-columns: 40% minmax(0,1fr); align-items: last baseline; margin: 0; }
.field dt { font-weight: 600; line-height: 1.15; padding: 5px 0 5px 4px; }
.field dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: start; line-height: 1.15; }
.field dd[dir=ltr] { text-align: right; white-space: nowrap; font-size: 16px; }
.field .company { font-size: 16px; line-height: 1.15; }
.download-link { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 4px 16px; font-size: 14px; border-radius: 4px; color: var(--green); }
.download-link:hover { background: #edf6f1; text-decoration: underline; }
.footer-shell { background: var(--footer); color: #fff; }
.footer { padding-block: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; font-family: 'IBM Plex Sans Arabic', Cairo, sans-serif; }
.footer-section h2 { font-size: 18px; line-height: 32px; font-weight: 500; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #ffffff33; }
.footer-section ul { list-style: none; padding: 0; margin: 0 0 16px; }
.footer-section li { margin: 0 0 12px; }
.footer-section a { display: inline-block; color: #ffffffcc; font-size: 15.5px; line-height: 1.15; }
.footer-section a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-section.contact { grid-column: 1/-1; }
.socials { display: flex; gap: 10px; align-items: center; }
.socials a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #ffffffcc; border: 1px solid #ffffff44; padding: 4px; border-radius: 3px; }
.socials .icon { width: 20px; height: 20px; }
.socials a:hover { color: white; background: #ffffff18; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 48px; }
.copyright { margin: 0 0 14px; font-size: 14px; line-height: 1.9; }
.bottom-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bottom-links a { color: #fff; font-size: 14px; text-underline-offset: 3px; }
.bottom-links a:hover { text-decoration: underline; }
.footer-logo-link { display: block; width: 320px; max-width: 100%; flex-shrink: 0; }
.footer-logo { width: 100%; height: auto; }
@media (min-width:1500px) {
  main { min-height: 700px; }
  .footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-section.contact { grid-column: auto; }
}
@media (max-width:767px) {
  .container { padding-inline: 20px; }
  .topbar-content { gap: 12px; font-size: 12px; min-height: 46px; justify-content: center; flex-wrap: wrap; padding-block: 8px; }
  .meta-item { gap: 6px; }
  .meta-item .icon { width: 19px; height: 19px; }
  .header-content { padding-block: 17px; min-height: 128px; flex-direction: column; gap: 8px; }
  .brand { width: 280px; max-width: 100%; }
  .navigation { gap: 30px; }
  .nav-button { font-size: 14px; padding-block: 6px; min-height: 44px; }
  .language .icon { width: 25px; height: 25px; }
  main { min-height: 540px; padding-top: 36px; padding-bottom: 70px; }
  .license-card { padding: 36px 30px; }
  .footer { padding-block: 36px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
  .footer-section.contact { grid-column: auto; }
  .footer-section h2 { font-size: 17px; }
  .footer-section li { margin-bottom: 3px; }
  .footer-section a { font-size: 14px; line-height: 1.7; padding-block: 8px; min-height: 44px; }
  .socials a { width: 44px; height: 44px; padding: 10px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-logo-link { width: 260px; }
  .copyright { font-size: 13px; }
  .bottom-links { gap: 4px 18px; }
  .bottom-links a { line-height: 1.7; padding-block: 8px; min-height: 44px; }
}
@media (max-width:479px) {
  .topbar-content { gap: 6px 14px; }
  .meta-location { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-section h2 { margin-bottom: 9px; }
  .footer-section a { padding-block: 9px; }
  .footer-section.contact { grid-column: auto; }
  .footer-bottom { margin-top: 28px; }
  .footer-logo-link { width: 255px; }
  .license-card { padding: 34px 26px; }
}
@media (max-width:359px) {
  .container { padding-inline: 16px; }
  .license-card { padding: 30px 20px; }
  .brand { width: 260px; }
}
@media print {
  .topbar, .navigation, .footer-shell { display: none; }
  main { min-height: 0; padding: 30px; }
  .header-content { justify-content: center; }
  .license-card { width: 350px; }
}

/* English direction uses the existing page layout. */
html[dir=ltr] .field dt { padding: 5px 4px 5px 0; font-size: 13px; line-height: 1.4; }
html[dir=ltr] .field dd[dir=ltr] { text-align: left; }
html[dir=ltr] .footer-section h2, html[dir=ltr] .footer-section a { line-height: 1.6; }
