/*
 * Blog footer.
 * Token fallbacks are required until main.css (design tokens) is loaded.
 */

/* ---------- Block ---------- */

.blog-footer {
  flex-shrink: 0;
  background: var(--background-white-to-black1, #FFF);
  margin-top: 64px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .blog-footer .blog-footer-container {
    padding: 0 16px;
    max-width: none !important;
  }
}

@media (min-width: 1200px) {
  .blog-footer {
    margin-top: 100px;
    margin-bottom: 0;
  }

  .blog-footer .blog-footer-container {
    max-width: 1232px !important;
  }
}

.blog-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .blog-footer__inner {
    padding: 24px 0;
  }
}

@media (min-width: 1200px) {
  .blog-footer__inner {
    padding: 54px 116px 24px 116px;
  }
}

/* ---------- Layout: mobile first, one stacked column ---------- */

.blog-footer__top,
.blog-footer__bottom,
.blog-footer__meta {
  display: contents;
}

.blog-footer__logo {
  order: 1;
}

.blog-footer__menu {
  order: 2;
}

.blog-footer__policy {
  order: 3;
}

.blog-footer__socials {
  order: 4;
  justify-content: center;
}

.blog-footer__company {
  order: 5;
  text-align: center;
}

.blog-footer__copy {
  order: 6;
  margin-top: -2px;
  text-align: center;
}

/* ---------- Layout from 1200px: two rows ---------- */

@media (min-width: 1200px) {
  .blog-footer__logo,
  .blog-footer__menu,
  .blog-footer__policy,
  .blog-footer__socials,
  .blog-footer__company,
  .blog-footer__copy {
    order: 0;
  }

  .blog-footer__top {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .blog-footer__menu {
    flex: 1 1 auto;
    min-width: 0;
  }

  .blog-footer__socials {
    flex-shrink: 0;
    margin-left: auto;
  }

  .blog-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
  }

  .blog-footer__company {
    flex: 0 0 270px;
    text-align: left;
  }

  .blog-footer__meta {
    /* display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0; */
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: -3px;
    min-width: 0;
  }

  .blog-footer__copy {
    margin-top: 0;
    text-align: left;
  }
}

/* ---------- Logo ---------- */

.blog-footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Main menu ---------- */

.blog-footer__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .blog-footer__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    margin-left: 104px;
  }
}

.blog-footer__item {
  width: 100%;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-secondary, rgba(0, 0, 0, 0.06));
}

@media (min-width: 1200px) {
  .blog-footer__item {
    width: auto;
    padding: 0;
    border-bottom: none;
  }
}

.blog-footer__item .blog-footer__item-link {
  color: var(--text-main, #000);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.12px;
  transition: color 0.3s ease-in-out;
}

@media (min-width: 1200px) {
  .blog-footer__item .blog-footer__item-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
  }
}

.blog-footer__item .blog-footer__item-link:hover {
  color: var(--text-accent, #FD731A);
}

/* ---------- Legal links ---------- */

.blog-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .blog-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
  }
}

@media (min-width: 1200px) {
  .blog-footer__legal {
    justify-content: flex-start;
  }
}

.blog-footer__legal-item {
  margin: 0;
}

.blog-footer__legal .blog-footer__legal-link {
  color: var(--text-tetriary, rgba(0, 0, 0, 0.46));
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.05px;
  transition: color 0.3s ease-in-out;
}

@media (min-width: 768px) {
  .blog-footer__legal .blog-footer__legal-link {
    white-space: nowrap;
  }
}

.blog-footer__legal .blog-footer__legal-link:hover {
  color: var(--text-accent, #FD731A);
}

/* ---------- Socials ---------- */

.blog-footer__socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0 8px;
}

.blog-footer__socials .blog-footer__social-link {
  display: flex;
  color: #ACAEB4;
  transition: color 0.3s ease-in-out;
}

.blog-footer__socials .blog-footer__social-link--facebook:is(:hover, :focus-visible) {
  color: #1877F2;
}

.blog-footer__socials .blog-footer__social-link--instagram:is(:hover, :focus-visible) {
  color: #E1306C;
}

.blog-footer__socials .blog-footer__social-link--x:is(:hover, :focus-visible) {
  color: #000000;
}

.blog-footer__socials .blog-footer__social-link--linkedin:is(:hover, :focus-visible) {
  color: #0A66C2;
}

.blog-footer__socials .blog-footer__social-link--youtube:is(:hover, :focus-visible) {
  color: #FF0000;
}

.blog-footer__socials .blog-footer__social-link--reddit:is(:hover, :focus-visible) {
  color: #FF4500;
}

/* ---------- Company & copyright ---------- */

.blog-footer__company,
.blog-footer__copy {
  color: var(--text-tetriary, rgba(0, 0, 0, 0.46));
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
}

.blog-footer__reg {
  white-space: nowrap;
}

/* ---------- Focus ---------- */

.blog-footer a:focus-visible {
  outline: 2px solid var(--text-accent, #FD731A);
  outline-offset: 2px;
  border-radius: 4px;
}