/* UAE Academy footer top: the UAE site footer's own rules (owner 2026-11-20). GENERATED by
   scripts/ae-academy/site-footer-css.mjs from public/region-looks/ae/frame.css, public/region-looks/ae/tiles.css, public/region-looks/ae/shared.css: every rule that styles the DS footer, re-scoped
   from body:has(header.raven-ae-navbar) to body:has(div.raven-ae-academy), and the page-level rules the footer inherits, on the footer copy only.
   Do not edit by hand; edit the UAE files (or scripts/ae-academy/css/site-footer-tail.css) and re-run. */

/* ---- from public/region-looks/ae/frame.css ---- */
body:has(div.raven-ae-academy) .raven-ae-academy-footer > .footer {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
[dir="rtl"] body:has(div.raven-ae-academy) .raven-ae-academy-footer > .footer {
  --font-family-base: "Noto Sans Arabic", var(--font-rtl), sans-serif;
  font-family: var(--font-family-base);
  --typography-h1-font-family: var(--font-family-base);
  --typography-h2-font-family: var(--font-family-base);
  --typography-h3-font-family: var(--font-family-base);
  --typography-h4-font-family: var(--font-family-base);
  --typography-h5-font-family: var(--font-family-base);
  --typography-h6-font-family: var(--font-family-base);
  --typography-body-lg-font-family: var(--font-family-base);
  --typography-body-md-font-family: var(--font-family-base);
  --typography-body-sm-font-family: var(--font-family-base);
  --typography-body-xs-font-family: var(--font-family-base);
  --typography-caption-font-family: var(--font-family-base);
  --typography-label-lg-font-family: var(--font-family-base);
  --typography-label-md-font-family: var(--font-family-base);
  --typography-label-sm-font-family: var(--font-family-base);
  --typography-link-md-font-family: var(--font-family-base);
}
[dir="rtl"] body:has(div.raven-ae-academy) .footer .footer__nav-link[target="_blank"] svg {
  transform: scaleX(-1);
}
.footer__logo-wrapper > .raven-ae-footer-logo-link {
  display: flex;
}

/* ---- from public/region-looks/ae/shared.css ---- */
body:has(div.raven-ae-academy) .footer .footer__ai-bar {
  background-color: rgba(255, 255, 255, 0.04);
}
body:has(div.raven-ae-academy) .footer .footer__license,
body:has(div.raven-ae-academy) .footer .footer__license a {
  color: rgba(255, 255, 255, 0.72);
}
@media (min-width: 992px) {
  body:has(div.raven-ae-academy) .footer .footer__inner {
    max-width: 1328px;
    padding-inline: 24px;
  }
  body:has(div.raven-ae-academy) .footer .footer__header {
    margin-bottom: -8px;
  }
  body:has(div.raven-ae-academy) .footer .footer__nav--columns {
    gap: 20px;
    justify-content: flex-start;
  }
  body:has(div.raven-ae-academy) .footer .footer__column {
    flex: 1 1 0;
    min-width: 188px;
    max-width: none;
  }
  body:has(div.raven-ae-academy) .footer .footer__column > .footer__nav-section {
    width: 188px;
  }
  body:has(div.raven-ae-academy) .footer .footer__sidebar {
    flex: 0 1 192px;
    width: auto;
    min-width: 0;
    margin-inline-start: -12px;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-card {
    width: 100%;
  }
  body:has(div.raven-ae-academy) .footer .footer__nav-link {
    line-height: 20px;
  }
  body:has(div.raven-ae-academy) .footer .footer__legal-block {
    margin-top: 8px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (min-width: 768px) {
  body:has(div.raven-ae-academy) .footer .footer__logo {
    height: 24px;
  }
  body:has(div.raven-ae-academy) .footer .footer__logo-wrapper {
    padding-inline-end: 16px;
  }
  body:has(div.raven-ae-academy) .footer .footer__social--in-header {
    gap: 4px;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-card .footer__deriv-go-logo {
    width: 32px;
    height: 32px;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar.footer__ai-bar--inline {
    padding: 8px 8px 8px 16px;
    gap: 16px;
  }
  [dir="rtl"] body:has(div.raven-ae-academy) .footer .footer__ai-bar.footer__ai-bar--inline {
    padding: 8px 16px 8px 8px;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar--inline .footer__ai-bar-label {
    font-size: 14px;
    line-height: 20px;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar--inline .footer__ai-bar-icons {
    gap: 2px;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar--inline .footer__ai-bar-icons > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  body:has(div.raven-ae-academy) .footer .footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 192px;
    column-gap: 16px;
    row-gap: 32px;
    align-items: start;
    padding-block: 48px;
  }
  body:has(div.raven-ae-academy) .footer .footer__inner > * {
    grid-column: 1 / -1;
  }
  body:has(div.raven-ae-academy) .footer .footer__header {
    grid-row: 1;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar.footer__ai-bar--inline {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  body:has(div.raven-ae-academy) .footer .footer__nav--accordion {
    grid-column: 1;
    grid-row: 2;
  }
  body:has(div.raven-ae-academy) .footer .footer__accordion-label {
    font-size: 18px;
  }
  body:has(div.raven-ae-academy) .footer .footer__nav--columns {
    display: block;
    grid-column: 2;
    grid-row: 2;
  }
  body:has(div.raven-ae-academy) .footer .footer__nav--columns > .footer__column {
    display: none;
  }
  body:has(div.raven-ae-academy) .footer .footer__sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 192px;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-card {
    width: 192px;
    padding: 16px;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-card .footer__app-badges {
    grid-template-columns: 1fr;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-card .footer__deriv-go-qr {
    gap: 16px;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-banner {
    display: none;
  }
  body:has(div.raven-ae-academy) .footer .footer__legal-block {
    grid-row: 3;
    margin-top: 8px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 767px) {
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-banner .footer__app-badge img,
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-banner .footer__app-badge svg {
    width: 100%;
    height: 32px;
    object-fit: contain;
  }
  body:has(div.raven-ae-academy) .footer .footer__header {
    justify-content: space-between;
  }
  body:has(div.raven-ae-academy) .footer .footer__logo {
    height: 24px;
  }
  body:has(div.raven-ae-academy) .footer .footer__social--in-header {
    display: flex;
  }
  body:has(div.raven-ae-academy) .footer .footer__social--standalone {
    display: none;
  }
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-banner {
    padding: 16px;
  }
}
body:has(div.raven-ae-academy) .footer .footer__license p:not(:last-child) {
  margin-bottom: 20px;
}
@media (max-width: 991px) {
  body:has(div.raven-ae-academy) .footer .footer__accordion-chevron {
    width: 16px;
  }
  body:has(div.raven-ae-academy) .footer .footer__accordion-chevron svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  body:has(div.raven-ae-academy) .footer .footer__accordion-chevron svg path {
    stroke-width: 1.33;
  }
  html:lang(en) body:has(div.raven-ae-academy) .footer .footer__accordion-item:nth-child(3) .footer__accordion-label::after {
    content: "s";
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  body:has(div.raven-ae-academy) .footer .footer__accordion-chevron {
    width: 18px;
  }
  body:has(div.raven-ae-academy) .footer .footer__accordion-chevron svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 767px) {
  body:has(div.raven-ae-academy) .footer .footer__inner {
    padding-bottom: 48px;
  }
  body:has(div.raven-ae-academy) .footer .footer__legal-block {
    margin-top: 8px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (min-width: 992px) {
  body:has(div.raven-ae-academy) .footer .footer__nav-link {
    width: fit-content;
  }
}
@media (max-width: 991px) {
  body:has(div.raven-ae-academy) .footer .footer__accordion-item:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(8)) {
    margin-top: 4px;
  }
}
@media (max-width: 767px) {
  body:has(div.raven-ae-academy) .footer .footer__ai-bar-label {
    font-size: 14px;
  }
  body:has(div.raven-ae-academy) .footer .footer__ai-bar-icons {
    gap: 16px;
  }
}
body:has(div.raven-ae-academy) :is([dir="rtl"] .footer) :is(.footer__nav-title, .footer__ai-bar-label, .footer__deriv-go-title, .footer__deriv-go-desc, .footer__deriv-go-qr-label) {
  --font-family-base: Inter, Arial, sans-serif;
  font-family: Inter, Arial, sans-serif;
}
body:has(div.raven-ae-academy) .footer .footer__nav-links > li {
  line-height: 20px;
}
@media (min-width: 768px) {
  body:has(div.raven-ae-academy) .footer .footer__deriv-go-desc {
    margin-top: -8px;
  }
}
body:has(div.raven-ae-academy) .footer .footer__license a {
  line-height: 24px;
}

/* ---- scripts/ae-academy/css/site-footer-tail.css ---- */
/*
 * Hand-written (appended to the generated rules above). The Academy footer is the UAE site footer's top (DS footer,
 * AeAcademySiteFooter) followed by the Academy's own legal part, unchanged (`.raven-ae-academy` root of its own, so
 * the Academy CSS reaches it and never the DS markup). The divider is the UAE footer's own: its legal block, empty
 * here, keeps the rule and the space above it; the space below it is the Academy's (its footer wrapper's row gap, kept
 * by an empty middle block). Measured to match /ae above the divider and the previous Academy footer below it.
 */
body:has(div.raven-ae-academy) .raven-ae-academy-footer .footer .footer__inner {
  padding-bottom: 0;
}
body:has(div.raven-ae-academy) .raven-ae-academy-footer .footer .footer__legal-block {
  padding-top: 0;
  padding-bottom: 0;
}
body:has(div.raven-ae-academy) .raven-ae-academy-footer .footer .footer__license:empty {
  display: none;
}
.raven-ae-academy-footer .raven-ae-academy .footer_component-wrapper {
  padding-top: 0;
}
.raven-ae-academy-footer .raven-ae-academy .footer_middle-block-wrapper {
  padding: 0;
  border: 0;
}

/* ?app=uaemobile and ?is_mobile=true hide the footer (frame.css, `.footer-component`): both parts. */
body:has(.raven-ae-academy[data-ae-academy-app="uaemobile"]) .raven-ae-academy-footer,
body:has(.raven-ae-academy[data-ae-academy-mobile]) .raven-ae-academy-footer {
  display: none !important;
}

/*
 * The Academy's legal text reads like the UAE site footer's (owner 2026-11-24: one ecosystem): same font (the site's
 * Inter, default smoothing), colour, size, line height and 20px between paragraphs as `.footer__license` on /ae,
 * links in the text colour.
 */
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal .footer_text-wrapper-ae,
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal .footer_text-wrapper-ae p,
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal .footer_text-wrapper-ae a {
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, "Inter Fallback", Inter, sans-serif;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal .footer_text-wrapper-ae p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 20px;
}
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal .footer_text-wrapper-ae p:last-child {
  margin-bottom: 0;
}
/* Arabic: the UAE site's Arabic footer font (Noto Sans Arabic first), as `.footer__license` on /ae/ar. */
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal[data-ae-academy-locale="ar"] .footer_text-wrapper-ae,
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal[data-ae-academy-locale="ar"] .footer_text-wrapper-ae p,
body:has(div.raven-ae-academy) .raven-ae-academy-footer-legal[data-ae-academy-locale="ar"] .footer_text-wrapper-ae a {
  font-family: "Noto Sans Arabic", Inter, "Noto Sans Arabic", "Inter Fallback", "Noto Sans Arabic Fallback", sans-serif;
}
