.portal-footer .footer-brand,
.portal-footer .footer-apps-support { display: contents; }
.portal-footer .footer-desktop-only,
.portal-footer .footer-follow-title,
.portal-footer .footer-policy-icon { display: none; }
.portal-footer .footer-copyright-text,
.portal-footer .footer-credit { display: contents; color: inherit; }
.portal-footer .footer-socials .social-whatsapp { background: linear-gradient(145deg, #08ce50, #049b38); }
.portal-footer .footer-socials .social-facebook { background: linear-gradient(145deg, #2679fd, #0746df); }
.portal-footer .footer-socials .social-telegram { background: linear-gradient(145deg, #14ace1, #0077ad); }
.portal-footer .footer-socials .social-instagram {
  background: radial-gradient(circle at 28% 108%, #ffc24b 4%, #fd653f 31%, #ed255c 58%, #963cc4 87%, #6741c5);
}
.portal-footer .footer-socials .social-youtube { background: linear-gradient(145deg, #ff2932, #e70007); }

@media (max-width: 700px) {
  .site-shell .portal-footer {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    overflow: hidden;
    margin: clamp(20px, 6vw, 40px) 0 0;
    padding: clamp(4px, 1.1vw, 8px) 0 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #242429;
    text-align: center;
  }
  .site-shell.home-layout .portal-footer[data-home-section="footer"] { margin-inline: 0; }
  .portal-footer .footer-brand > img {
    order: 1;
    display: block;
    width: min(69%, 460px);
    height: clamp(65px, 22vw, 148px);
    margin: 0 auto;
    object-fit: contain;
  }
  .portal-footer .footer-brand > p {
    order: 2;
    width: min(88%, 540px);
    max-width: none;
    margin: 0 auto;
    color: #38383e;
    font-size: clamp(11px, 2.95vw, 18px);
    line-height: 1.45;
  }
  .portal-footer .app-downloads {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(9px, 3.35vw, 22px);
    width: min(88%, 588px);
    margin: clamp(17px, 5.8vw, 36px) auto 0;
  }
  .portal-footer .app-downloads > a {
    justify-content: center;
    gap: clamp(5px, 2vw, 16px);
    max-width: none;
    min-height: clamp(42px, 11.7vw, 76px);
    padding: 5px clamp(5px, 1.4vw, 13px) !important;
    border-radius: clamp(8px, 2.55vw, 17px) !important;
    background: linear-gradient(150deg, #202020, #121212) !important;
    box-shadow: 0 7px 16px rgb(19 19 24 / .13) !important;
  }
  .portal-footer .app-downloads > a:only-child { grid-column: 1 / -1; justify-self: center; max-width: 240px; }
  .portal-footer .app-downloads svg { width: clamp(21px, 7.2vw, 44px); height: clamp(21px, 7.2vw, 44px); }
  .portal-footer .app-downloads small {
    display: block;
    margin: 0 0 2px;
    color: #fff;
    font-size: clamp(7px, 2.15vw, 12px);
    font-weight: 650;
    white-space: nowrap;
  }
  .portal-footer .app-downloads strong {
    color: #fff;
    font-size: clamp(12px, 3.85vw, 23px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .portal-footer .footer-follow { order: 4; margin: clamp(16px, 4.65vw, 30px) auto 0; width: min(84%, 548px); }
  .portal-footer .footer-follow-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.9vw, 19px);
    width: 100%;
    margin: 0;
    color: #1c1c21;
    font-size: clamp(15px, 4.05vw, 25px);
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
  }
  .portal-footer .footer-follow-title::before,
  .portal-footer .footer-follow-title::after { content: ""; width: 27%; height: 1px; background: linear-gradient(90deg, transparent, #df0019); }
  .portal-footer .footer-follow-title::after { background: linear-gradient(90deg, #df0019, transparent); }
  .portal-footer .footer-socials {
    flex-wrap: wrap;
    gap: clamp(8px, 3vw, 20px);
    margin: clamp(10px, 3vw, 19px) 0 0;
  }
  .portal-footer .footer-socials > a {
    width: clamp(33px, 9vw, 54px);
    height: clamp(33px, 9vw, 54px);
    border: 0;
    border-radius: clamp(8px, 2.2vw, 14px);
    color: #fff;
    box-shadow: 0 4px 11px rgb(24 24 30 / .10);
  }
  .portal-footer .footer-socials > a::after { display: none; }
  .portal-footer .footer-socials svg {
    width: clamp(21px, 5.85vw, 35px);
    height: clamp(21px, 5.85vw, 35px);
    stroke: none;
  }
  .portal-footer .footer-socials .social-instagram svg { stroke: currentColor; stroke-width: 1.8; }

  .portal-footer nav.footer-policies {
    order: 5;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 0;
    width: min(calc(100% - clamp(18px, 5.8vw, 42px)), 650px);
    margin: clamp(15px, 4.8vw, 32px) auto 0;
    padding: 0 clamp(5px, 2.3vw, 15px);
    border: 1px solid #e8e6e9;
    border-radius: clamp(10px, 2.75vw, 19px);
    background: #faf9fa;
    box-shadow: 0 3px 8px rgb(30 30 38 / .045);
  }
  .portal-footer nav.footer-policies > a {
    position: relative;
    grid-column: span 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1.1vw, 9px);
    min-width: 0;
    min-height: clamp(39px, 9.5vw, 64px);
    padding: 5px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #232328;
    font-size: clamp(10px, 2.7vw, 16px);
    font-weight: 720;
    line-height: 1.22;
    text-align: left;
    transform: none;
  }
  .portal-footer nav.footer-policies > a:nth-of-type(n+4) { border-top: 1px solid #e8e6e9; grid-column: span 7; }
  .portal-footer nav.footer-policies > a:nth-of-type(4) { grid-column: span 10; }
  .portal-footer nav.footer-policies > a:not(:nth-of-type(3n))::after {
    position: absolute;
    inset: 27% 0;
    border-inline-end: 1px solid #e2dfe2;
    pointer-events: none;
    content: "";
  }
  .portal-footer .footer-policy-icon {
    display: block;
    flex: 0 0 auto;
    width: clamp(14px, 4.15vw, 24px);
    height: clamp(14px, 4.15vw, 24px);
    fill: none;
    stroke: #d30015;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .portal-footer nav.footer-policies > a span { min-width: 0; overflow-wrap: anywhere; }
  .portal-footer nav.footer-policies > a:hover { color: #b00013; }

  .portal-footer .footer-copyright {
    order: 6;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2px clamp(7px, 2.4vw, 17px);
    width: 100%;
    min-height: clamp(44px, 11.8vw, 78px);
    margin: clamp(29px, 9.3vw, 62px) 0 0;
    padding: 12px 8px;
    background: linear-gradient(90deg, #ce000d, #b10008);
    color: #fff;
    font-size: clamp(10px, 2.85vw, 17px);
    font-weight: 500;
    line-height: 1.45;
  }
  .portal-footer .footer-copyright::before {
    position: absolute;
    inset: auto 0 calc(100% - 1px);
    height: clamp(24px, 6.8vw, 46px);
    background: center bottom / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1183 90' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='r'%3E%3Cstop stop-color='%23ce000d'/%3E%3Cstop offset='1' stop-color='%23b10008'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='%23fbd0d8' d='M0 4c173 75 332 20 489 25 142 5 232 56 388 26 111-22 205-50 306-36v71H0Z'/%3E%3Cpath fill='url(%23r)' d='M0 84c215-88 365-3 540 2 100 3 255 1 374 1 107 0 184-18 269-49v52H0Z'/%3E%3C/svg%3E");
    pointer-events: none;
    content: "";
  }
  .portal-footer .footer-copyright-text,
  .portal-footer .footer-credit { display: inline; }
  .portal-footer .footer-credit-divider { width: 1px; height: .8rem; background: rgb(255 255 255 / .8); font-size: 0; }
  .portal-footer .footer-credit .studio-credit { margin-inline-start: 3px; color: #fff; font-size: inherit; font-weight: 800; }
  .portal-footer a:focus-visible { outline: 2px solid #bd0018; outline-offset: 2px; }
  .portal-footer .footer-credit a:focus-visible { outline-color: #fff; }
}

/* Desktop footer. Columns collapse to two on smaller desktop windows. */
@media (min-width: 701px) {
  .site-shell .portal-footer {
    --footer-gutter: clamp(24px, 3.4vw, 72px);
    --footer-column-padding: clamp(12px, 1.8vw, 35px);
    --footer-red: #c90014;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.46fr) repeat(3, minmax(0, 1fr));
    align-items: stretch;
    row-gap: clamp(24px, 3.1vw, 54px);
    width: 100%;
    max-width: none;
    margin: 40px 0 0;
    padding: clamp(28px, 2.9vw, 55px) var(--footer-gutter) 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(125deg, #fff 10%, #fdfcfc 58%, #fff3f5);
    box-shadow: none;
    color: #151923;
    text-align: left;
  }
  .site-shell.home-layout .portal-footer[data-home-section="footer"] {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .site-shell .portal-footer.footer-has-support {
    grid-template-columns: minmax(0, 1.46fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.17fr);
  }
  .site-shell .portal-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(22px, 2.9vw, 56px);
    background: center top / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1774 52' preserveAspectRatio='none'%3E%3Cpath fill='%23ffd9df' d='M0 0H215C144 5 52 32 0 29ZM1774 0H1644c54 10 91 27 130 45Z'/%3E%3Cpath fill='%23ffcbd5' fill-opacity='.56' d='M0 0h139C85 10 40 21 0 20ZM1774 0h-94c30 7 67 24 94 37Z'/%3E%3C/svg%3E");
    pointer-events: none;
    content: "";
  }

  .portal-footer .footer-brand,
  .portal-footer .footer-apps-support,
  .portal-footer .footer-desktop-only { display: block; }
  .portal-footer .footer-brand {
    order: 1;
    min-width: 0;
    padding-inline-end: var(--footer-column-padding);
  }
  .portal-footer .footer-brand > img {
    display: block;
    width: min(392px, 100%);
    height: clamp(67px, 7vw, 128px);
    margin: calc(-1 * clamp(9px, 1.25vw, 22px)) 0 8px;
    object-fit: contain;
    object-position: left center;
  }
  .portal-footer .footer-brand > p {
    max-width: 35ch;
    margin: 0;
    color: #171b27;
    font-size: clamp(14px, 1.16vw, 21px);
    font-weight: 400;
    line-height: 1.45;
  }
  .portal-footer .footer-follow-title {
    display: block;
    margin: clamp(18px, 1.8vw, 32px) 0 0;
    color: #141a2b;
    font-size: clamp(18px, 1.4vw, 26px);
    font-weight: 800;
    line-height: 1.2;
  }
  .portal-footer .footer-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(8px, .9vw, 16px);
    margin: clamp(11px, 1vw, 18px) 0 0;
  }
  .portal-footer .footer-socials > a {
    width: clamp(36px, 3.12vw, 56px);
    height: clamp(36px, 3.12vw, 56px);
    border: 0;
    border-radius: clamp(7px, .7vw, 13px);
    color: #fff;
    box-shadow: 0 3px 8px rgb(22 23 32 / .10);
  }
  .portal-footer .footer-socials > a::after { display: none; }
  .portal-footer .footer-socials svg {
    width: clamp(18px, 1.85vw, 33px);
    height: clamp(18px, 1.85vw, 33px);
    stroke: none;
  }
  .portal-footer .footer-socials .social-instagram svg { stroke: currentColor; stroke-width: 1.8; }

  .portal-footer .footer-heading {
    display: flex;
    align-items: center;
    gap: clamp(7px, .8vw, 14px);
    margin: 0 0 clamp(12px, 1.3vw, 23px);
    color: var(--footer-red);
    font-size: clamp(16px, 1.34vw, 24px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
  }
  .portal-footer .footer-heading .icon,
  .portal-footer .footer-call > .icon {
    flex: 0 0 auto;
    width: 1.26em;
    height: 1.26em;
  }
  .portal-footer .footer-heading span { min-width: 0; overflow-wrap: anywhere; }
  .portal-footer nav:is(.footer-sections, .footer-resources, .footer-policies) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
  }
  .portal-footer :is(.footer-sections, .footer-resources, .footer-policies, .footer-apps-support) {
    min-width: 0;
    padding-inline: var(--footer-column-padding);
    border-inline-start: 1px solid #e5e3e8;
  }
  .portal-footer .footer-sections { order: 2; }
  .portal-footer .footer-resources { order: 3; }
  .portal-footer .footer-policies { order: 4; }
  .portal-footer .footer-apps-support { order: 5; }
  .portal-footer > :is(.footer-policies:last-of-type, .footer-apps-support) { padding-inline-end: 0; }
  .portal-footer.footer-has-support > .footer-policies { padding-inline-end: var(--footer-column-padding); }
  .portal-footer nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
    min-height: clamp(34px, 2.55vw, 46px);
    padding: 6px 4px;
    border: 0;
    border-top: 1px solid #e9e7eb;
    border-radius: 0;
    background: transparent;
    color: #171b26;
    box-shadow: none;
    font-size: clamp(13px, 1.1vw, 19px);
    font-weight: 550;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .portal-footer nav > a::after {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-inline-end: 3px;
    border: solid var(--footer-red);
    border-width: 1.7px 1.7px 0 0;
    transform: rotate(45deg);
    content: "";
  }
  .portal-footer nav > a:hover {
    background: #fff0f3;
    color: #a80016;
    transform: none;
  }

  .portal-footer .app-downloads {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(8px, .6vw, 12px);
    width: min(100%, 282px);
    margin: 0 auto;
  }
  .portal-footer .app-downloads > a {
    width: 100%;
    min-width: 0;
    min-height: clamp(45px, 3.75vw, 68px);
    padding: 6px clamp(8px, 1.2vw, 21px) !important;
    border-radius: clamp(7px, .65vw, 11px) !important;
    background: linear-gradient(150deg, #242424, #111) !important;
    box-shadow: none !important;
  }
  .portal-footer .app-downloads svg {
    width: clamp(24px, 2.5vw, 44px);
    height: clamp(24px, 2.5vw, 44px);
  }
  .portal-footer .app-downloads small {
    display: block;
    color: #fff;
    font-size: clamp(9px, .77vw, 13px);
    font-weight: 500;
    line-height: 1.4;
  }
  .portal-footer .app-downloads strong { font-size: clamp(15px, 1.48vw, 26px); font-weight: 700; line-height: 1.12; }
  .portal-footer .footer-contact {
    margin-top: clamp(14px, 1.45vw, 26px);
    padding-top: clamp(12px, 1.1vw, 20px);
    border-top: 1px solid #e0dce2;
  }
  .portal-footer .footer-heading + .footer-contact { margin-top: 0; padding-top: 0; border: 0; }
  .portal-footer .footer-call { display: flex; align-items: center; gap: clamp(8px, .85vw, 15px); }
  .portal-footer .footer-call > .icon { color: var(--footer-red); font-size: clamp(19px, 1.82vw, 32px); }
  .portal-footer .footer-call > div { min-width: 0; }
  .portal-footer .footer-call span {
    display: block;
    color: var(--footer-red);
    font-size: clamp(12px, 1.06vw, 19px);
    line-height: 1.4;
  }
  .portal-footer .footer-helpline {
    display: block;
    color: #17171d;
    font-size: clamp(16px, 1.58vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .portal-footer .footer-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, .65vw, 11px);
    width: 100%;
    min-height: clamp(38px, 3.05vw, 54px);
    margin-top: clamp(12px, .92vw, 17px);
    padding: 6px 9px;
    border: 1px solid #179638;
    border-radius: 999px;
    background: #f5fff7;
    color: #076b25;
    font-size: clamp(11px, 1.06vw, 19px);
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
  }
  .portal-footer .footer-whatsapp-link:hover { background: #e8f9ec; }
  .portal-footer .footer-whatsapp-link .icon {
    flex: 0 0 auto;
    width: 1.5em;
    height: 1.5em;
    fill: currentColor;
    stroke: none;
  }

  .portal-footer .footer-copyright {
    order: 6;
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px clamp(12px, 2vw, 36px);
    width: auto;
    min-height: clamp(53px, 4.15vw, 76px);
    margin: 0 calc(-1 * var(--footer-gutter));
    padding: 12px var(--footer-gutter);
    border: 0;
    background: linear-gradient(100deg, #bf0010, #b4000a);
    color: #fff;
    font-size: clamp(13px, 1.05vw, 19px);
    font-weight: 500;
    line-height: 1.5;
  }
  .portal-footer .footer-copyright::before {
    position: absolute;
    inset: auto auto 100% 0;
    width: min(30%, 440px);
    height: clamp(16px, 2.9vw, 48px);
    background: radial-gradient(ellipse at 5% 100%, #ffdee5, transparent 67%);
    pointer-events: none;
    content: "";
  }
  .portal-footer .footer-credit-divider {
    width: 1px;
    height: clamp(14px, 1.6vw, 28px);
    margin-inline-start: auto;
    background: rgb(255 255 255 / .62);
    font-size: 0;
  }
  .portal-footer .footer-copyright-text,
  .portal-footer .footer-credit { display: block; }
  .portal-footer .footer-credit .studio-credit { margin-inline-start: 4px; color: #fff; font-size: inherit; font-weight: 800; }
  .portal-footer a:focus-visible { outline: 2px solid var(--footer-red); outline-offset: 3px; }
  .portal-footer .footer-credit a:focus-visible { outline-color: #fff; }
}

@media (min-width: 701px) and (max-width: 1099px) {
  .site-shell .portal-footer,
  .site-shell .portal-footer.footer-has-support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }
  .portal-footer .footer-brand { grid-column: 1 / -1; padding: 0; }
  .portal-footer .footer-brand > p { max-width: 52ch; }
  .portal-footer :is(.footer-sections, .footer-policies) { padding-inline-start: 0; border-inline-start: 0; }
  .portal-footer .app-downloads { margin-inline: 0; }
  .portal-footer .footer-whatsapp-link { max-width: 282px; }
}

