.admin-version-bar {
  text-align: center;
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 10px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.site-footer {
  background: #111;
  color: #ccc;
  padding: 30px 10px 72px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: #999;
}

.terms {
    width: min(92vw, 760px);
    margin: 48px auto 24px;
    padding: clamp(24px, 4vw, 42px);
    background: var(--element-bg, #fff);
    color: var(--element-text, #222);
    border-radius: var(--site-radius, 8px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

.terms h1,
.terms h2,
.terms h3,
.terms p,
.terms li {
    color: inherit;
}

.terms a {
    color: #4CAF50;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    font-weight: bold;
}
.terms a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.25s ease;
}
.terms a:hover { color: #0056b3; }
.terms a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(6, max-content);
    gap: 10px 20px;
    justify-content: center;
    justify-items: center;
  }
  .footer-links a {
    grid-column: span 2;
  }
  .footer-links a:nth-child(4),
  .footer-links a:nth-child(5) {
    grid-column: span 3;
  }
  .terms {
    width: min(92vw, 760px);
    margin-top: 28px;
    padding: 22px 18px;
  }
}
