* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e6e6e6;
  color: #1d1d1d;
  font-family: "Montserrat", Arial, sans-serif;
}

.terms-page {
  min-height: 100vh;
  padding: 20px 16px 56px;
}

.terms-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.terms-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 48px;
}

.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  text-decoration: none;
  color: #5c3d7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid #ff7fa6;
  padding-bottom: 2px;
}

.back-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 2px solid #5c3d7a;
  border-bottom: 2px solid #5c3d7a;
  transform: rotate(45deg);
  margin-top: -1px;
}

.terms-logo {
  width: 132px;
  height: 80px;
  object-fit: contain;
}

.last-updated {
  justify-self: end;
  margin-top: 12px;
  text-align: right;
  font-size: 10px;
  line-height: 1.7;
  text-transform: uppercase;
}

.last-updated__label {
  margin: 0;
}

.last-updated__date {
  margin: 0;
}

.terms-content {
  width: min(558px, 100%);
  margin: 0 auto;
}

h1 {
  margin: 0 0 24px;
  color: #86c730;
  font-size: clamp(34px, 5vw, 47px);
  line-height: 1.06;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 34px 0 12px;
  color: #86c730;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 26px 0 12px;
  color: #86c730;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  text-transform: uppercase;
}

p,
li {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.73;
}

ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

li::before {
  content: "- ";
  color: #86c730;
  font-weight: 700;
}

.section-spacer {
  margin-top: 30px;
}

@media (max-width: 700px) {
  .terms-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin-bottom: 28px;
  }

  .back-link,
  .last-updated {
    justify-self: center;
    text-align: center;
  }

  .back-link {
    margin-top: 0;
  }

  .last-updated {
    margin-top: 0;
  }
}
