.cookie-banner{position:fixed;z-index:50;inset-inline: max(16px,calc((100vw - 760px)/2));bottom:calc(16px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 22px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 12px 40px rgba(23,21,42,.18);color:var(--ink);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px);transition:opacity .24s ease,transform .24s ease,visibility .24s ease;backdrop-filter:blur(12px)}
.cookie-banner.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.cookie-banner p{margin:0;font-size:14px;line-height:1.7}
.cookie-banner-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.cookie-banner a{color:var(--purple);font-size:13px;font-weight:600;text-underline-offset:3px}
.cookie-banner button{min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.cookie-banner button[data-cookie-choice="accepted"]{border-color:var(--purple);background:var(--purple);color:#fff}
.cookie-banner button:hover{filter:brightness(.96)}
.cookie-banner :focus-visible{outline:3px solid #9c8be5;outline-offset:3px}
.legal-page{max-width:850px;margin-inline:auto}
.legal-page>h1{margin:0 0 10px;color:var(--purple);font-size:clamp(30px,4.5vw,46px);line-height:1.3}
.legal details{background:#fffbea;border-color:#f3e3b5}
.legal summary{display:flex;align-items:center;gap:9px;list-style:none;color:var(--purple);font-size:18px;font-weight:600;cursor:pointer}
.legal summary::-webkit-details-marker{display:none}
.legal summary::before{content:"‹";width:10px;flex:none;color:var(--purple);font-family:Arial,sans-serif;font-size:25px;line-height:.8;transition:transform .2s ease}
.legal details[open]>summary::before{transform:rotate(-90deg)}
.legal-panel{margin:14px 0;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.legal-panel h2{margin:0 0 8px;color:var(--purple);font-size:20px;line-height:1.5}
.legal-panel p,.legal-panel li{color:var(--muted);font-size:15px;line-height:1.9}
.legal-panel p{margin:0}
.legal-panel ul{margin:8px 0 0;padding-inline-start:22px}
.error-page{min-height:55vh;display:grid;place-items:center;text-align:center}
.error-card{max-width:620px;padding:40px 24px}
.error-card .error-code{margin:0;color:var(--purple);font-size:clamp(68px,14vw,120px);font-weight:700;line-height:1}
.error-card h1{margin:14px 0 8px;font-size:clamp(24px,5vw,38px)}
.error-card p{margin:0 auto 24px;color:var(--muted);line-height:1.8}
.form-status{grid-column:1/-1;margin:0;color:var(--purple);font-size:14px;line-height:1.7}
.form-status:empty{display:none}
.form-status a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.cookie-banner{inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom));grid-template-columns:1fr;gap:12px;padding:14px;border-radius:16px}.cookie-banner-actions{justify-content:flex-start}.cookie-banner button{min-height:44px}.legal-panel{padding:17px}.error-card{padding:30px 10px}}
@media(prefers-reduced-motion:reduce){.cookie-banner{transition:none}}

.skip-link{position:fixed;top:8px;inset-inline-start:8px;z-index:100;padding:10px 14px;border-radius:10px;background:#fff;color:var(--purple);transform:translateY(-150%)}.skip-link:focus{transform:translateY(0);outline:3px solid #9c8be5;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.whatsapp-float{animation:none!important;transition:none!important}}

.footer{display:block;min-height:0;padding:24px 0 22px;background-color:#514594;background-image:linear-gradient(125deg,#7563c2 0%,#514594 52%,#3d25a5 100%);background-size:cover;background-repeat:no-repeat;background-position:center;color:#fff}
.footer>.container{display:flex;flex-direction:column;align-items:center;text-align:center}
.footer-mobile-brand{display:flex;justify-content:center;margin:0 auto 14px}
.footer-brand-mark{display:block;width:132px;height:auto;filter:brightness(0) invert(1)}
.footer-main{position:static;display:flex;justify-content:center;align-items:center;width:100%;min-height:0;margin:0;padding:0}
.footer .footlinks{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px 24px;width:100%;margin:0;font-size:13px;line-height:1.5;text-align:center}
.footer .footer-bottom{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-top:14px;padding-top:12px;border-top:1px solid #ffffff35;gap:7px;text-align:center}
.footer .footer-meta{display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;justify-items:center;align-items:center;column-gap:16px;row-gap:7px;width:auto;padding:0;text-align:center}
.footer .footer-meta>span:first-child{grid-row:1;grid-column:1}
.footer .footer-meta>span:nth-child(2){grid-row:1;grid-column:2}
.footer .footer-meta>a[href^="https://wa.me"]{grid-row:2;grid-column:1}
.footer .footer-meta>a[href^="mailto:"]{grid-row:2;grid-column:2}
.footer-copyright-mobile{display:none}

@media(min-width:768px){
  .footer .footer-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;width:100%}
}

@media(max-width:767px){
  .footer{position:relative;display:block;min-height:0;margin-top:12px;padding:12px 0 calc(14px + env(safe-area-inset-bottom));background-image:linear-gradient(125deg,#7563c2 0%,#514594 52%,#3d25a5 100%)}
  .footer .container{position:relative}
  .footer-mobile-brand{margin:0 auto 10px}
  .footer-brand-mark{width:112px}
  .footer-main{position:static;display:block;width:100%;min-height:0;margin:0;padding:0}
  .footer .footlinks{display:grid;grid-template-columns:repeat(3,max-content);justify-content:center;justify-items:center;column-gap:16px;row-gap:6px;width:100%;margin:0;font-size:11px;line-height:1.5;text-align:center}
  .footer .footlinks a{grid-row:auto;grid-column:auto;white-space:nowrap}
  .footer .footer-bottom{margin-top:12px;padding-top:10px;gap:5px}
  .footer .footer-meta{grid-template-columns:repeat(2,max-content);column-gap:12px;row-gap:5px;padding:0;font-size:11px;line-height:1.5}
  .footer-meta>span:first-child{grid-row:1;grid-column:1}
  .footer-meta>span:nth-child(2){grid-row:1;grid-column:2}
  .footer-meta>a[href^="https://wa.me"]{grid-row:2;grid-column:1}
  .footer-meta>a[href^="mailto:"]{grid-row:2;grid-column:2}
  .footer-copyright-desktop{display:none}
  .footer-copyright-mobile{display:inline}
  .footer-meta>a{gap:5px;white-space:nowrap;direction:ltr;flex-direction:row-reverse}
  .footer-meta>a svg{width:16px;height:16px}
  .whatsapp-float{bottom:calc(12px + env(safe-area-inset-bottom));left:12px}
}

.legal-page>.legal-updated{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.8}

@media(min-width:768px){
  #process .steps{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(240px,1fr));gap:0;direction:rtl}
  #process .steps::before,#process .steps::after{position:absolute;z-index:1;content:"";pointer-events:none}
  #process .steps::before{top:50%;right:6%;left:6%;height:1px;background:linear-gradient(90deg,transparent,rgba(93,62,159,.9) 25%,rgba(93,62,159,.9) 75%,transparent);transform:translateY(-.5px)}
  #process .steps::after{top:6%;bottom:6%;left:50%;width:1px;background:linear-gradient(180deg,transparent,rgba(93,62,159,.9) 25%,rgba(93,62,159,.9) 75%,transparent);transform:translateX(-.5px)}
  #process .step{min-height:0;padding:42px 34px;border:0}
  #process .step:nth-child(1){grid-column:2;grid-row:1}
  #process .step:nth-child(2){grid-column:1;grid-row:1}
  #process .step:nth-child(3){grid-column:2;grid-row:2}
  #process .step:nth-child(4){grid-column:1;grid-row:2}
}

@media(max-width:767px){
  #process .steps{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:32px}
  #process .steps::before,#process .steps::after{display:none}
  #process .step{min-height:0;padding:20px 16px;border:0}
}

.about-legal-section{padding-top:60px}
@media(max-width:767px){.about-legal-section{padding-top:38px}}

/* Position the footer brand on the left while keeping RTL navigation order. */
.footer>.container{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:auto auto;column-gap:24px;row-gap:14px;direction:ltr;align-items:center}
.footer-mobile-brand{grid-column:1;grid-row:1;align-self:center;justify-content:flex-start;margin:0}
.footer-brand-mark{width:132px}
.footer-main{grid-column:2;grid-row:1;direction:rtl}
.footer .footer-bottom{grid-column:1/-1;grid-row:2;direction:rtl;margin-top:0}

@media(max-width:767px){
  .footer>.container{grid-template-columns:76px minmax(0,1fr);column-gap:12px;row-gap:10px}
  .footer-mobile-brand{grid-column:1;grid-row:1;align-self:center;justify-content:flex-start;margin:0}
  .footer-brand-mark{width:76px}
  .footer-main{grid-column:2;grid-row:1;align-self:center;direction:rtl}
  .footer .footlinks{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:8px}
  .footer .footer-bottom{grid-column:2;grid-row:2;width:100%;justify-self:stretch;align-items:flex-end;margin-top:0;text-align:right}
}

/* Align the RTL start of the first navigation and copyright rows. */
.footer .footlinks{justify-content:flex-end}
.footer .footer-meta{justify-content:flex-end}
@media(max-width:767px){
  .footer .footlinks{justify-content:start}
  .footer .footer-meta{justify-content:start}
}
