:root {
  --paper: #edeae2;
  --red: #d90016;
  --red-soft: #e33a2b;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--red);
  font-family: Helvetica, Arial, sans-serif;
}

.legal-page {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 78px);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.22), transparent 32%),
    var(--paper);
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.home-link {
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.legal-content {
  max-width: 760px;
  margin-top: clamp(56px, 7vw, 112px);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}

h2,
h3 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.012em;
}

p { margin: 0 0 16px; }

section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--red-soft);
}

address { font-style: normal; }

.legal-content a,
.legal-footer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.home-link:hover,
.home-link:focus-visible { text-decoration: underline; }

.legal-content a:focus-visible,
.home-link:focus-visible,
.legal-footer a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.legal-document {
  margin-top: 80px;
  padding-top: 48px;
}

.document-title {
  margin-bottom: 28px;
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.legal-footer {
  margin-top: 56px;
  border-top: 1px solid var(--red-soft);
  padding-top: 20px;
  font-size: 14px;
  font-weight: 300;
}

@media (max-width: 980px) {
  .legal-page {
    position: relative;
    padding: 28px 22px;
    min-height: 100svh;
  }

  .legal-header .legal-nav {
    position: absolute;
    right: 22px;
    bottom: 28px;
  }

  .legal-footer {
    padding-right: 176px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    margin-top: 44px;
    font-size: 16px;
  }

  h2:not(.document-title), h3 { font-size: 20px; }
}
