/*
 * متجركم — public site shell: header, mobile menu, footer, floating
 * WhatsApp button and the simple content pages (privacy, terms).
 * Loaded by includes/public-header.php after site-2026.css on every public
 * page, and uses only the tokens defined there.
 */

html { scroll-padding-top: 104px; }
.public-page-body { background: var(--mx-paper); color: var(--mx-text); }

/* ── Header ───────────────────────────────────────────────────────── */
.mx-header {
    --hd-bg: rgba(255, 255, 255, .72);
    --hd-bg-solid: rgba(255, 255, 255, .9);
    --hd-border: rgba(240, 228, 220, .9);
    --hd-text: var(--mx-text);
    --hd-text-2: var(--mx-text-2);
    --hd-hover: rgba(255, 91, 31, .08);
    --hd-shadow: 0 10px 34px rgba(20, 14, 10, .07);
    position: sticky; top: 0; z-index: 1030;
    padding: 14px 0;
    transition: padding .45s var(--mx-ease);
}
.mx-header--over {
    --hd-bg: rgba(255, 255, 255, .04);
    --hd-bg-solid: rgba(13, 15, 21, .9);
    --hd-border: rgba(255, 255, 255, .1);
    --hd-text: var(--mx-on-dark);
    --hd-text-2: rgba(246, 243, 240, .72);
    --hd-hover: rgba(255, 255, 255, .08);
    --hd-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    margin-bottom: -92px;
}
.mx-header__wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.mx-header__bar {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    height: 64px; padding: 0 10px 0 10px; padding-inline-start: 12px;
    border-radius: 20px;
    background: var(--hd-bg);
    border: 1px solid var(--hd-border);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: var(--hd-shadow);
    transition: height .45s var(--mx-ease), background .45s, box-shadow .45s, border-color .45s, border-radius .45s;
}
.mx-header__bar::after {
    /* a thin warm highlight along the top edge */
    content: ""; position: absolute; inset-inline: 18%; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 61, .75), transparent);
    opacity: .7; pointer-events: none;
}
html.mx-scrolled .mx-header { padding: 8px 0; }
html.mx-scrolled .mx-header__bar { height: 56px; background: var(--hd-bg-solid); border-radius: 16px; }
html.mx-scrolled .mx-header:not(.mx-header--over) .mx-header__bar { box-shadow: 0 14px 40px rgba(20, 14, 10, .1); }

