:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ink: #171d25;
  --soft-ink: #3e4651;
  --muted: #6b7380;
  --line: rgba(23, 29, 37, 0.1);
  --green: #75bd21;
  --green-deep: #4d9d1e;
  --yellow: #ffd960;
  --pink: #f26ba2;
  --sky: #59a9ef;
  --shadow-soft: 0 18px 52px rgba(37, 48, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #fffefa 0%, #fff8ec 44%, #f8fff4 100%),
    linear-gradient(135deg, rgba(117, 189, 33, 0.16), rgba(255, 217, 96, 0.12) 42%, rgba(242, 107, 162, 0.12));
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(23, 29, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 29, 37, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
}

a {
  color: inherit;
}

.legal-body a:hover,
.legal-body a:focus-visible {
  color: var(--green-deep);
}

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

.legal-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6.8rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  content: "";
}

.legal-hero::before {
  right: -18%;
  top: 2.5rem;
  width: min(58vw, 720px);
  height: min(36vw, 420px);
  border-radius: 48% 0 0 52%;
  background: rgba(255, 241, 214, 0.78);
  transform: rotate(8deg);
}

.legal-hero::after {
  right: -12%;
  bottom: 1rem;
  width: min(48vw, 620px);
  height: min(16vw, 180px);
  border-radius: 999px 0 0 999px;
  background: rgba(255, 220, 235, 0.82);
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 0 0 0.78rem;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.15rem;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.legal-layout {
  width: 100%;
  padding-bottom: 4rem;
  margin: 0;
}

.legal-body {
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border: 1px solid rgba(23, 29, 37, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.legal-body h2 {
  margin: 2.4rem 0 0.85rem;
  color: #18212b;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 1.6rem 0 0.6rem;
  color: #22303c;
  font-size: 1.08rem;
  line-height: 1.28;
}

.legal-body p,
.legal-body li {
  color: var(--soft-ink);
  font-size: 1rem;
  line-height: 1.78;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body strong {
  color: #18212b;
  font-weight: 850;
}

.legal-numbered-item {
  margin-left: 1.55rem;
}

.legal-bullet {
  position: relative;
  margin-left: 1.55rem;
  padding-left: 1.55rem;
}

.legal-bullet::before {
  position: absolute;
  left: 0;
  color: var(--green-deep);
  content: "§";
  font-weight: 900;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-compact-list {
  padding-left: 2.15rem;
}

.legal-compact-list li {
  margin: 0.35rem 0;
}

.legal-body a {
  color: #2d7f17;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-copyright {
  margin: 2.2rem 0 0;
  color: #18212b;
  font-weight: 850;
}

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

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

}
