/* Shared public-site footer (home + static marketing pages). Not used in SPA dashboard/login/admin. */

.site-foot {
  background: #201B30;
  color: #ECEAF4;
  padding: 48px 0 28px;
  font-size: 15px;
  font-family: Peyda, "Peyda Fallback", Tahoma, sans-serif;
  border-top: 1px solid #4A4A58;
}

.site-foot .foot-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-foot .foot-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
  align-items: start;
}

.site-foot .foot-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  direction: ltr;
  text-decoration: none;
}

.site-foot .foot-logo .yd-word {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 100%);
}

.site-foot .foot-logo span {
  color: #B58CFF;
}

.site-foot .foot-tagline {
  margin: 0;
  max-width: 340px;
  line-height: 1.85;
  font-size: 14px;
  color: #A9A5BD;
}

/* Beat #landing-page.p h3 / #marketing-page.p h3 (those force #ECEAF4). */
#landing-page.p .site-foot .foot-col h3,
#landing-page.p .site-foot .foot-col h5,
#marketing-page.p .site-foot .foot-col h3,
#marketing-page.p .site-foot .foot-col h5,
.site-foot .foot-col h3,
.site-foot .foot-col h5 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #B58CFF;
  letter-spacing: 0.02em;
}

.site-foot .foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-foot .foot-col a {
  display: block;
  color: #ECEAF4;
  text-decoration: none;
  font-weight: 500;
}

.site-foot .foot-col a:hover {
  color: #fff;
}

.site-foot .foot-col a .foot-mag {
  color: #b58cff;
}

.site-foot .foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #4A4A58;
  color: #B9AEDB;
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-foot {
    padding: 40px 0 max(24px, env(safe-area-inset-bottom, 0px));
    font-size: 14px;
  }

  .site-foot .foot-shell {
    box-sizing: border-box;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .site-foot .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .site-foot .foot-brand {
    grid-column: 1 / -1;
  }

  .site-foot .foot-tagline {
    max-width: none;
  }

  #landing-page.p .site-foot .foot-col h3,
  #landing-page.p .site-foot .foot-col h5,
  #marketing-page.p .site-foot .foot-col h3,
  #marketing-page.p .site-foot .foot-col h5,
  .site-foot .foot-col h3,
  .site-foot .foot-col h5 {
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.35;
  }

  .site-foot .foot-col {
    gap: 6px;
    min-width: 0;
    padding-inline-start: 4px;
  }

  .site-foot .foot-col a {
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
  }

  .site-foot .foot-bottom {
    margin-top: 28px;
    font-size: 12px;
    text-align: center;
  }
}