.mx-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--hd-text); min-width: 0; }
.mx-brand:hover { color: var(--hd-text); }
.mx-brand__logo {
    width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 6px 18px rgba(255, 91, 31, .28), inset 0 0 0 1px rgba(255, 91, 31, .15);
    transition: transform .45s var(--mx-ease), width .45s var(--mx-ease), height .45s var(--mx-ease);
}
.mx-brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-brand:hover .mx-brand__logo { transform: rotate(-6deg) scale(1.05); }
html.mx-scrolled .mx-brand__logo { width: 38px; height: 38px; border-radius: 12px; }
.mx-brand__copy { display: flex; flex-direction: column; line-height: 1.1; gap: .2rem; min-width: 0; }
.mx-brand__copy strong { font-family: var(--mx-font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; }
.mx-brand__copy small { font-size: .7rem; font-weight: 700; color: var(--hd-text-2); white-space: nowrap; line-height: 1.2; }

.mx-nav { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.mx-nav a {
    position: relative; display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem; border-radius: 12px;
    color: var(--hd-text-2); font-weight: 700; font-size: .93rem; text-decoration: none;
    transition: color .25s, background .25s;
}
.mx-nav a:hover { color: var(--hd-text); background: var(--hd-hover); }
.mx-nav a::after {
    content: ""; position: absolute; inset-inline: 30%; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--mx-grad); transform: scaleX(0); transition: transform .35s var(--mx-ease);
}
.mx-nav a:hover::after { transform: scaleX(1); }
.mx-nav a:focus-visible, .mx-header__login:focus-visible, .mx-burger:focus-visible, .mx-brand:focus-visible, .mx-menu a:focus-visible {
    outline: 3px solid rgba(255, 138, 61, .6); outline-offset: 2px;
}
.mx-nav .mx-nav__app { color: var(--mx-orange); }
.mx-header--over .mx-nav .mx-nav__app { color: #ffb08a; }
.mx-nav .mx-nav__app i { font-size: .85em; }

.mx-header__actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.mx-header__login {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 12px;
    color: var(--hd-text); font-weight: 800; font-size: .92rem; text-decoration: none; transition: background .25s, color .25s;
}
.mx-header__login:hover { color: var(--hd-text); background: var(--hd-hover); }
.mx-header .mx-btn--sm { min-height: 42px; }

.mx-burger {
    display: none; position: relative; width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 13px; border: 1px solid var(--hd-border); background: var(--hd-hover); color: var(--hd-text);
    cursor: pointer; padding: 0;
}
.mx-burger span {
    position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .4s var(--mx-ease), opacity .25s, top .4s var(--mx-ease);
}
.mx-burger span:nth-child(1) { top: 15px; }
.mx-burger span:nth-child(2) { top: 21px; right: 17px; }
.mx-burger span:nth-child(3) { top: 27px; }
.mx-header.is-menu-open .mx-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mx-header.is-menu-open .mx-burger span:nth-child(2) { opacity: 0; }
.mx-header.is-menu-open .mx-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu: a card that drops from the bar, over a dimmed page */
.mx-menu {
    position: absolute; top: calc(100% + 10px); inset-inline: 16px;
    padding: 12px; border-radius: 22px;
    background: rgba(255, 255, 255, .96); border: 1px solid var(--mx-line);
    box-shadow: 0 30px 80px rgba(20, 14, 10, .22);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    max-height: calc(100dvh - 110px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98); transform-origin: top center;
    transition: opacity .3s var(--mx-ease), transform .45s var(--mx-ease), visibility 0s linear .45s;
}
.mx-header--over .mx-menu { background: rgba(17, 20, 28, .96); border-color: rgba(255, 255, 255, .1); color: var(--mx-on-dark); }
.mx-header.is-menu-open .mx-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--mx-ease), transform .45s var(--mx-ease), visibility 0s; }
.mx-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mx-menu li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--mx-ease), transform .4s var(--mx-ease); }
.mx-header.is-menu-open .mx-menu li { opacity: 1; transform: none; }
.mx-header.is-menu-open .mx-menu li:nth-child(2) { transition-delay: .04s; }
.mx-header.is-menu-open .mx-menu li:nth-child(3) { transition-delay: .08s; }
.mx-header.is-menu-open .mx-menu li:nth-child(4) { transition-delay: .12s; }
.mx-header.is-menu-open .mx-menu li:nth-child(5) { transition-delay: .16s; }
.mx-menu ul a {
    display: flex; align-items: center; gap: .85rem; padding: .8rem .75rem; border-radius: 14px;
    color: inherit; text-decoration: none; font-weight: 800; font-size: 1.02rem;
    color: var(--mx-text);
}
.mx-header--over .mx-menu ul a { color: var(--mx-on-dark); }
.mx-menu ul a:hover, .mx-menu ul a:active { background: rgba(255, 91, 31, .08); }
.mx-menu ul a .mx-menu__ic {
    width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--mx-orange); background: rgba(255, 91, 31, .1); font-size: .95rem;
}
.mx-menu ul a .mx-menu__go { margin-inline-start: auto; font-size: .8rem; opacity: .4; }
.mx-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--mx-line); }
.mx-header--over .mx-menu__actions { border-top-color: rgba(255, 255, 255, .1); }
.mx-menu__actions .mx-btn { width: 100%; }
.mx-menu__actions .mx-btn:only-child { grid-column: 1 / -1; }
.mx-header--over .mx-menu__actions .mx-btn--ghost { background: rgba(255, 255, 255, .08); color: var(--mx-on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

.mx-menu-backdrop {
    position: fixed; inset: 0; z-index: -1;
    background: rgba(11, 13, 18, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s;
}
.mx-header.is-menu-open .mx-menu-backdrop { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }

@media (max-width: 1199.98px) {
    .mx-nav a { padding: .5rem .65rem; font-size: .88rem; }
    .mx-brand__copy small { display: none; }
}
@media (max-width: 991.98px) {
    .mx-nav, .mx-header__login { display: none; }
    .mx-burger { display: inline-block; }
    .mx-header { padding: 10px 0; }
    .mx-header--over { margin-bottom: -84px; }
    .mx-header__bar { height: 60px; padding-inline-start: 8px; padding-inline-end: 8px; }
    .mx-brand__logo { width: 40px; height: 40px; border-radius: 12px; }
}
@media (min-width: 992px) {
    .mx-menu, .mx-menu-backdrop { display: none; }
}
@media (max-width: 380px) {
    .mx-header__wrap { padding: 0 12px; }
    .mx-brand__copy strong { font-size: 1.08rem; }
    .mx-header__cta span { display: none; }
    .mx-header__cta { width: 42px; padding: 0; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.mx-footer {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--mx-ink); color: var(--mx-on-dark-2);
    padding-top: 72px; margin-top: 0;
}
.mx-footer::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(50% 40% at 80% 0%, rgba(255, 91, 31, .28) 0%, transparent 70%),
        radial-gradient(40% 35% at 10% 20%, rgba(255, 181, 71, .12) 0%, transparent 70%),
        radial-gradient(60% 50% at 50% 115%, rgba(226, 64, 15, .3) 0%, transparent 70%);
}
.mx-footer::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
.mx-footer a { text-decoration: none; }

/* CTA band */
.mx-footer__cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 2rem;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--mx-r-xl);
    background: linear-gradient(120deg, #ff3d00 0%, #ff5b1f 35%, #ff8a3d 75%, #ffb547 120%);
    color: #fff; margin-bottom: 72px;
    box-shadow: 0 40px 90px rgba(255, 91, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.mx-footer__cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at 15% 50%, #000 0%, transparent 60%);
    mask-image: radial-gradient(ellipse at 15% 50%, #000 0%, transparent 60%);
}
.mx-footer__cta::after {
    content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
    left: -120px; bottom: -220px; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%);
    animation: mx-float 9s ease-in-out infinite;
}
.mx-footer__cta-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; font-weight: 800; }
.mx-footer__cta h2 {
    font-family: var(--mx-font-display) !important; font-weight: 900; color: #fff;
    font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.25 !important; margin: .9rem 0 .6rem;
}
.mx-footer__cta p { margin: 0; font-size: 1.05rem; color: rgba(255, 255, 255, .9); max-width: 560px; line-height: 1.8; }
.mx-footer__cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mx-footer__cta .mx-btn--dark { box-shadow: 0 18px 40px rgba(11, 13, 18, .35); }
.mx-footer__cta .mx-btn--light { background: #fff; color: var(--mx-ember); box-shadow: 0 18px 40px rgba(120, 30, 0, .25); }
.mx-footer__cta .mx-btn--light:hover { color: var(--mx-ember); }

/* Columns */
.mx-footer__grid { display: grid; grid-template-columns: 1.5fr .9fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.mx-footer__brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; margin-bottom: 1.1rem; }
.mx-footer__brand:hover { color: #fff; }
.mx-footer__brand img { width: 48px; height: 48px; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(255, 91, 31, .35); }
.mx-footer__brand strong { font-family: var(--mx-font-display); font-size: 1.5rem; font-weight: 800; display: block; line-height: 1.1; }
.mx-footer__brand small { color: var(--mx-on-dark-2); font-weight: 700; font-size: .75rem; }
.mx-footer__desc { font-size: .95rem; line-height: 1.95; margin: 0 0 1.4rem; max-width: 380px; }
.mx-footer__social { display: flex; flex-wrap: wrap; gap: .55rem; }
.mx-footer__social a {
    width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--mx-on-dark); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    font-size: 1.05rem; transition: transform .35s var(--mx-ease), background .3s, color .3s, border-color .3s;
}
.mx-footer__social a:hover { transform: translateY(-3px); color: #fff; background: var(--mx-orange); border-color: var(--mx-orange); }
.mx-footer__social a.whatsapp:hover { background: var(--mx-wa); border-color: var(--mx-wa); }
.mx-footer__social a.instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }
.mx-footer__social a.facebook:hover { background: #1877f2; border-color: #1877f2; }
.mx-footer__social a.twitter:hover { background: #000; border-color: #444; }
.mx-footer__social a.telegram:hover { background: #229ed9; border-color: #229ed9; }
.mx-footer__social a.tiktok:hover { background: #111; border-color: #25f4ee; }

.mx-footer__title {
    font-family: var(--mx-font-display) !important; color: #fff; font-weight: 700; font-size: .98rem;
    margin: 0 0 1.2rem; display: flex; align-items: center; gap: .55rem;
}
.mx-footer__title::before { content: ""; width: 14px; height: 3px; border-radius: 3px; background: var(--mx-grad); }
.mx-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mx-footer__links a {
    display: inline-flex; align-items: center; gap: .6rem; padding: .32rem 0;
    color: var(--mx-on-dark-2); font-weight: 600; font-size: .93rem; transition: color .25s, transform .35s var(--mx-ease);
}
.mx-footer__links a:hover { color: #fff; transform: translateX(-4px); }
.mx-footer__links a:focus-visible, .mx-footer a:focus-visible { outline: 2px solid rgba(255, 138, 61, .7); outline-offset: 3px; border-radius: 6px; }
.mx-footer__dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; background: var(--mx-orange); box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.mx-footer__store-name { direction: ltr; font-weight: 800; color: #fff; letter-spacing: .01em; }
.mx-footer__store-ar { color: var(--mx-on-dark-2); font-size: .82rem; }

.mx-footer__support { display: grid; gap: .75rem; }
.mx-footer__support .mx-btn { width: 100%; }
.mx-footer__contact {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 14px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: var(--mx-on-dark);
}
a.mx-footer__contact:hover { color: #fff; border-color: rgba(255, 138, 61, .4); background: rgba(255, 91, 31, .08); }
.mx-footer__contact i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 91, 31, .14); color: #ffb08a; flex: 0 0 auto; }
.mx-footer__contact small { display: block; color: var(--mx-on-dark-2); font-size: .74rem; line-height: 1.3; }
.mx-footer__contact strong { display: block; font-size: .92rem; font-weight: 800; line-height: 1.5; }
.mx-footer__contact bdi { direction: ltr; unicode-bidi: isolate; }
.mx-footer__note { font-size: .88rem; line-height: 1.8; margin: 0; }
.mx-footer__links + .mx-footer__note { margin-top: 1rem; font-size: .78rem; color: var(--mx-on-dark-2); }

.mx-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.mx-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .86rem; }
.mx-footer__bottom p { margin: 0; }
.mx-footer__bottom strong { color: #fff; }
.mx-footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.mx-footer__legal a { color: var(--mx-on-dark-2); font-weight: 600; transition: color .25s; }
.mx-footer__legal a:hover { color: #fff; }
.mx-footer__made { display: inline-flex; align-items: center; gap: .45rem; }
.mx-footer__made i { color: var(--mx-orange); }

/* Giant wordmark at the very bottom */
.mx-footer__word {
    font-family: var(--mx-font-display); font-weight: 900; line-height: .8; text-align: center;
    font-size: clamp(5rem, 21vw, 19rem); letter-spacing: -.02em;
    margin: 0 0 -.12em; user-select: none; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    white-space: nowrap; overflow: hidden;
}

@media (max-width: 1199.98px) {
    .mx-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .mx-footer__col--support { grid-column: 1 / -1; }
    .mx-footer__col--support .mx-footer__support { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 991.98px) {
    .mx-footer__cta { grid-template-columns: 1fr; gap: 1.5rem; }
    .mx-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .mx-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .mx-footer { padding-top: 48px; }
    .mx-footer__cta { margin-bottom: 52px; border-radius: 26px; }
    .mx-footer__cta-actions .mx-btn { flex: 1 1 100%; }
    .mx-footer__col--support .mx-footer__support { grid-template-columns: 1fr; }
    .mx-footer__bottom-inner { flex-direction: column; text-align: center; }
    .mx-footer__legal { justify-content: center; }
    .mx-footer__store-ar { display: none; }
}

/* ── Floating WhatsApp (the assistant launcher sits bottom-right) ── */
.mx-wa-float {
    position: fixed; left: 24px; bottom: 24px; z-index: 1020;
    display: inline-flex; align-items: center; gap: 0;
    height: 60px; padding: 0 8px; border-radius: 999px;
    color: #fff; background: linear-gradient(135deg, #2be06f, #1ebe5b);
    box-shadow: 0 16px 40px rgba(37, 211, 102, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
    text-decoration: none; transition: transform .4s var(--mx-ease), box-shadow .4s var(--mx-ease), padding .4s var(--mx-ease);
}
.mx-wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: mx-wa-ring 2.6s infinite;
}
.mx-wa-float i { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.mx-wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: .92rem; transition: max-width .45s var(--mx-ease), margin .45s var(--mx-ease); }
.mx-wa-float:hover, .mx-wa-float:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 50px rgba(37, 211, 102, .5); }
.mx-wa-float:hover span, .mx-wa-float:focus-visible span { max-width: 160px; margin-inline: 4px 12px; }
.mx-wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
@keyframes mx-wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 600px) {
    /* Phones: a smaller button, level with the assistant launcher on the
       other side, and room under the footer so nothing ends up behind either. */
    html { scroll-padding-bottom: 96px; }
    .mx-wa-float { left: 16px; bottom: 24px; height: 48px; padding: 0 2px; }
    .mx-wa-float i { width: 44px; height: 44px; font-size: 1.55rem; }
    .mx-wa-float:hover span, .mx-wa-float:focus-visible span { max-width: 0; margin: 0; }
    .mx-footer { padding-bottom: 96px; }
}

/* ── Simple content pages (privacy, terms) ────────────────────────── */
.public-page-body .page-shell { position: relative; }
.page-shell { max-width: 880px; margin: auto; padding: 40px 16px 80px; min-height: 70vh; }
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--mx-grad-ink); color: var(--mx-on-dark);
    border-radius: var(--mx-r-xl); padding: clamp(28px, 5vw, 48px); margin-bottom: 22px;
    box-shadow: 0 30px 70px rgba(11, 13, 18, .22);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mx-aurora); }
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%);
    mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 65%);
}
.page-hero > i {
    width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem !important; color: #fff; background: var(--mx-grad); box-shadow: var(--mx-glow);
}
.page-hero h1 { font-family: var(--mx-font-display) !important; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 18px 0 10px; color: #fff; line-height: 1.3 !important; }
.page-hero p { margin: 0; color: var(--mx-on-dark-2); line-height: 1.9; font-size: 1.05rem; max-width: 640px; }
.page-card {
    position: relative; background: #fff; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg);
    padding: 24px 26px; margin-bottom: 14px; box-shadow: var(--mx-shadow-sm);
    transition: border-color .35s, box-shadow .35s var(--mx-ease);
}
.page-card:hover { border-color: rgba(255, 91, 31, .25); box-shadow: var(--mx-shadow-md); }
.page-card::before { content: ""; position: absolute; inset-inline-start: -1px; top: 26px; width: 4px; height: 22px; border-radius: 4px; background: var(--mx-grad); }
.page-card h2 { font-family: var(--mx-font-display) !important; color: var(--mx-text); font-size: 1.12rem; font-weight: 700; margin: 0 0 10px; }
.page-card p, .page-card li { line-height: 1.95; color: var(--mx-text-2); }
.page-card ul { margin-bottom: 0; padding-inline-start: 1.2rem; }
.page-card li::marker { color: var(--mx-orange); }
.page-card a { color: var(--mx-orange); font-weight: 700; }
.page-date { text-align: center; color: var(--mx-text-3); font-size: .85rem; margin-top: 24px; }
@media (max-width: 575.98px) { .page-card { padding: 20px 18px; } }

/* Long legal pages: date line, table of contents, sub-headings, term lists. */
.page-hero a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .page-hero__date { margin-top: 12px; font-size: .9rem; color: var(--mx-on-dark-2); }
.page-toc {
    background: var(--mx-paper); border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg);
    padding: 20px 24px; margin-bottom: 14px;
}
.page-toc h2 { font-family: var(--mx-font-display) !important; color: var(--mx-text); font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.page-toc ol { margin: 0; padding-inline-start: 1.4rem; columns: 2; column-gap: 32px; }
.page-toc li { break-inside: avoid; line-height: 2; color: var(--mx-text-3); }
.page-toc a { color: var(--mx-text-2); text-decoration: none; }
.page-toc a:hover, .page-toc a:focus-visible { color: var(--mx-orange); text-decoration: underline; }
.page-card h3 { color: var(--mx-text); font-size: 1rem; font-weight: 700; margin: 18px 0 6px; }
.page-card ul + p, .page-card dl + p { margin-top: 12px; }
.page-card p:last-child { margin-bottom: 0; }
.page-dl { margin: 0; }
.page-dl dt { color: var(--mx-text); font-weight: 700; margin-top: 14px; }
.page-dl dt:first-child { margin-top: 0; }
.page-dl dd { margin: 4px 0 0; line-height: 1.95; color: var(--mx-text-2); }
.page-note { background: var(--mx-paper-2); border-radius: var(--mx-r-md); padding: 12px 16px; margin-top: 12px; }
.page-legal bdi { unicode-bidi: isolate; display: inline-block; max-width: 100%; }
.page-legal { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .page-toc { padding: 18px; } .page-toc ol { columns: 1; } }
