footer {
  padding: 40px 24px;
  border-top: 1px solid #e8e8ed;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(29, 29, 31, 0.5) 50%,
    transparent
  );
  pointer-events: none;
}
html.dark footer::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 245, 247, 0.55) 50%,
    transparent
  );
}
.footer-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-content p {
  font-size: 13px;
  color: #86868b;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-right a,
.footer-right button {
  line-height: 1;
}
.footer-admin {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1a6;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-admin:hover {
  color: #1d1d1f;
}
.footer-link {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1a6;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #1d1d1f;
}
html.dark .footer-link:hover {
  color: #f5f5f7;
}

/* Legal pages (privacy / terms) */
.legal-section {
  padding: 150px 0 100px;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal .intro {
  font-size: 16px;
  color: #86868b;
  line-height: 1.7;
  margin-bottom: 48px;
}
.legal h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  color: #1d1d1f;
}
.legal h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #1d1d1f;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.75;
  color: #515154;
  margin-bottom: 10px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 12px;
}
.legal li {
  margin-bottom: 6px;
}
.legal .updated {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #a1a1a6;
}
.sitemap-list {
  list-style: none;
  padding-left: 0;
}
.sitemap-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-bottom: 10px;
}
.sitemap-list a {
  color: #0a84ff;
  text-decoration: none;
  font-weight: 600;
}
.sitemap-list a:hover {
  text-decoration: underline;
}
.sitemap-list span {
  color: #86868b;
  font-size: 13px;
}
html.dark .sitemap-list a {
  color: #5eb0ff;
}
html.dark .sitemap-list span {
  color: #86868b;
}
html.dark .legal h3,
html.dark .legal h4 {
  color: #f5f5f7;
}
html.dark .legal p,
html.dark .legal li {
  color: #c7c7cc;
}
html.dark .legal .intro {
  color: #a1a1a6;
}
.back-top-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.call-fab {
  position: fixed;
  bottom: 76px;
  right: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-size: 20px;
  transition:
    transform 0.3s,
    background 0.3s;
}
.call-fab:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.back-top-fab.show {
  opacity: 1;
  pointer-events: auto;
}
.back-top-fab:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.back-top-fab.show:hover {
  transform: translateY(-2px);
}
html.dark .back-top-fab {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html.dark .back-top-fab:hover {
  background: rgba(255, 255, 255, 0.15);
}
html.dark .call-fab {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html.dark .call-fab:hover {
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
