:root {
  --ink: #10251e;
  --green: #087052;
  --deep: #083f36;
  --surface: #ffffff;
  --background: #f5f1e8;
  --muted: #65736d;
  --line: #d9e2d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 3%, rgba(8, 112, 82, 0.11), transparent 24rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

.legal-header {
  width: min(940px, calc(100% - 40px));
  min-height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 37, 30, 0.13);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.back-home {
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.legal-document {
  width: min(820px, calc(100% - 40px));
  margin: 64px auto 80px;
  padding: clamp(30px, 6vw, 68px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(14, 52, 42, 0.09);
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
h4 {
  color: var(--deep);
  line-height: 1.18;
}

h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 + p {
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h2 {
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin: 30px 0 10px;
  font-size: 19px;
}

h4 {
  margin: 24px 0 8px;
  color: var(--green);
  font-size: 15px;
}

p,
li {
  color: #475850;
}

ul {
  padding-left: 1.35rem;
}

li::marker {
  color: var(--green);
}

strong {
  color: var(--ink);
}

.legal-footer {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .legal-header {
    min-height: 70px;
  }

  .legal-document {
    width: min(100% - 20px, 820px);
    margin-block: 24px 50px;
    padding: 26px 22px 38px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
