/* ==================== ROOT & TYPOGRAPHY ==================== */
:root {
    --primary-color: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #0066ff;
    --secondary-color: #00a3e0;
    --accent-color: #ff6b35;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-section: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}
/* ==================== HEADER ==================== */
header {
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.top-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--primary-color);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

@media (max-width: 992px) {
    .header-row {
        gap: 20px;
    }
}
.logo {
    height: 80px;
    width: 150px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 82, 204, 0.15), 0 2px 8px rgba(0, 82, 204, 0.08);
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.logo:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 24px rgba(0, 82, 204, 0.25), 0 3px 12px rgba(0, 82, 204, 0.15);
    filter: brightness(1.05) drop-shadow(0 2px 8px rgba(0, 82, 204, 0.2));
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
}
nav {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    padding: 8px 4px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* When on index, hide the text 'Home' and show active state on logo */
#nav-home.hidden-home {
    display: none;
}

#nav-logo {
    display: inline-flex;
    align-items: center;
}

/* Visual active indicator for logo (underline similar to nav links) */
#nav-logo.active::after {
    display: none;
}

@media (max-width: 992px) {
    nav {
        gap: 16px;
    }

    nav a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
}
/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}
.hero {
    background: #fff;
    padding: 64px 0 48px 0;
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
    box-shadow: 0 8px 32px rgba(35,25,66,0.05);
    margin-bottom: 36px;
}
.hero-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 44px;
    justify-content: space-between;
}
.hero-content > div {
    flex: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 18px;
    color: #4c3575;
}
.hero p {
    font-size: 1.35rem;
    margin-bottom: 36px;
    color: #54547a;
}
.cta-buttons {
    display: flex;
    gap: 18px;
}
.btn {
    padding: 16px 38px;
    border-radius: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(35,25,66,0.09);
    transition: background 0.25s, color 0.2s, transform 0.15s;
}
.btn.primary {
    background: linear-gradient(90deg, #786fa6, #5e548e);
    color: #fff;
    border: none;
}
.btn.secondary {
    background: #fff;
    color: #5e548e;
    border: 2px solid #5e548e;
}
.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(126,104,211,0.14);
}
.section,.section.light {
    border-radius: 28px;
    box-shadow: 0 3px 32px rgba(120,111,166,0.07);
    margin-bottom: 44px;
    padding: 76px 0 62px 0;
}
.section:last-of-type {
    margin-bottom: 0;
}
.section.light {
    background: #f8f5ff;
}
.steps {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.step {
    flex: 1 1 250px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(100,89,170,0.04);
    margin: 10px;
    border-radius: 24px;
    padding: 30px 20px 34px 20px;
    text-align: center;
}
.icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: #e0dbe6;
    font-size: 1.35rem;
    color: #5e548e;
    font-weight: 700;
}
.icon.qr:before {
    content: '\25A6'; /* Unicode for QR-like square */
    font-size: 2.3rem;
}
.icon.nfc:before {
    content: '\1F4F1'; /* Unicode for mobile phone symbol */
    font-size: 2.1rem;
}
.benefits-list {
    list-style: none;
    padding-left: 0;
}
.benefits-list li {
    margin-bottom: 18px;
    font-size: 1.11rem;
    padding-left: 1em;
    position: relative;
}
.benefits-list li:before {
    content: '\2714';
    color: #5e548e;
    font-weight: bold;
    position: absolute;
    left: 0;
}
footer {
    background: #261f33;
    color: #e3e0ef;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 34px 0 16px 0;
    font-size: 1.13rem;
    text-align: center;
    margin-top: 66px;
    border-top: 3.5px solid #a394dd;
}
.enhanced-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}
.hero-gradient {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(105deg,#786fa618 10%, #a594f950 70%, #fff 100%);
    z-index: 0;
    pointer-events: none;
}
.hero-content, .enhanced-hero .hero-content {
    position: relative;
    z-index: 1;
}
.hero .subtitle {
    font-size: 1.18rem;
    color: #595688;
    margin-bottom: 32px;
    margin-top: -10px;
}
.section-separator {
    margin: 0 auto 22px auto;
    height: 2.6px;
    width: 97vw;
    background: linear-gradient(90deg, #eee3ff 30%, #f4f4fb 100%);
    opacity: 0.33;
    border-radius: 4px;
}
.mission-wrapper {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
    margin-top: 36px;
}
.mission-block {
    background: #f4f1ff;
    border-radius: 22px;
    padding: 32px 26px 28px 26px;
    box-shadow: 0 2px 16px rgba(120,111,166,0.06);
    flex: 1 1 320px;
}
.mission-block h3 {
    color: #4c3575;
    margin-bottom: 11px;
}
.features-list {
    margin: 36px 0 0 0;
    padding-left: 0;
    list-style: none;
}
.features-list li {
    margin-bottom: 18px;
    position: relative;
    padding-left: 1.8em;
    font-size: 1.13rem;
}
.features-list li:before {
    content: '\2605';
    color: #786fa6;
    position: absolute;
    left: 0.5em;
    font-size: 1rem;
}
.use-cases-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.use-case {
    background: #eff1fa;
    border-radius: 20px;
    padding: 28px 20px 24px 20px;
    box-shadow: 0 1.5px 7px rgba(100,89,170,0.04);
    flex: 1 1 200px;
    min-width: 210px;
}
.testimonials-wrapper {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.testimonial {
    padding: 32px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    flex: 1 1 340px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-left-color: var(--primary-color);
    transition: var(--transition);
}
.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.testimonial h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.testimonial p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}
.testimonial-author {
    margin-top: 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}
.partners-wrapper {
    display: flex;
    align-items: center;
    gap: 46px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.partner-logo {
    width: 100px; height: 60px;
    object-fit: contain;
    filter: grayscale(0.9) brightness(1.25);
    border-radius: 14px;
    background: #f6efff;
    box-shadow: 0 1px 7px rgba(100,89,170,0.04);
    transition: filter 0.25s;
}
.partner-logo.placeholder {
    background: #ebe5fa;
    width: 98px;
    height: 58px;
    display: inline-block;
    border: 2.5px dashed #c3bad3;
}
.contact-info {
    margin-top: 2.5em;
}
.contact-row {
    margin-bottom: 0.9em;
    font-size: 1.13rem;
}
.social-media {
    margin-top: 8px;
}
.social-icon {
    font-family: 'FontAwesome', Arial, sans-serif; /* fallback for font icons */
    font-size: 1.5em;
    margin-right: 18px;
    color: #786fa6;
    text-decoration: none;
    display: inline-block;
    transition: color 0.19s, transform 0.10s;
}
.social-icon:hover {
    color: #4c3575;
    transform: scale(1.20) rotate(-3deg);
}
input, textarea, select {
    font-family: inherit;
    border-radius: 14px;
    border: 1.7px solid #ecebf8;
    padding: 13px;
    font-size: 1.05rem;
    margin-bottom: 13px;
    box-shadow: 0 1.5px 6px rgba(100,89,170,0.03);
    outline: none;
    transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
    border-color: #786fa6;
}
/* Terms & Privacy Policy & Careers sections */
#terms, #privacy, #careers {
    background: #fff8fe;
    border: 2.5px solid #ece6fd;
    border-radius: 22px;
    margin-top: 16px;
    box-shadow: 0 2px 14px rgba(120,111,166,0.06);
    padding: 44px 18px;
}
#terms h2, #privacy h2, #careers h2 {
    color: #704db1;
    letter-spacing: 0.012em;
    font-size: 1.56rem;
}
#terms p, #privacy p, #careers p {
    color: #584c7e;
    font-size: 1.07rem;
    font-weight: 500;
    line-height: 1.55;
}
.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(92deg,rgba(255,255,255,0.93) 0%, #efe0fa 100%);
    box-shadow: 0 7px 32px 1px rgba(120,111,166,0.10), 0 1.5px 0 #e6e1ee;
    border-bottom: 2.3px solid #ede8f7;
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
    transition: background .18s, box-shadow .18s, border-bottom .14s;
    animation: fadeDownHeader 0.52s cubic-bezier(.41,.04,.34,1) 0.06s both;
    overflow: visible;
}
@keyframes fadeDownHeader { from { opacity:0; transform:translateY(-22px);} to { opacity:1; transform:none; } }
.lang-select {
    display: flex;
    align-items: center;
    padding: 11px 32px;
    font-weight: 750;
    color: #6d4bb1;
    border-radius: 22px;
    background: linear-gradient(90deg,#f2eefd 70%, #ede7fa 100%);
    box-shadow: 0 1px 10px #786fa61f, 0 0 0 3px #a594f920;
    margin-left: clamp(5px,2vw,32px);
    cursor: pointer;
    font-size: 1.12em;
    gap: 13px;
    min-width: 24px;
    border: 2.1px solid #ede8f7;
    letter-spacing: .27em;
    transition: background 0.22s, color 0.14s, border 0.16s, box-shadow 0.2s;
    position: relative;
    z-index:1;
    flex-shrink: 1;
}
.lang-select:hover {
    background: linear-gradient(93deg,#a594f94d 0%, #f2eefd 75%);
    color: #4e36bc;
    border: 2.3px solid #ceb6ff;
    box-shadow: 0 3px 20px #786fa62a,0 0 0 5px #a594f92f;
}
.lang-icon { font-size: 1em; margin-left: 5px; color: #c1bcd6; }

.hero-section {
  min-height: 56vh;
  position: relative;
  padding: 0 0 44px 0;
  display: flex;
  align-items: center;
  background: #fff;
  --overflow-x: hidden;
}
.hero-gradient-bg {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 105%;
    background:
      radial-gradient(circle at 60% 38%, #a594f955 34%, transparent 72%),
      radial-gradient(circle at 100% 96%, #d6cfff 29%, transparent 82%),
      radial-gradient(circle at 0% 95%, #f7e0fc 19%, transparent 75%),
      linear-gradient(120deg, #e9e4f6 20%, #f8f5fb 100%);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}
.hero-flex {
  display: flex; flex-wrap: wrap; gap: 42px; align-items: center; position: relative; z-index: 1;
}
.hero-copy { flex: 1 1 340px; }
.hero-copy h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.34em;
  color: #3c3153;
}
.brand-gradient {
  background: linear-gradient(92deg, #8701e3 13%, #786fa6 56%, #3f3073 97%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 1.23rem;
  color: #6e6597;
  font-weight: 500;
  margin-bottom: 2em;
}
.hero-cta {
  display: flex; gap: 18px; align-items: center; margin-bottom: 15px;
}
.giant-cta {
  font-size: 1.19rem; padding: 18px 44px;
  background: linear-gradient(92deg, #786fa6 47%, #431de3 87%);
  color: #fff;
  box-shadow: 0 3px 18px #a594f948, 0 2px 8px #786fa677;
  border: none;
}
.info-cta {
  font-size: 1.13rem; padding: 18px 32px;
  background: #fff; color: #5e548e; border: 2px solid #786fa6;
  font-weight: 600;
}
.giant-cta, .info-cta {
  border-radius: 28px;
  transition: background 0.2s, color 0.17s, box-shadow .18s;
}
.giant-cta:hover, .giant-cta:focus {
  background: linear-gradient(88deg,#786fa6 0%, #8701e3 100%);
  color: #fff;
  box-shadow:0 5px 24px #786fa655;
}
.info-cta:hover, .info-cta:focus {
  background:#f6f3ff;
  color: #3f3073;
  border-color: #5e548e;
}
.hero-img-col { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-img-main {
  width: 300px; height: 180px; object-fit: contain; border-radius: 34px;
  background: #ffffff; box-shadow: 0 5px 40px #ffffff;
  border: 2px solid #ece4fe;
}

.featured-solutions-section {
    background: #faf8ff;
    padding: 62px 0 22px 0;
}
.section-title {
  text-align: left;
  font-size: 2.02rem;
  font-weight: 800;
  color: #5f4ea7;
  margin-bottom: 32px;
  letter-spacing: 0.013em;
}
.card-grid {
  display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between;
}
.feature-card {
  background: #fff;
  border-radius: 27px;
  box-shadow: 0 2.5px 20px #786fa624;
  padding: 40px 26px 34px 26px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 280px;
  display: flex; flex-direction: column; align-items: center;
  transition:
    background .15s,
    box-shadow .17s,
    transform .16s;
  cursor: pointer;
}
.feature-card:hover {
  box-shadow: 0 7px 28px #786fa645, 0 4px 18px #a594f928;
  transform: translateY(-6px) scale(1.04);
  background: #f7f2ff;
}
.card-icon {
  font-size: 2.2rem; margin-bottom: 18px; }
.card-title {
  font-size: 1.21rem;
  font-weight: 700;
  color: #4e37a4;
  margin-bottom: 12px;
}
.card-btn {
  margin-top: auto; margin-bottom: 7px; padding: 10px 22px;
  border-radius: 18px; font-weight:600; border:none;
  background:linear-gradient(92deg,#786fa6 30%, #431de3 100%); color:#fff; text-decoration:none;
  transition: background .18s, box-shadow .16s;
}
.card-btn:hover { background:linear-gradient(96deg, #a594f9 0%, #431de3 97%); box-shadow:0 2px 8px #786fa680; }

.industries-section {
    background: #fff;
    padding: 60px 0 30px 0;
}
.industry-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
}
.industry-card {
    background: linear-gradient(99deg, #f8f6ff 60%, #ebe5ff 100%);
    box-shadow: 0 1.5px 9px #7d75b642;
    border-radius: 19px;
    font-size: 1.23rem;
    font-weight: 700;
    padding: 29px 21px;
    color: #623bc6;
    flex: 1 1 120px;
    min-width: 124px;
    text-align: center;
    transition: box-shadow .17s, transform .18s, background .2s;
}
.industry-card:hover {
    box-shadow: 0 5px 22px #786fa633, 0 2px 8px #4e37a433;
    background: #f2e1fa;
    color: #431de3;
    transform: scale(1.048);
}
.company-highlight-section { background: #faf8ff; padding: 48px 0 44px 0; }
.company-highlights-row {
    display: flex; gap: 22px; flex-wrap: wrap;
    margin-top: 32px;
}
.highlight-card {
    background: #fff;
    box-shadow: 0 2px 12px #a594f92d;
    border-radius: 18px;
    padding: 32px 21px;
    flex: 1 1 170px;
    min-width: 170px;
    text-align: center;
    font-weight: 600;
    color: #5937ae;
}
.high-title {
  font-size: 1.17rem;
  color:#874cc4;
  font-weight:800;
  margin-bottom: 12px;
}
.high-desc {
  font-weight: 500;
  font-size: 1.08rem;
  color: #4c4086;
}

.site-footer {
    background: #231942;
    color: #e3e0ee;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    margin-top: 60px;
    padding: 0 0 26px 0;
    font-size: 1.13rem;
}
/* Footer typography: unify with site body font and size (ProgresSoft-like, keep Open Sans)
   - Use 14px (0.875rem) for footer body/links
   - Footer titles slightly larger/bolder for hierarchy
   - Link color: soft lavender (#cdbff9), hover -> white */

/* Normalize footer link rules: remove conflicting duplicates and set unified style */
.site-footer,
.footer-col,
.footer-bottom {
  font-family: inherit;
  font-size: 0.95rem; /* ~15px for better readability */
  line-height: 1.6;
}

/* Footer bottom section with copyright and legal links */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  white-space: nowrap;
}

/* RTL support for Arabic footer */
html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* Powered by section */
.footer-powered {
  text-align: center;
  padding: 1rem 0 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-powered p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.footer-powered a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-powered a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .footer-bottom {
    flex-direction: column;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-powered p {
    font-size: 0.8rem;
  }
}

.site-footer a,
.footer-col a,
.footer-flex a,
.footer-bottom a {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
  color: #d9d3f7; /* soft lavender - visible on dark footer */
  text-decoration: none;
  transition: color 0.12s ease, text-decoration 0.12s ease;
}

.site-footer a:visited,
.footer-col a:visited,
.footer-flex a:visited,
.footer-bottom a:visited {
  color: #c7bff0;
}

.site-footer a:hover,
.footer-col a:hover,
.footer-flex a:hover,
.footer-bottom a:hover,
.site-footer a:focus,
.footer-col a:focus,
.footer-flex a:focus,
.footer-bottom a:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* Ensure footer titles stand out consistently */
.footer-title {
  color: #bfa7f7;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Footer links (soft lavender, subtle hover to white) */
.site-footer a,
.footer-col a,
.footer-flex a,
.footer-bottom a {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: #ffffff !important; /* keep the forced white color */
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    justify-content: space-between;
    padding: 54px 0 24px 0;
}
.footer-col {
    min-width: 140px; flex:1;
    display:flex; flex-direction:column; gap:9px;
}
.footer-title {
    color: #a594f9;
    font-weight: 800;
    font-size: 1.01rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.4em;
}
.footer-about {
    font-size: 1.028rem;
    color: #d3cbfb;
    margin-top: 14px;
    margin-bottom: 9px;
    font-weight: 500;
    max-width: 200px;
}
.footer-logo-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 19px auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 18px #c2b3e6a0, 0 2px 12px #7e53e778;
    border: 3.2px solid #e3d2fa;
    position: relative;
    z-index: 3;
    transition: width 0.21s, height 0.19s, box-shadow .14s;
    overflow: hidden;
}
.footer-logo-svg svg {
    width: 82px;
    height: 82px;
    display: block;
}
@media (max-width:700px) {
    .footer-logo-svg {
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }
    .footer-logo-svg svg { width: 51px; height: 51px; }
}
@media (max-width:700px) {
    .footer-logo {
        width: 58px; height: 58px;
        min-width: 35px; min-height: 35px;
        max-width: 68px; max-height: 68px;
        margin-bottom: 11px;
    }
}
.social-col {
    align-items: flex-start;
}
.footer-socials {
    display: flex; gap: 12px; margin-top: 6px;
}
.footer-line {
    width: 100%; height: 2.5px;
    background: linear-gradient(90deg, #d7caee 40%, #a594f9 100%);
    opacity: 0.24;
    border-radius: 4px;
    margin-bottom: 12px;
}
.footer-bottom {
    color: #b4aedc;
    font-size: 1.03rem;
    text-align: center;
    padding-top: 6px;
}
.footer-lang {
    margin-top:16px; color:#dbbcff; font-size:1.07em;font-weight:700;
}
@media (max-width: 1100px) {
  .footer-flex { flex-wrap: wrap; gap:22px; }
}
@media (max-width: 920px) {
  .hero-flex, .card-grid, .industry-row, .company-highlights-row, .footer-flex {
    flex-direction: column;
    gap: 21px;
    align-items: stretch;
  }
  .hero-img-main { width: 160px; height: 140px; }
  .footer-logo { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .container { width:98%; }
  .hero-section, .featured-solutions-section, .industries-section, .company-highlight-section { padding-left:2px; padding-right:2px;}
  .footer-flex { gap: 9px; }
}
.card-icon-svg {
    width: 52px; height: 52px;
    display: block;
    margin: 0 auto 13px auto;
    filter: grayscale(0.18) contrast(1.4) brightness(1.02); /* neutral, professional */
    transition: filter 0.16s, transform 0.12s;
}
.feature-card:hover .card-icon-svg {
    filter: grayscale(0.06) brightness(1.24) drop-shadow(0 1px 4px #a594f93a);
    transform: scale(1.10) rotate(-3deg);
}
.industry-icon {
    width: 32px; height: 32px;
    vertical-align: middle;
    margin: 0 13px 0 0;
    filter: grayscale(0.32) brightness(1.15);
    display: inline-block;
}
.social-icon-img {
    width: 27px; height: 27px;
    margin-right: 8px;
    margin-bottom: 0;
    vertical-align: middle;
    filter: grayscale(0.16) brightness(1.14);
    border-radius: 6px;
    transition: filter 0.19s, transform 0.13s;
}
.footer-socials img.social-icon-img:hover {
    filter: brightness(1.38) drop-shadow(0 2px 8px #a594f965);
    transform: scale(1.10);
}
.footer-social-original {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 27px; height: 27px;
    border-radius: 50%;
    font-size: 1.14em;
    font-weight: bold;
    color: #fff;
    margin-right: 8px;
    background: #b8afda;
    transition: background 0.13s, box-shadow 0.13s, transform 0.13s;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 4px #786fa620;
}
.footer-social-original.facebook { background: #1877F3; }
.footer-social-original.facebook:after {
    content: 'f'; font-family: Arial, sans-serif; font-weight: 700; font-size: 1.06em;
}
.footer-social-original.instagram {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: radial-gradient(circle at 30% 25%, #fff 6%, transparent 7%), linear-gradient(135deg,#fd5d36 0%,#fcbe41 40%,#8b38e3 100%);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.footer-social-original.instagram:before {
    content: '';
    display: block;
    position: absolute;
    left: 7px; top: 7px;
    width: 13px; height: 13px;
    border-radius: 5px;
    border: 2.1px solid #fff;
    box-sizing: border-box;
    background: transparent;
}
.footer-social-original.instagram:after {
    content: '';
    display: block;
    position: absolute;
    right: 5px; top: 5px;
    width: 3.2px; height: 3.2px;
    background: #fff;
    border-radius: 50%;
}
.footer-social-original.linkedin {
    background: #0077b5;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.07em;
    letter-spacing: -.03em;
    justify-content:center;
    align-items:center;
    display: inline-flex;
}
.footer-social-original.linkedin:after {
    content: 'in';
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.12em;
    line-height: 1;
    letter-spacing: 0.01em;
    margin-top: -0.07em;
}
.footer-social-original:hover {
    filter: brightness(1.19) drop-shadow(0 2px 7px #a594f941);
    transform: scale(1.11) rotate(-3deg);
}
@media (max-width:600px) {
    .card-icon-svg { width: 38px; height: 38px; }
    .industry-icon { width: 24px; height: 24px; }
    .social-icon-img { width: 22px; height: 22px; }
}
@media (max-width: 800px) {
    .container { width: 99vw; }
    .logo { max-width: 60px; height: 31px; min-height: 18px; }
    nav a { font-size: .90rem; padding-left: 7px; padding-right: 7px; margin-left: 7px; }
    .lang-select { margin-left: 7px; padding: 5px 8px; }
}
@media (max-width: 540px) {
    .container { width: 100vw; }
    .header-row { padding-left: 0; padding-right: 0; }
    .logo { max-width: 44px; height: 23px; min-width: 13px; }
    nav { gap: 4px; }
    nav a { margin-left: 3px; padding: 7px 2vw 5px 2vw; font-size: .83rem; }
    .lang-select { min-width: 15px; font-size: .76em; }
}
@media (max-width: 400px) {
    nav a:nth-child(n+4) { display:none!important; }
}
.lang-switch {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 24px;
    padding: 10px 24px;
    border-radius: 31px;
    border: 2.2px solid #ede8f7;
    background: linear-gradient(90deg,#f2eefd 65%, #ede7fa 100%);
    box-shadow: 0 1.5px 11px #786fa61c, 0 0 0 4px #a594f916;
    font-size: 1.13em;
    font-weight: bold;
    color: #53408a;
    cursor: pointer;
    user-select: none;
    z-index: 200;
    transition: background .15s, border .17s;
    white-space: nowrap;
    flex-shrink: 1;
}
.lang-switch:focus-within, .lang-switch:hover {
    background: linear-gradient(92deg, #786fa640 15%, #f2eefd 90%);
    border-color: #cdbff9;
}
.lang-switch.open {
    background: linear-gradient(92deg, #786fa650 10%, #f2eefd 100%);
    border-color: #b9a4f2;
    box-shadow: 0 4px 18px #786fa630, 0 0 0 5px #b39be71c;
}
.lang-current {
    display: flex;
    align-items: center;
    font-size: 1.12em;
    font-weight: 800;
    gap: 9px;
}
.lang-caret { font-size: 1em; vertical-align: middle; margin-left: 6px; transition: color 0.13s; color: #a594f9; display: inline-block; }
.lang-switch:focus-within .lang-caret, .lang-switch:hover .lang-caret { color: #652aec; }
.lang-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0px;
    top: 110%;
    min-width: 180px;
    max-width: min(360px, calc(100vw - 24px));
    background: #fff;
    border: 1.8px solid #ede8f7;
    border-radius: 17px;
    box-shadow: 0 10px 26px #a594f932;
    z-index: 999;
    padding: 7px 0 7px 0;
    animation: fadeDownLang .23s cubic-bezier(.46,.03,.38,.93) both;
    overflow: hidden;
}
@keyframes fadeDownLang { from{opacity:0; transform:translateY(-13px);} to{opacity:1;transform:none;} }
.lang-switch:hover .lang-dropdown, .lang-switch:focus-within .lang-dropdown {
    display: flex;
}
.lang-switch.open .lang-dropdown { display: flex; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-switch.open .lang-caret { transition: transform .18s; }
.lang-item {
    display: flex; gap: 9px; align-items: center;
    padding: 10px 18px;
    font-size: 1.08em;
    min-height: 35px; border-radius: 11px;
    cursor: pointer;
    transition: background .13s, color .14s;
}
.lang-item:hover, .lang-item:focus {
    background: #ece7fb;
    color: #4e36bc;
    font-weight: 900;
}
.lang-flag {
    font-size: 1.19em;
    margin: 0 5px 0 0;
}
@media (max-width:800px) {
    .lang-switch { margin-left: 8px; padding: 8px 12px; font-size: .96em; gap: 8px; }
    .lang-current { font-size: 1em; gap: 6px; }
    .lang-dropdown { min-width: 58vw; top: 108%; right: 0; max-width: 92vw; }
}
@media (max-width:540px) {
    .lang-switch {
        width: auto;
        max-width: 94vw;
        margin: 6px auto 0 auto;
        padding: 9px 4vw;
        justify-content: center;
        flex-wrap: nowrap;
    }
    .lang-dropdown { right: 50%; left: auto; transform: translateX(50%); min-width: 74vw; max-width: 96vw; top: 106%; }
    .lang-item { padding: 12px 16px; font-size: 1.02em; }
    .lang-flag { font-size: 1.15em; }
}
.footer-col { position: relative; }
.about-bg-icon {
    position: absolute;
    left: 49%;
    top: 49%;
    transform: translate(-50%,-47%) scale(1.08);
    z-index: 0;
    opacity: 0.48;
    pointer-events: none;
    filter: drop-shadow(0 0 10px #ab99de) drop-shadow(0 2px 10px #7256bc36);
    user-select: none;
}
.footer-about {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 11px #fff8, 0 1.5px 2px #bbafdd55;
}
@media (max-width: 700px) {
    .about-bg-icon {
        width: 51px !important;
        height: 51px !important;
        left: 53%;
        top: 53%;
        opacity: 0.56;
    }
}
/* ==================== CONTENT PAGE OVERRIDES ==================== */
/* Override old purple theme styles with new blue theme */
.mission-wrapper {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 48px;
}
.mission-block {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    flex: 1 1 320px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.mission-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.mission-block h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}
.mission-block p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.features-list {
    margin: 20px 0 0 0;
    padding-left: 0;
    list-style: none;
}
.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.features-list li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 16px;
}
.testimonials-wrapper {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.testimonial {
    padding: 32px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    flex: 1 1 340px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-left-color: var(--primary-color);
    transition: var(--transition);
}
.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.testimonial h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}
.testimonial p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}
.testimonial-author {
    margin-top: 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }
p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
input[type="email"] {
    font-family: inherit;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 16px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}
input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}
@media (max-width: 992px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    .mission-wrapper,
    .testimonials-wrapper {
        gap: 24px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    .mission-block,
    .testimonial {
        padding: 24px;
    }
    .mission-wrapper,
    .testimonials-wrapper {
        flex-direction: column;
    }
}
/* ==================== PROGRESSOFT-STYLE LANGUAGE SWITCHER ==================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}
.lang-toggle:hover {
    border-color: var(--primary-color);
    background: var(--bg-section);
}
.lang-toggle:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.1);
}
.flag-icon {
    display: block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}
.lang-text {
    font-weight: 500;
    color: var(--text-primary);
}
.dropdown-arrow {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}
.lang-toggle:hover .dropdown-arrow {
    color: var(--primary-color);
}
.lang-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.lang-dropdown-wrapper.open .lang-dropdown-menu {
    display: block;
}
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
    cursor: pointer;
}
.lang-dropdown-item:hover {
    background: var(--bg-section);
}
.lang-dropdown-item.active {
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}
.lang-dropdown-item img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.lang-dropdown-item span {
    flex: 1;
}
/* Remove old lang-switch styles override */
.lang-switch {
    display: none !important;
}
@media (max-width: 768px) {
    .lang-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }
    .lang-text {
        display: none;
    }
    .lang-dropdown-menu {
        min-width: 160px;
    }
}
/* ==================== HOVER-BASED LANGUAGE SWITCHER ==================== */
/* Override click-based with hover-based like ProgressSoft */
.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper.open .lang-dropdown-menu {
    display: block;
}
.lang-dropdown-wrapper:hover .lang-toggle,
.lang-dropdown-wrapper.open .lang-toggle {
    border-color: var(--primary-color);
    background: var(--bg-section);
}
.lang-dropdown-wrapper:hover .dropdown-arrow,
.lang-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}
/* Smooth transition for dropdown appearance */
.lang-dropdown-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-8px);
}
.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper.open .lang-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Footer link color - simple override to ensure consistent white font color */
.site-footer a,
.footer-col a,
.footer-flex a,
.footer-bottom a {
  color: #ffffff !important;
}

/* Keep hover underline but keep color white */
.site-footer a:hover,
.footer-col a:hover,
.footer-flex a:hover,
.footer-bottom a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* ==================== RTL SUPPORT FOR ARABIC ==================== */
[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .container,
body.rtl .container {
    direction: rtl;
}

[dir="rtl"] .header-row,
body.rtl .header-row {
    flex-direction: row-reverse;
}

[dir="rtl"] nav,
body.rtl nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .sticky-header,
body.rtl .sticky-header {
    background: linear-gradient(88deg, #efe0fa 0%, rgba(255,255,255,0.93) 100%);
}

[dir="rtl"] .hero-flex,
body.rtl .hero-flex {
    flex-direction: row-reverse !important;
    gap: 42px !important;
}

[dir="rtl"] .hero-copy,
body.rtl .hero-copy {
    text-align: right;
    order: 2;
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .hero-cta,
body.rtl .hero-cta {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-img-col,
body.rtl .hero-img-col {
    justify-content: center;
    order: 1;
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .hero-gradient-bg,
body.rtl .hero-gradient-bg {
    background:
      radial-gradient(circle at 40% 38%, #a594f955 34%, transparent 72%),
      radial-gradient(circle at 0% 96%, #d6cfff 29%, transparent 82%),
      radial-gradient(circle at 100% 95%, #f7e0fc 19%, transparent 75%),
      linear-gradient(60deg, #f8f5fb 20%, #e9e4f6 100%);
}

[dir="rtl"] .card-grid,
body.rtl .card-grid {
    direction: rtl;
}

[dir="rtl"] .feature-card,
body.rtl .feature-card {
    text-align: right;
}

[dir="rtl"] .footer-flex,
body.rtl .footer-flex {
    direction: rtl;
}

[dir="rtl"] .footer-col,
body.rtl .footer-col {
    text-align: right;
}

[dir="rtl"] .top-bar .container,
body.rtl .top-bar .container {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .lang-dropdown-wrapper,
body.rtl .lang-dropdown-wrapper {
    margin-left: clamp(5px, 2vw, 32px);
    margin-right: 0;
}

[dir="rtl"] .lang-dropdown-menu,
body.rtl .lang-dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .company-highlights-row,
body.rtl .company-highlights-row {
    direction: rtl;
}

[dir="rtl"] .highlight-card,
body.rtl .highlight-card {
    text-align: right;
}

[dir="rtl"] .mission-wrapper,
body.rtl .mission-wrapper {
    direction: rtl;
}

[dir="rtl"] .mission-block,
body.rtl .mission-block {
    text-align: right;
}

[dir="rtl"] .testimonials-wrapper,
body.rtl .testimonials-wrapper {
    direction: rtl;
}

[dir="rtl"] .testimonial,
body.rtl .testimonial {
    text-align: right;
}

[dir="rtl"] .industry-row,
body.rtl .industry-row {
    direction: rtl;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] li,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl p,
body.rtl li {
    text-align: right;
}

[dir="rtl"] .section-title,
body.rtl .section-title {
    text-align: center;
}

/* Additional RTL fixes for nav links and lists */
[dir="rtl"] nav a,
body.rtl nav a {
    text-align: right;
}

[dir="rtl"] .top-bar a,
body.rtl .top-bar a {
    text-align: right;
}

[dir="rtl"] .features-list li,
body.rtl .features-list li {
    padding-left: 0;
    padding-right: 1.8em;
    text-align: right;
}

[dir="rtl"] .features-list li:before,
body.rtl .features-list li:before {
    left: auto;
    right: 0.5em;
}

[dir="rtl"] .benefits-list li,
body.rtl .benefits-list li {
    padding-left: 0;
    padding-right: 1em;
    text-align: right;
}

[dir="rtl"] .benefits-list li:before,
body.rtl .benefits-list li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .card-btn,
body.rtl .card-btn {
    text-align: center;
}

/* Legal Pages Styles */
.legal-page {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.legal-page .container {
    max-width: 900px;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
}

.legal-page .last-updated {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.legal-page h3 {
    font-size: 1.3rem;
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.legal-page strong {
    color: #2c3e50;
    font-weight: 600;
}

.legal-page a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-page a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Cookies Table Styles */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookies-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookies-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookies-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cookies-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cookies-table tbody tr:last-child td {
    border-bottom: none;
}

/* RTL Support for Legal Pages */
html[dir="rtl"] .legal-page h2,
body.rtl .legal-page h2 {
    border-left: none;
    border-right: 4px solid #667eea;
    padding-left: 0;
    padding-right: 1rem;
}

html[dir="rtl"] .legal-page ul,
html[dir="rtl"] .legal-page ol,
body.rtl .legal-page ul,
body.rtl .legal-page ol {
    margin: 1rem 2rem 1rem 0;
}

html[dir="rtl"] .cookies-table th,
body.rtl .cookies-table th {
    text-align: right;
}

html[dir="rtl"] .cookies-table td,
body.rtl .cookies-table td {
    text-align: right;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page .container {
        padding: 2rem 1.5rem;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-page h2 {
        font-size: 1.5rem;
    }

    .cookies-table {
        font-size: 0.9rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem 0.5rem;
    }
}
