/* The opaque main sits above this layer; native sticky positioning reveals it. */
.notasy-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  isolation: isolate;
  color: #d5dbe6;
  background: #050609;
  overflow: clip;
}

.notasy-footer__inner {
  width: min(1140px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 66px 28px;
}

.notasy-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: 72px;
  align-items: start;
}

.notasy-footer__symbol {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 17px;
  opacity: .9;
  transition: opacity 240ms ease;
}

.notasy-footer__symbol:hover { opacity: 1; }
.notasy-footer__symbol img { width: 27px; height: 33px; }

.notasy-footer__statement p {
  margin: 0;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.75px;
}

.notasy-footer__statement p span { color: #7f8a9e; }

.notasy-footer__navigation {
  display: grid;
  grid-template-columns: .9fr 1.1fr 1fr;
  gap: 25px;
  padding-top: 9px;
}

.notasy-footer__column h2 {
  margin: 0 0 22px;
  color: #778299;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.notasy-footer__column a {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 13px;
  font-size: 12px;
  line-height: 1.5;
  color: #b9c2d2;
  transition: color 240ms ease;
}

.notasy-footer__column a span:first-child,
.notasy-footer__policies a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0 1px;
  background-repeat: no-repeat;
  transition: background-size 320ms cubic-bezier(.22, 1, .36, 1), color 240ms ease;
}

.notasy-footer__column a span:last-child {
  opacity: 0;
  transform: translate(-3px, 3px);
  color: #b4b5ff;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.notasy-footer__column a:is(:hover, :focus-visible) { color: #f4f5ff; }
.notasy-footer__column a:is(:hover, :focus-visible) span:first-child,
.notasy-footer__policies a:is(:hover, :focus-visible) { background-size: 100% 1px; }
.notasy-footer__column a:is(:hover, :focus-visible) span:last-child {
  opacity: 1;
  transform: translate(0, 0);
}

.notasy-footer__signature {
  position: relative;
  width: 100%;
  margin-block: 64px 39px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.notasy-footer__signature img {
  width: 100%;
  height: auto;
  opacity: 0;
}

.notasy-footer__signature-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, #151c29 0%, #293346 26%, #2d3648 44%, #252e3f 64%, #1c2534 84%, #0c111b 100%);
  -webkit-mask: url("assets/brand/notasy-wordmark.svg") center / contain no-repeat;
  mask: url("assets/brand/notasy-wordmark.svg") center / contain no-repeat;
}

.notasy-footer__bottom {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 22px;
  color: #7f8b9f;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .05px;
}

.notasy-footer__legal { margin-right: auto; }
.notasy-footer__legal p { margin: 0; }
.notasy-footer__legal p + p { margin-top: 3px; }
.notasy-footer__legal p span { padding-inline: 5px; }

.notasy-footer__policies {
  display: flex;
  align-items: center;
  gap: 24px;
}

.notasy-footer__policies a {
  color: #a4afc1;
  padding-bottom: 2px;
}

.notasy-footer__policies a:is(:hover, :focus-visible) { color: #fff; }

.notasy-footer__back {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(164 176 204 / 20%);
  border-radius: 50%;
  color: #c3cbdd;
  transition: border-color 260ms ease, background-color 260ms ease, color 260ms ease;
}

.notasy-footer__back svg {
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.notasy-footer__back:is(:hover, :focus-visible) {
  background: rgb(129 140 248 / 8%);
  border-color: rgb(164 176 244 / 55%);
  color: #fff;
}

.notasy-footer__back:is(:hover, :focus-visible) svg { transform: translateY(-2px); }

.notasy-footer a:focus-visible {
  outline: 2px solid #a5a7ff;
  outline-offset: 5px;
}

/* Keep every destination reachable when the footer cannot fit in a viewport. */
@media (max-height: 750px), (max-width: 1050px) {
  .notasy-footer { position: relative; bottom: auto; }
}

@media (max-width: 1050px) {
  .notasy-footer__top { grid-template-columns: 1fr 1.4fr; gap: 35px; }
  .notasy-footer__statement p { font-size: 20px; }
  .notasy-footer__navigation { gap: 15px; }
  .notasy-footer__column h2 { font-size: 12px; letter-spacing: 1px; }
  .notasy-footer__column a { font-size: 12px; }
}

@media (max-width: 760px) {
  .notasy-footer__inner { width: calc(100% - 40px); padding-block: 44px 24px; }
  .notasy-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .notasy-footer__navigation { gap: 18px; }
  .notasy-footer__column h2 { margin-bottom: 17px; }
  .notasy-footer__signature { margin-block: 44px 26px; }
  .notasy-footer__bottom { flex-wrap: wrap; gap: 20px; font-size: 12px; }
  .notasy-footer__legal { flex: 1 1 calc(100% - 56px); order: 1; }
  .notasy-footer__back { order: 2; }
  .notasy-footer__policies { flex: 1 1 100%; order: 3; }
}

@media (max-width: 410px) {
  .notasy-footer__navigation { grid-template-columns: 1fr 1fr; row-gap: 25px; }
}

