.site-footer {
  margin-top: 24px;
  padding: 28px 40px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border, rgba(26, 26, 24, 0.1));
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #1a1a18);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
}

.site-footer__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted, #6b6b63);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text, #1a1a18);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #6b6b63);
}

.legal-page {
  --bg: #f7f7f4;
  --text: #1a1a18;
  --muted: #6b6b63;
  --border: rgba(26, 26, 24, 0.1);
  --accent: #4f6fd8;
  color-scheme: light;
  margin: 0;
  min-height: 100svh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f7f4 0%, #f3f3ef 100%);
}

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

.legal-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.legal-brand__icon {
  width: 36px;
  height: 36px;
}

.legal-brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal-back {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

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

.legal-card {
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.04);
}

.legal-card h1 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 400;
}

.legal-card__meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-card h2 {
  margin: 28px 0 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.legal-card p,
.legal-card li {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #4a4a44;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 16px;
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__links {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__links span[aria-hidden="true"] {
    display: none;
  }

  .site-footer__copy {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .legal-shell {
    width: min(100% - 32px, 760px);
    padding-top: 18px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .legal-shell {
    width: min(100% - 24px, 760px);
  }
}
