:root {
  --color-bg: #f7f8f7;
  --color-black: #1a1a1a;
  --color-gray: #767676;
  --color-border: #dadada;
  color-scheme: light;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  background: var(--color-bg);
  color: var(--color-black);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
}

.legal-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legal-header {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 20px;
}

.legal-brand,
.legal-back,
.legal-kicker {
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.legal-brand:hover,
.legal-back:hover,
.legal-content a:hover {
  color: var(--color-black);
}

.legal-content {
  padding-top: 44px;
}

.legal-kicker {
  display: block;
  margin: 0 0 16px;
}

.legal-content h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 40px;
  text-transform: uppercase;
}

.legal-section {
  border-top: 1px solid var(--color-border);
  padding: 28px 0 0;
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section h2,
.legal-section h3,
.legal-section p {
  margin: 0;
}

.legal-section h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 20px;
}

.legal-section h3 {
  color: var(--color-black);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  margin: 22px 0 8px;
}

.legal-section p {
  color: var(--color-gray);
  font-size: 18px;
  line-height: 1.45;
  max-width: 760px;
}

.legal-section p + p {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 24px, 920px);
    padding: 24px 0 56px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .legal-content {
    padding-top: 32px;
  }

  .legal-content h1 {
    margin-bottom: 32px;
  }

  .legal-section {
    padding-top: 24px;
  }

  .legal-section h3 {
    font-size: 20px;
  }

  .legal-section p {
    font-size: 17px;
  }
}
