/* TFX_FOOTER_REFINEMENT: shared homepage visual language, scoped to the Academy shell. */
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)){background:#080b0e;border-top:1px solid #243946;padding:60px 32px 48px;color:#9caebc;font-family:Inter,Arial,sans-serif}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .container{width:100%;max-width:1160px;padding:0;margin:0 auto}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-wrap{display:flex;flex-direction:column;gap:16px;max-width:900px;margin:0 auto}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) p{margin:0}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-heading{font-size:15px;font-weight:700;line-height:1.5;text-transform:uppercase;letter-spacing:.8px;color:#a6aaad;margin-top:8px}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-heading:not(:first-child){margin-top:20px}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-body{font-size:15px;font-weight:400;line-height:22px;color:#9ca3a9}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-info{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;margin-top:48px;padding-top:32px;border-top:1px solid #253039}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-logo-img{height:40px;width:auto;max-width:200px;display:block}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-info-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-link{font-size:14px;line-height:22px;color:#aab3bb;text-decoration:none}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-link:hover{color:#edf3f5}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-link:focus-visible{outline:2px solid #23c6ed;outline-offset:4px}
:is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-copyright{font-size:13px;line-height:22px;color:#939da6;margin-top:6px}
@media(max-width:760px){
 :is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)){padding:40px 24px 36px}
 :is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-body{font-size:14px;line-height:22px}
 :is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .disclaimer-heading{font-size:13px}
 :is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-info{flex-direction:column;align-items:center;text-align:center;gap:24px}
 :is(#footer.tfx-academy-footer,#footer:has(.tfx-shared-footer)) .footer-info-right{align-items:center}
}

.footer-company-link{display:block!important;flex-basis:100%;margin-top:8px!important}
body.tfx-legal-document-page #footer{margin-top:0}


/* Shared footer support: same block and arrangement as the homepage. */
body #footer.tfx-academy-footer > div.container > div.footer-info{flex-direction:column;align-items:stretch}
#footer.tfx-academy-footer .footer-info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;width:100%}
#footer.tfx-academy-footer .footer-info-left{display:flex;flex-direction:column}
@media(max-width:760px){
 body #footer.tfx-academy-footer > div.container > div.footer-info{align-items:center}
 #footer.tfx-academy-footer .footer-info-row{flex-direction:column;align-items:center;gap:20px;text-align:center}
}

/* Approved refinement of the existing footer: same layout, copy and destinations. */
body #footer.tfx-academy-footer > div.container > div.footer-info{display:flex;flex-direction:column;align-items:stretch;gap:25px;padding-top:30px;border-top:1px solid #253039;text-align:left;font-family:Inter,Arial,sans-serif}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:35px;width:100%}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-left{display:flex;flex-direction:column;align-items:flex-start;padding-top:2px}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-left>.tfx-footer-support{display:inline-flex;align-items:center;gap:9px;padding:2px 0;margin:0;color:#cbd9e1;font-size:14px;line-height:1.6;font-weight:500;text-decoration:none}
body #footer.tfx-academy-footer > div.container > div.footer-info .tfx-footer-support .tfx-footer-telegram-icon{height:16px;width:16px;flex:0 0 auto;color:#14bee8}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-left>.tfx-footer-support:hover{color:#14bee8}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-left>.footer-copyright{margin:9px 0 0;color:#8d9aa5;font-size:13px;line-height:1.7}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right>.footer-link{padding:2px 0;color:#a8b3bd;font-size:14px;line-height:1.6;text-decoration:none}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right>.footer-link:hover{color:#e5edf2}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-link::before,body #footer.tfx-academy-footer > div.container > div.footer-info .footer-link::after{content:none}
body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right>.footer-copyright{margin:12px 0 0;color:#8d9aa5;font-size:12px;line-height:1.7;max-width:310px}
@media(max-width:760px){
 body #footer.tfx-academy-footer > div.container > div.footer-info{align-items:center;text-align:center}
 body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-row{flex-direction:column;align-items:center;gap:29px;text-align:center}
 body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-left{align-items:center}
 body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right{align-items:center;text-align:center}
 body #footer.tfx-academy-footer > div.container > div.footer-info .footer-info-right>.footer-copyright{margin-top:15px;max-width:290px}
}
