/* ===== AEG HUB — شروط الخدمة (ثنائية اللغة) ===== */
body.page-id-2138{background:#F4F8FB!important;overflow-x:hidden}
body.page-id-2138 .ast-container,body.page-id-2138 .entry-content,body.page-id-2138 #content,body.page-id-2138 .ast-article-single{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.page-id-2138 .terms-app{width:100vw!important;max-width:100vw!important;margin-right:calc(50% - 50vw)!important;margin-left:calc(50% - 50vw)!important}
body.page-id-2138 header#masthead,body.page-id-2138 footer#colophon{display:none!important}
body.page-id-2138 .entry-header,body.page-id-2138 .ast-breadcrumbs-wrapper{display:none!important}
.terms-app{--cyan:#0E9FBC;--cyan2:#3EC6E2;--green:#0FA968;--green2:#3ACB8F;--coral:#F97066;--r:8px;
--bg:#F4F8FB;--bg2:#EAF2F7;--card:#FFFFFF;--line:#DFE9F0;--ink:#14202C;--mut:#52677A;--soft:#E4F4F9;
--txt-cyan:#086F88;--grad1:#0B7EA0;--grad2:#0C8A5C;
direction:rtl;text-align:right;color-scheme:light;font-family:'IBM Plex Sans Arabic','IBM Plex Sans',system-ui,sans-serif;
background:var(--bg);color:var(--ink);line-height:1.8;font-size:16px;min-height:100vh;-webkit-font-smoothing:antialiased;transition:background .35s,color .35s}
.terms-app[data-theme="dark"]{--bg:#0A1119;--bg2:#0F1A25;--card:#11202D;--line:#1E3243;--ink:#EAF2F8;--mut:#96ABBC;--soft:#0E2230;--txt-cyan:#5FD3EC;--grad1:#3EC6E2;--grad2:#3ACB8F;color-scheme:dark}
.terms-app h1,.terms-app h2,.terms-app h3,.terms-app b,.terms-app strong{color:var(--ink)}
.terms-app *{box-sizing:border-box;margin:0;padding:0}
.terms-app a{text-decoration:none;color:inherit}
.terms-app button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
.terms-app img{max-width:100%;height:auto}
.terms-app svg{display:block}
.terms-app .wrap{max-width:840px;margin:0 auto;padding-inline:22px}
.terms-app .skip{position:absolute;inset-inline-start:-999px;top:8px;background:var(--cyan);color:#fff;padding:8px 16px;border-radius:var(--r);z-index:100}
.terms-app .skip:focus{inset-inline-start:8px}
.terms-app a:focus-visible,.terms-app button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:6px}
/* Header */
.terms-app .thdr{position:fixed;inset-inline:0;top:0;z-index:60;background:color-mix(in srgb,var(--bg) 84%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid transparent;transition:box-shadow .25s,border-color .25s,background .35s}
.terms-app .thdr.scrolled{border-bottom-color:var(--line);box-shadow:0 6px 24px rgba(20,40,60,.08)}
.terms-app .thdr-in{display:flex;align-items:center;gap:14px;height:64px}
.terms-app .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16.5px;color:var(--ink)}
.terms-app .brand img{height:24px;width:auto}
.terms-app .brand small{display:block;font-size:11px;color:var(--mut);font-weight:500;line-height:1.4}
.terms-app .ctrl{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.terms-app .hbtn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:var(--r);font-size:13.5px;font-weight:600;background:var(--card);border:1px solid var(--line);color:var(--ink);transition:.2s}
.terms-app .hbtn:hover{border-color:var(--cyan);color:var(--txt-cyan);transform:translateY(-1px)}
.terms-app .hbtn svg{width:16px;height:16px}
.terms-app .theme{width:38px;height:38px;border-radius:var(--r);border:1px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:center;color:var(--mut);transition:.2s}
.terms-app .theme:hover{color:var(--txt-cyan);border-color:var(--cyan);transform:translateY(-1px) rotate(15deg)}
.terms-app .theme svg{width:18px;height:18px}
.terms-app .theme .moon{display:none}
.terms-app[data-theme="dark"] .theme .sun{display:none}
.terms-app[data-theme="dark"] .theme .moon{display:block}
/* Hero */
.terms-app .hero{position:relative;padding:126px 0 46px;overflow:hidden;text-align:center}
.terms-app .blob{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;opacity:.5;z-index:0}
.terms-app .blob.b1{width:520px;height:520px;background:rgba(14,159,188,.16);top:-210px;inset-inline-end:-140px}
.terms-app .blob.b2{width:460px;height:460px;background:rgba(15,169,104,.13);bottom:-230px;inset-inline-start:-120px}
.terms-app[data-theme="dark"] .blob.b1{background:rgba(14,159,188,.22)}
.terms-app[data-theme="dark"] .blob.b2{background:rgba(15,169,104,.18)}
.terms-app .hero-in{position:relative;z-index:1}
.terms-app .pill{display:inline-flex;align-items:center;gap:8px;background:var(--soft);border:1px solid rgba(14,159,188,.32);color:var(--txt-cyan);font-size:13px;font-weight:600;padding:7px 16px;border-radius:99px;margin-bottom:22px}
.terms-app .pill svg{width:15px;height:15px}
.terms-app .hero h1{font-size:clamp(30px,4.6vw,48px);font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
.terms-app .hero h1 em{font-style:normal;background:linear-gradient(120deg,var(--grad1),var(--grad2));-webkit-background-clip:text;background-clip:text;color:transparent}
.terms-app .hero p{color:var(--mut);font-size:16.5px;max-width:660px;margin:0 auto;line-height:1.9}
/* TOC */
.terms-app .toc{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px 26px;margin:20px 0 32px;position:relative;z-index:1}
.terms-app .toc-head{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15.5px;margin-bottom:16px;color:var(--ink)}
.terms-app .toc-head svg{width:19px;height:19px;color:var(--txt-cyan)}
.terms-app .toc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.terms-app .toc-grid a{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:var(--r);font-size:13.5px;font-weight:500;color:var(--mut);border:1px solid transparent;transition:.18s}
.terms-app .toc-grid a:hover{background:var(--soft);color:var(--txt-cyan);border-color:rgba(14,159,188,.3)}
.terms-app .toc-grid a i{font-style:normal;font-size:11.5px;font-weight:700;color:var(--txt-cyan);opacity:.7;min-width:20px}
/* Sections */
.terms-app .terms{display:flex;flex-direction:column;gap:18px;padding-bottom:8px}
.terms-app .tcard{position:relative;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:30px 32px;overflow:hidden;scroll-margin-top:92px;transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s,border-color .3s}
.terms-app .tcard:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(20,50,75,.1);border-color:rgba(14,159,188,.45)}
.terms-app .tcard::before{content:'';position:absolute;top:0;inset-inline-start:32px;height:3px;width:64px;border-radius:3px;background:linear-gradient(90deg,var(--cyan),var(--green))}
.terms-app .tno{position:absolute;top:6px;inset-inline-end:20px;font-size:54px;font-weight:800;line-height:1;color:transparent;-webkit-text-stroke:1.2px rgba(14,159,188,.3);pointer-events:none;user-select:none}
.terms-app .trow{display:flex;gap:20px;align-items:flex-start}
.terms-app .tic{flex:none;width:54px;height:54px;border-radius:15px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--cyan),var(--cyan2));box-shadow:0 10px 22px rgba(14,159,188,.32);position:relative}
.terms-app .tcard:nth-child(even) .tic{background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 10px 22px rgba(15,169,104,.3)}
.terms-app .tic::after{content:'';position:absolute;inset:-5px;border-radius:19px;border:1.5px dashed currentColor;opacity:.25}
.terms-app .tic svg{width:25px;height:25px}
.terms-app .tbody{flex:1;min-width:0}
.terms-app .tcard h2{font-size:19.5px;font-weight:700;margin-bottom:10px}
.terms-app .tcard p{color:var(--mut);font-size:14.8px;margin-bottom:8px}
.terms-app .tcard p:last-child{margin-bottom:0}
.terms-app .tcard ul{list-style:none;display:flex;flex-direction:column;gap:7px;margin:6px 0 8px}
.terms-app .tcard ul li{display:flex;gap:10px;align-items:flex-start;color:var(--mut);font-size:14.8px}
.terms-app .tcard ul li::before{content:'';flex:none;width:17px;height:17px;margin-top:5px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9FBC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat}
.terms-app .tcard ul li svg{flex:none;width:17px;height:17px;color:var(--txt-cyan);margin-top:5px}
.terms-app .tcard ul li:last-child{margin-bottom:0}
/* Contact */
.terms-app .contact{text-align:center;padding:40px 32px;background:linear-gradient(150deg,var(--card) 45%,var(--bg2))}
.terms-app .contact .trow{flex-direction:column;align-items:center;gap:16px}
.terms-app .contact .tic{margin-inline:auto}
.terms-app .contact .tbody{text-align:center}
.terms-app .contact p{max-width:460px;margin-inline:auto}
.terms-app .contact .tno{display:none}
.terms-app .mailbtn{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:13px 28px;border-radius:99px;font-weight:600;font-size:15px;color:#fff;background:linear-gradient(135deg,var(--cyan),var(--green));box-shadow:0 10px 26px rgba(14,159,188,.32);transition:.25s}
.terms-app .mailbtn:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(14,159,188,.45)}
.terms-app .mailbtn svg{width:18px;height:18px}
/* Footer */
.terms-app .foot{border-top:1px solid var(--line);margin-top:34px;padding:30px 0 40px}
.terms-app .foot-in{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--mut)}
.terms-app .foot .brand{font-size:14px}
.terms-app .foot .brand img{height:20px}
.terms-app .foot .f-links{display:flex;gap:18px}
.terms-app .foot .f-links a{transition:.18s}
.terms-app .foot .f-links a:hover{color:var(--txt-cyan)}
/* Back to top */
.terms-app .totop{position:fixed;bottom:26px;inset-inline-start:26px;z-index:50;width:44px;height:44px;border-radius:99px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--cyan),var(--green));box-shadow:0 10px 24px rgba(14,159,188,.35);opacity:0;visibility:hidden;transform:translateY(12px);transition:.3s}
.terms-app .totop.show{opacity:1;visibility:visible;transform:none}
.terms-app .totop svg{width:20px;height:20px}
.terms-app .totop:hover{transform:translateY(-2px)}
/* Reveal */
.terms-app .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.3,1) var(--d,0s),transform .7s cubic-bezier(.2,.7,.3,1) var(--d,0s)}
.terms-app .reveal.in{opacity:1;transform:none}
@media (max-width:720px){
.terms-app .toc-grid{grid-template-columns:1fr}
.terms-app .hero{padding:108px 0 38px}
.terms-app .trow{flex-direction:column;gap:14px}
.terms-app .tic{width:48px;height:48px;border-radius:13px}
.terms-app .tic svg{width:22px;height:22px}
.terms-app .tic::after{border-radius:17px}
.terms-app .tcard{padding:26px 22px}
.terms-app .tcard::before{inset-inline-start:22px}
.terms-app .hbtn span{display:none}
.terms-app .hbtn{padding:9px 12px}
}
@media (prefers-reduced-motion:reduce){
.terms-app *{animation:none!important;transition:none!important}
.terms-app .reveal{opacity:1;transform:none}
}
.terms-app .lang-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:99px;font-size:13px;font-weight:600;color:var(--mut);background:var(--card);border:1px solid var(--line);transition:.2s;cursor:pointer;font-family:inherit}
.terms-app .lang-btn:hover{color:var(--txt-cyan);border-color:var(--cyan);transform:translateY(-1px)}
.terms-app .lang-btn svg{width:15px;height:15px;flex:none}
.terms-app[dir="ltr"]{direction:ltr;text-align:left}
تخطي إلى المحتوى
وثيقة قانونية
شروط الخدمة
مرحبًا بكم في موقع AEG HUB. يرجى قراءة هذه الشروط والأحكام بعناية قبل استخدام موقعنا أو خدماتنا.
01قبول الشروط
باستخدامك لموقع AEG HUB أو أي من خدماتنا، فإنك توافق على الالتزام بهذه الشروط والأحكام. إذا كنت تستخدم الموقع أو الخدمات نيابة عن شركة أو مؤسسة، فإنك تؤكد أن لديك السلطة القانونية للالتزام بهذه الشروط نيابة عن تلك الجهة.
02الخدمات المقدمة
نقدم في AEG HUB مجموعة من الخدمات الرقمية، بما في ذلك:
- تصميم محتوى وسائل التواصل الاجتماعي.
- تطوير حلول الذكاء الاصطناعي.
- أتمتة العمليات.
- إنشاء روبوتات الدردشة (شات بوت).
نحتفظ بالحق في تعديل أو تعليق أو إيقاف أي خدمة دون إشعار مسبق.
03استخدام الموقع
عند استخدامك لموقع AEG HUB، فإنك توافق على:
- عدم استخدام الموقع لأي غرض غير قانوني أو غير مصرح به.
- عدم محاولة الوصول غير المصرح به إلى أي جزء من الموقع أو أنظمته.
- عدم إعاقة أو تعطيل عمل الموقع أو الخدمات.
- عدم استخدام أي برامج ضارة أو أدوات قد تؤثر على أمان الموقع أو تجربة المستخدمين الآخرين.
04الحسابات والمعلومات الشخصية
إذا قمت بإنشاء حساب على موقعنا، فإنك تتحمل مسؤولية الحفاظ على سرية معلومات الحساب وكلمة المرور. أنت توافق على إبلاغنا فورًا في حالة أي استخدام غير مصرح به لحسابك.
نحن نلتزم بحماية معلوماتك الشخصية وفقًا لسياسة الخصوصية الخاصة بنا.
05الملكية الفكرية
جميع المحتويات الموجودة على موقع AEG HUB، بما في ذلك النصوص، الرسومات، الشعارات، والبرمجيات، هي ملك لنا أو لشركائنا ومحمية بموجب قوانين الملكية الفكرية. لا يُسمح لك بنسخ، تعديل، توزيع، أو استخدام أي من هذه المحتويات دون إذن كتابي منا.
06الدفع والفوترة
إذا كنت تستخدم خدمات مدفوعة، فإنك توافق على:
- تقديم معلومات دقيقة وكاملة للدفع.
- الالتزام بجميع الشروط المالية المحددة في العقد أو الاتفاقية.
- تحمل أي رسوم أو ضرائب إضافية قد تنطبق على الخدمات.
07الإلغاء والمبالغ المستردة
- يحق لك إلغاء الخدمات وفقًا للشروط المحددة في العقد أو الاتفاقية.
- قد يتم تطبيق سياسات استرداد محددة بناءً على نوع الخدمة المقدمة. يرجى مراجعة التفاصيل مع فريق الدعم.
08المسؤولية
- نحرص على تقديم خدمات عالية الجودة، ولكننا لا نضمن أن تكون الخدمات خالية من الأخطاء أو العيوب.
- لن نكون مسؤولين عن أي أضرار مباشرة أو غير مباشرة ناتجة عن استخدامك للموقع أو الخدمات.
09التعديلات على الشروط
نحتفظ بالحق في تعديل هذه الشروط والأحكام في أي وقت. سيتم نشر أي تغييرات على هذه الصفحة، ويُعتبر استمرارك في استخدام الموقع أو الخدمات موافقة على التعديلات.
10القانون الحاكم
هذه الشروط والأحكام تحكمها وتُفسر وفقًا لقوانين دولة الإمارات العربية المتحدة. أي نزاعات تنشأ عن استخدام الموقع أو الخدمات ستخضع للاختصاص الحصري للمحاكم في دولة الإمارات العربية المتحدة.
11التواصل معنا
إذا كانت لديك أي أسئلة أو استفسارات حول شروط الخدمة، يرجى التواصل معنا عبر:
info@aeghub.com
(function(){
"use strict";
var root=document.querySelector('.terms-app');
if(!root){return;}
var KEY='aeg-hub-theme';
function syncBody(){var bg=getComputedStyle(root).getPropertyValue('--bg').trim();if(bg){document.body.style.setProperty('background',bg,'important');}}
function apply(t){root.setAttribute('data-theme',t);syncBody();try{localStorage.setItem(KEY,t);}catch(e){}}
var saved=null;try{saved=localStorage.getItem(KEY);}catch(e){}
var t=saved||(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light');
apply(t);
var tb=root.querySelector('.theme');
if(tb){tb.addEventListener('click',function(){apply(root.getAttribute('data-theme')==='dark'?'light':'dark');});}
var hdr=root.querySelector('.thdr'),toTop=root.querySelector('.totop'),tick=false;
function onScroll(){if(tick){return;}tick=true;requestAnimationFrame(function(){var y=window.scrollY||document.documentElement.scrollTop;if(hdr){hdr.classList.toggle('scrolled',y>8);}if(toTop){toTop.classList.toggle('show',y>520);}tick=false;});}
window.addEventListener('scroll',onScroll,{passive:true});onScroll();
if(toTop){toTop.addEventListener('click',function(){window.scrollTo({top:0,behavior:'smooth'});});}
var reduce=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;
var items=root.querySelectorAll('.reveal');
if(!reduce&&'IntersectionObserver' in window){
var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target);}});},{threshold:.12});
items.forEach(function(el,i){el.style.setProperty('--d',(Math.min(i%3,2)*.09)+'s');io.observe(el);});
}else{items.forEach(function(el){el.classList.add('in');});}
var LKEY='aeg-hub-lang';
var I18N={"ar": {}, "en": {"toc_1": "Acceptance of Terms", "s1_t": "Acceptance of Terms", "s1_b": "
By using the AEG HUB website or any of our services, you agree to comply with these terms and conditions. If you are using the website or services on behalf of a company or organization, you confirm that you have the legal authority to accept these terms on behalf of that entity.
", "toc_2": "Services Provided", "s2_t": "Services Provided", "s2_b": "
At AEG HUB, we offer a range of digital services, including:
- Social media content design.
- AI solutions development.
- Process automation.
- Chatbot creation.
We reserve the right to modify, suspend, or discontinue any service without prior notice.
", "toc_3": "Use of the Website", "s3_t": "Use of the Website", "s3_b": "
When using the AEG HUB website, you agree to:
- Not use the website for any illegal or unauthorized purpose.
- Not attempt unauthorized access to any part of the website or its systems.
- Not hinder or disrupt the operation of the website or services.
- Not use any malicious software or tools that may affect the security of the website or other users' experience.
", "toc_4": "Accounts and Personal Information", "s4_t": "Accounts and Personal Information", "s4_b": "
If you create an account on our website, you are responsible for maintaining the confidentiality of your account credentials and password. You agree to notify us immediately of any unauthorized use of your account.
We are committed to protecting your personal information in accordance with our Privacy Policy.
", "toc_5": "Intellectual Property", "s5_t": "Intellectual Property", "s5_b": "
All content on the AEG HUB website, including text, graphics, logos, and software, is owned by us or our partners and protected by intellectual property laws. You may not copy, modify, distribute, or use any of this content without our written permission.
", "toc_6": "Payment and Billing", "s6_t": "Payment and Billing", "s6_b": "
If you use paid services, you agree to:
- Provide accurate and complete payment information.
- Comply with all financial terms specified in the contract or agreement.
- Bear any additional fees or taxes that may apply to the services.
", "toc_7": "Cancellation and Refunds", "s7_t": "Cancellation and Refunds", "s7_b": "
- You have the right to cancel services in accordance with the terms specified in the contract or agreement.
- Specific refund policies may apply depending on the type of service provided. Please review the details with our support team.
", "toc_8": "Liability", "s8_t": "Liability", "s8_b": "
- We strive to provide high-quality services, but we do not guarantee that the services will be free from errors or defects.
- We will not be liable for any direct or indirect damages arising from your use of the website or services.
", "toc_9": "Changes to These Terms", "s9_t": "Changes to These Terms", "s9_b": "
We reserve the right to amend these terms and conditions at any time. Any changes will be posted on this page, and your continued use of the website or services constitutes acceptance of the amendments.
", "toc_10": "Governing Law", "s10_t": "Governing Law", "s10_b": "
These terms and conditions are governed by and interpreted in accordance with the laws of the United Arab Emirates. Any disputes arising from the use of the website or services shall be subject to the exclusive jurisdiction of the courts of the United Arab Emirates.
", "toc_11": "Contact Us", "s11_t": "Contact Us", "s11_b": "
If you have any questions or inquiries about the terms of service, please contact us at:
{{ML}}", "skip": "Skip to content", "label": "Terms of Service", "home": "Home", "pill": "Legal document", "h1": "Terms of
Service", "hero": "Welcome to
AEG HUB. Please read these terms and conditions carefully before using our website or services. By using the website or services, you agree to be bound by these terms. If you do not agree with these terms, please do not use the website or services.", "toc_head": "Table of Contents", "foot_brand": "AEG HUB", "foot_c": "© 2026 AEG HUB — AI & Automation Solutions", "fp": "Privacy Policy", "ft": "Terms of Service"}};
var TITLES={"ar": "شروط الخدمة - AEG HUB", "en": "Terms of Service - AEG HUB"};
var ML="info@"+"aeghub.com";
function captureArDefaults(){
document.querySelectorAll('[data-i18n]').forEach(function(n){
var k=n.getAttribute('data-i18n');
if(I18N.ar[k]===undefined){I18N.ar[k]=n.innerHTML;}
});
}
function applyLang(lang){
captureArDefaults();
var dict=I18N[lang]||I18N.ar;
document.documentElement.lang=lang;
var dir=(lang==='ar')?'rtl':'ltr';
document.documentElement.dir=dir;
var app=document.querySelector('.terms-app');
if(app){app.setAttribute('dir',dir);}
document.querySelectorAll('[data-i18n]').forEach(function(n){
var k=n.getAttribute('data-i18n');
if(dict[k]!==undefined)n.innerHTML=String(dict[k]).split('{{ML}}').join(ML);
});
var lb=document.querySelector('.lang-btn');
if(lb){
var sp=lb.querySelector('span');
if(sp){sp.textContent=(lang==='ar')?'EN':'عربي';}
lb.setAttribute('aria-label',(lang==='ar')?'Switch to English':'التبديل إلى العربية');
}
var tb=document.querySelector('.terms-app .theme');
if(tb){tb.setAttribute('aria-label',lang==='ar'?'تبديل الوضع الليلي والنهاري':'Toggle light/dark mode');}
var tt=document.querySelector('.terms-app .totop');
if(tt){tt.setAttribute('aria-label',lang==='ar'?'العودة إلى الأعلى':'Back to top');}
var sk=document.querySelector('.terms-app .skip');
if(sk){sk.setAttribute('href','#main');}
if(TITLES[lang]){document.title=TITLES[lang];}
if(typeof applyFormLang==='function'){applyFormLang(lang);}
try{localStorage.setItem(LKEY,lang);}catch(e){}
}
var lb=document.querySelector('.lang-btn');
if(lb){lb.addEventListener('click',function(){var cur=document.documentElement.lang||'ar';applyLang(cur==='ar'?'en':'ar');});}
var lsaved=null;try{lsaved=localStorage.getItem(LKEY);}catch(e){}
applyLang(lsaved||'ar');
})();