:root {
  --foreground: #1a2e28;
  --muted: #5c6b66;
  --mark: #106080;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: #0f1c18;
  overflow-x: hidden;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem 3.5rem;
}

.hero-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 28, 24, 0.28) 0%, rgba(15, 28, 24, 0.18) 42%, rgba(15, 28, 24, 0.55) 100%),
    linear-gradient(90deg, rgba(15, 28, 24, 0.22) 0%, transparent 35%, transparent 65%, rgba(15, 28, 24, 0.18) 100%);
}

.legal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  margin-top: clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  max-height: min(78svh, 52rem);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(15, 28, 24, 0.28);
  text-align: left;
  color: var(--foreground);
}

.legal-panel .back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--mark);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-panel .back:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.legal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.5rem 0 0.65rem;
}

.legal-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.15rem 0 0.45rem;
}

.legal-panel p,
.legal-panel li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-panel strong {
  color: var(--foreground);
  font-weight: 600;
}

.legal-panel ul {
  margin: 0 0 0.85rem 1.15rem;
}

.legal-panel li {
  margin-bottom: 0.35rem;
}

.legal {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .page {
    padding-inline: 2rem;
  }

  .hero-media img {
    object-position: center center;
  }

  .legal-panel {
    width: min(100%, 46rem);
  }
}
