:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --surface: rgba(255, 255, 255, 0.8);
  --text: #1e1d1a;
  --muted: #5f5a52;
  --accent: #c45c2c;
  --accent-strong: #9f451d;
  --border: rgba(30, 29, 26, 0.12);
  --shadow: 0 24px 80px rgba(73, 54, 36, 0.12);
  --marker: #ef2b22;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(196, 92, 44, 0.18), transparent 32%),
    linear-gradient(180deg, #f5ede1 0%, var(--bg) 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
}

.hero {
  width: min(720px, 100%);
  min-height: min(76vh, 820px);
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  position: relative;
}

.mark {
  width: min(54vw, 320px);
}

.circle {
  width: 100%;
  height: auto;
  overflow: visible;
  transform: rotate(-7deg);
}

.circle-guide {
  fill: none;
  stroke: transparent;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circle-path {
  fill: none;
  stroke: var(--marker);
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  stroke-width: 10;
  opacity: 0.98;
  filter: saturate(1.08);
}

.wordmark {
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.is-revealed .wordmark {
  animation: reveal-copy 700ms ease forwards;
}

.wordmark h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.wordmark p {
  display: inline-block;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  margin-top: 4px;
  font-size: clamp(1.24rem, 2.9vw, 1.72rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  transform: translate(-0.95rem, -0.24rem) rotate(-3.1deg);
  color: #1f5fe0;
}

.legal-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.legal-nav a {
  color: rgba(30, 29, 26, 0.54);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: rgba(30, 29, 26, 0.8);
}

.legal-nav-home {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

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

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

.legal-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.legal-card p,
.legal-card li {
  margin: 0 0 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--muted);
}

.legal-card ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.legal-back {
  margin-bottom: 18px;
}

.legal-back a {
  color: rgba(30, 29, 26, 0.7);
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

.legal-note {
  margin-top: 24px;
  font-size: 0.95rem;
  color: rgba(30, 29, 26, 0.62);
}

@keyframes reveal-copy {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: min(72vh, 640px);
    padding: 28px 22px;
    border-radius: 22px;
  }

  .mark {
    width: min(72vw, 280px);
  }

  .legal-nav-home {
    bottom: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .circle-path,
  .wordmark {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
