.site-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer .footer-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;

  font: 500 0.72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;

  letter-spacing: 0.025em;
  opacity: 0.78;
}

.site-footer .footer-sep {
  opacity: 0.45;
}

#landing-theme-status,
#landing-public-ip {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer .footer-row {
    justify-content: center;
    text-align: center;
  }

  .site-footer .footer-meta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-footer .footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-footer .footer-sep {
    display: none;
  }
}


/* ============================================================
   YunoHost footer signature
   ============================================================ */

.footer-yunohost {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 5px 9px 5px 11px;

  border: 1px solid color-mix(
    in srgb,
    var(--border) 78%,
    transparent
  );

  border-radius: 999px;

  color: var(--muted);
  background:
    color-mix(
      in srgb,
      var(--surface-strong) 56%,
      transparent
    );

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: .62rem;
  line-height: 1;

  text-decoration: none;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.footer-yunohost img {
  display: block;

  width: 27px;
  height: 27px;

  border-radius: 7px;

  object-fit: contain;

  opacity: .82;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.footer-yunohost:hover {
  color: var(--text);

  border-color:
    color-mix(
      in srgb,
      var(--accent) 35%,
      var(--border)
    );

  background:
    color-mix(
      in srgb,
      var(--accent) 5%,
      var(--surface-strong)
    );

  transform: translateY(-1px);
}

.footer-yunohost:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.footer-yunohost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .footer-yunohost {
    margin-inline: auto;
  }
}


/* ===== YUNOHOST FOOTER V2 START ===== */

.site-footer .footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.site-footer .footer-yunohost {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: var(--muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: .61rem;
  line-height: 1;

  text-decoration: none;

  opacity: .72;

  transition:
    opacity .2s ease,
    color .2s ease;
}

.site-footer .footer-yunohost img {
  display: block;

  width: 18px;
  height: 18px;

  margin: 0;

  border-radius: 4px;

  object-fit: contain;

  opacity: .85;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.site-footer .footer-yunohost:hover {
  color: var(--text);
  opacity: 1;
  background: transparent;
  transform: none;
}

.site-footer .footer-yunohost:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.site-footer .footer-yunohost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .site-footer .footer-meta {
    justify-content: center;
  }

  .site-footer .footer-yunohost {
    margin: 0;
  }
}

/* ===== YUNOHOST FOOTER V2 END ===== */


/* ============================================================
   Pages légales / confidentialité
   ============================================================ */

.footer-legal-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-legal-link:hover {
  color: var(--text);
}

.footer-legal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  padding-top: 54px;
  padding-bottom: 70px;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);

  border: 1px solid var(--border);
  border-radius: 20px;

  background: var(--surface-strong);

  box-shadow:
    0 20px 55px rgba(0,0,0,.10);
}

.legal-card h1 {
  margin-top: 15px;
  margin-bottom: 22px;
}

.legal-card section {
  margin-top: 32px;
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card a {
  color: var(--accent);
}

.legal-card code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}

.legal-warning {
  padding: 10px 12px;

  border: 1px solid rgba(245,158,11,.28);
  border-radius: 9px;

  background: rgba(245,158,11,.07);

  color: #f59e0b !important;
}

@media (max-width: 620px) {
  .legal-page {
    width: min(100% - 20px, 900px);
    padding-top: 28px;
  }

  .legal-card {
    padding: 21px 18px;
  }
}
