/*
 * OMF legal footer
 * One compact, consistent regulatory signature for every active public page.
 */

.legal-site-footer {
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(2rem, 3vw, 2.75rem) 4vw clamp(1.25rem, 2vw, 1.75rem) !important;
  display: block !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--forest-deep, var(--green-deep, #041d17)) !important;
  color: #fffdf8;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.75rem;
}

.legal-site-footer > .footer-main,
.legal-site-footer > .footer-legal {
  width: min(100%, 1440px);
  margin-inline: auto;
  align-items: initial;
}

.legal-site-footer > .footer-main {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(110px, 0.55fr));
  gap: clamp(1.5rem, 2.5vw, 3rem);
}

.legal-site-footer .footer-branding {
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.legal-site-footer .footer-brand {
  width: 100% !important;
  aspect-ratio: 2.2 / 1;
  display: block !important;
  overflow: hidden;
}

.legal-site-footer .footer-brand img,
.legal-site-footer .footer-brand .brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.legal-site-footer .footer-branding > p {
  width: 100%;
  max-width: none;
  margin: 0.75rem 0 0;
  display: flex;
  justify-content: space-between;
  color: #fffdf8;
  font-family: "OMF Serif", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
}

.legal-site-footer .footer-regulation {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-site-footer .footer-regulation i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: var(--acid, var(--lime, #d9ff79));
}

.legal-site-footer .footer-links,
.legal-site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: #fffdf8;
  font-family: "OMF Sans", sans-serif;
  font-size: 0.72rem;
  font-style: normal;
}

.legal-site-footer .footer-links h2,
.legal-site-footer .footer-contact h2 {
  margin: 0 0 0.4rem;
  color: rgba(255, 253, 248, 0.46);
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-site-footer .footer-links a,
.legal-site-footer .footer-contact > a:not(.privacy-policy-link) {
  padding: 0.15rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 250ms ease;
}

.legal-site-footer .footer-links a:hover,
.legal-site-footer .footer-contact a:hover {
  color: var(--acid, var(--lime, #d9ff79));
}

.legal-site-footer .privacy-policy-link {
  width: 100%;
  min-height: 36px;
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--acid, var(--lime, #d9ff79));
  font-weight: 700;
  text-decoration: none;
}

.legal-site-footer .privacy-policy-link i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 250ms var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.legal-site-footer .privacy-policy-link:hover i {
  transform: translate(2px, -2px);
}

.legal-site-footer > .footer-legal {
  margin-top: clamp(1.35rem, 2vw, 1.75rem);
  padding-top: clamp(1rem, 1.5vw, 1.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(2rem, 3vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 253, 248, 0.58);
  font-family: "OMF Sans", sans-serif;
  font-size: clamp(0.57rem, 0.62vw, 0.64rem);
  line-height: 1.5;
}

.legal-site-footer .footer-disclosure-primary,
.legal-site-footer .footer-disclosure-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.legal-site-footer .footer-disclosure-primary p,
.legal-site-footer .footer-disclosure-secondary p,
.legal-site-footer .footer-risk,
.legal-site-footer .footer-copyright {
  margin: 0;
}

.legal-site-footer .footer-risk {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.7);
  font-weight: 700;
}

.legal-site-footer .footer-copyright {
  align-self: center;
  justify-self: end;
  color: rgba(255, 253, 248, 0.42);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .legal-site-footer {
    padding: 2.75rem 1.25rem 1.5rem !important;
  }

  .legal-site-footer > .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .legal-site-footer .footer-branding,
  .legal-site-footer .footer-contact {
    grid-column: 1 / -1;
  }

  .legal-site-footer .footer-branding {
    width: min(100%, 240px);
  }

  .legal-site-footer .footer-branding > p {
    font-size: 1.1rem;
  }

  .legal-site-footer .footer-links a,
  .legal-site-footer .footer-contact > a:not(.privacy-policy-link),
  .legal-site-footer .privacy-policy-link {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .legal-site-footer > .footer-legal {
    grid-template-columns: 1fr;
  }

  .legal-site-footer .footer-copyright {
    justify-self: start;
  }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
  .legal-site-footer .footer-links a,
  .legal-site-footer .footer-contact > a:not(.privacy-policy-link),
  .legal-site-footer .privacy-policy-link {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-site-footer .privacy-policy-link i,
  .legal-site-footer .footer-links a,
  .legal-site-footer .footer-contact a {
    transition: none;
  }
}
