:root {
  color-scheme: light dark;
  --page-background: #f6f3ee;
  --text-color: #25211b;
  --muted-text: #615a50;
  --link-color: #2f5d78;
  --image-shadow: 0 18px 48px rgba(38, 34, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 24px 72px;
}

.center-image {
  display: block;
  width: min(82vw, 720px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--image-shadow);
}

.site-footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

a {
  color: var(--link-color);
  text-underline-offset: 3px;
}

.legal-page {
  min-height: 100%;
  padding: 48px 24px;
}

.legal-content {
  width: min(100%, 760px);
  margin: 0 auto;
  line-height: 1.65;
}

.legal-content h1 {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.15;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content .note {
  padding: 14px 16px;
  border: 1px solid rgba(97, 90, 80, 0.26);
  border-radius: 8px;
  color: var(--muted-text);
  background: rgba(255, 255, 255, 0.36);
}

.back-link {
  display: inline-block;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .site-footer {
    left: 0;
    right: 0;
    bottom: 14px;
    justify-content: center;
  }

  .legal-page {
    padding: 32px 18px;
  }
}
