/* A compact closing invitation followed by one coordinated glass footer. */
body .final-cta.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 14px 18px;
  margin: 68px auto 24px;
  padding: 36px;
  text-align: start;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--brand-from) 7%, transparent), transparent 65%), var(--nav-fill);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
body .final-cta .status-dot { display: none; }
body .final-cta > p:first-of-type {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  max-width: 520px;
  color: #e4e8f1;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 450;
  letter-spacing: -1px;
  line-height: 1.3;
}
body .final-cta > .btn,
body .final-cta > .linux-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 2;
  width: 248px;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
}
body .final-cta > .btn { grid-row: 1; }
body .final-cta > .linux-cta {
  grid-row: 2;
  color: #bac5d8;
  border: 1px solid #ffffff23;
  background: #ffffff05;
  text-decoration: none;
}
body .final-cta > .linux-cta:hover { color: #edf1fa; background: #ffffff09; }
body .final-cta > .download-meta {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 5px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid #ffffff12;
  color: #8390a7;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
}
body .footer.wrap,
body[data-template=content] .sg-footer .sg-footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
  align-items: start;
  width: min(1320px, calc(100% - 48px));
  gap: 26px 44px;
  margin: 22px auto;
  padding: 30px 32px 18px;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  background: var(--nav-fill);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
/* Override the original theme's explicit transparent home footer. */
body .footer.wrap { background: var(--nav-fill) !important; }
body[data-template=content] .sg-footer { padding: 0; border: 0; background: transparent; }
body .footer .footer-menu,
body[data-template=content] .sg-footer .sg-footer-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
body .footer .footer-menu a,
body[data-template=content] .sg-footer .sg-footer-column a {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  color: #98a5bb;
  font-size: 11px;
  line-height: 1.6;
}
body .footer .footer-column h3,
body[data-template=content] .sg-footer .sg-footer-column h3 {
  margin: 2px 0 16px;
  color: #d7deeb;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}
body :is(.footer, .sg-footer) a:hover { color: var(--brand-from); }
body .footer .footer-brand > p,
body[data-template=content] .sg-footer .sg-footer-brand p {
  max-width: 28ch;
  margin: 14px 0;
  color: #97a3b9;
  font-size: 11px;
  line-height: 1.85;
}
body :is(.footer-language, .footer-tag) { color: #7b889e; font-size: 10px; }
body .footer .copyright,
body[data-template=content] .sg-footer .sg-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 5px 16px; max-width: 90ch; }
.footer-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.footer-tools .hn-language { margin: 0; padding: 0; border: 0; background: transparent; }
.footer-tools summary { list-style: none; }
.footer-tools summary::-webkit-details-marker { display: none; }
.footer-tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .footer-tools .footer-top { display: inline-flex; align-items: center; gap: 8px; color: #9ba8be; font-size: 11px; padding: 8px 0; }
.footer-tools :is(summary, button, a):focus-visible { outline: 1px solid var(--brand-from); outline-offset: 3px; border-radius: 9px; }
body .footer .copyright,
body[data-template=content] .sg-footer .sg-copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid #ffffff12;
  color: #7e8ba1;
  font-size: 9px;
  line-height: 1.8;
}
@media (max-width: 950px) {
  body .footer.wrap,
  body[data-template=content] .sg-footer .sg-footer-inner { grid-template-columns: 1fr; gap: 22px; }
  body .footer .footer-brand > p,
  body[data-template=content] .sg-footer .sg-footer-brand p { max-width: 48ch; }
}
@media (max-width: 640px) {
  body .footer .copyright,
  body[data-template=content] .sg-footer .sg-copyright { flex-wrap: wrap; gap: 15px; }
  .footer-tools { width: 100%; justify-content: space-between; }
  body .final-cta.wrap { grid-template-columns: 1fr; margin-top: 44px; padding: 24px; gap: 14px; }
  body .final-cta > p:first-of-type { grid-row: auto; font-size: 26px; margin-bottom: 6px; }
  body .final-cta > .btn,
  body .final-cta > .linux-cta { grid-column: 1; grid-row: auto; width: 100%; }
  body .final-cta > .download-meta { font-size: 9px; padding-top: 14px; }
  body .footer.wrap,
  body[data-template=content] .sg-footer .sg-footer-inner { width: calc(100% - 24px); padding: 24px 22px 18px; border-radius: 16px; }
  body .footer .footer-menu,
  body[data-template=content] .sg-footer .sg-footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  body .footer .footer-menu a,
  body[data-template=content] .sg-footer .sg-footer-column a { min-height: 32px; margin-bottom: 4px; }
}
