.legal-main {
  position: relative;
  z-index: 1;
  min-height: 1848px;
  padding: 120px 20px 160px;
  border-radius: 0 0 40px 40px;
  background: var(--bg);
}

.legal-document {
  width: min(820px, 100%);
  margin-inline: auto;
}

.legal-heading h1 {
  margin: 0;
  color: var(--text);
  font: 700 72px/1 var(--font);
  letter-spacing: -0.055em;
}

.legal-heading p {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 48px;
}

.legal-sections section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-sections h2 {
  margin: 0;
  color: var(--text);
  font: 700 40px/1.2 var(--font);
  letter-spacing: -0.05em;
}

.legal-sections p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.legal-sections a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.legal-sections a:hover {
  color: var(--violet);
}

.legal-main + .shinta-footer {
  margin-top: -40px;
  padding-top: 120px;
}

@media (max-width: 809px) {
  .legal-main {
    min-height: 2900px;
    padding: 120px 20px 100px;
    border-radius: 0 0 24px 24px;
  }

  .legal-heading h1 {
    font-size: 40px;
  }

  .legal-heading p {
    margin-top: 24px;
    font-size: 10px;
  }

  .legal-sections {
    gap: 32px;
    margin-top: 44px;
  }

  .legal-sections section {
    gap: 14px;
  }

  .legal-sections h2 {
    font-size: 24px;
  }

  .legal-sections p {
    font-size: 16px;
    line-height: 1.5;
  }
}
