.legal {
  background: var(--gray);
  padding-bottom: 48px;
}

.legal-hero {
  background: var(--red);
  border-bottom: 5px solid var(--red-dark);
  color: #fff;
  padding: 34px 0 36px;
  text-align: center;
}

.legal-hero__eyebrow {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.3;
}

.legal-hero h1 {
  margin-top: 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
}

.legal-card {
  width: min(calc(100% - 32px), var(--wrap-narrow));
  margin: 28px auto 0;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}

.legal-card p + p,
.legal-card p + ol,
.legal-card ol + p,
.legal-card ol + ol {
  margin-top: 10px;
}

.legal-card a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.legal-section h2 {
  border-left: 5px solid var(--red);
  padding-left: 12px;
  color: var(--black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.45;
}

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

.legal-card ol {
  padding-left: 1.6em;
  list-style: decimal;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-paren-list {
  counter-reset: legal-paren;
  list-style: none;
}

.legal-paren-list li {
  counter-increment: legal-paren;
  position: relative;
  padding-left: 2.2em;
}

.legal-paren-list li::before {
  content: "(" counter(legal-paren) ")";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.legal-date {
  margin-top: 34px;
  color: var(--black);
  font-size: 13px;
  text-align: right;
}

.legal-back {
  margin-top: 24px;
  text-align: center;
}

.legal-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  transition: background .2s ease;
}

.legal-back a:hover {
  background: var(--red-dark);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 30%;
  background: var(--gray);
  color: var(--black);
  font-weight: 900;
}

.legal-table td {
  background: #fff;
}

@media (max-width: 767px) {
  .legal {
    padding-bottom: 36px;
  }

  .legal-hero {
    padding: 28px 0 30px;
  }

  .legal-hero h1 {
    font-size: 25px;
  }

  .legal-card {
    width: min(calc(100% - 32px), var(--wrap-narrow));
    margin-top: 22px;
    padding: 22px 20px;
    font-size: 14px;
    line-height: 1.9;
  }

  .legal-section {
    margin-top: 26px;
  }

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

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr + tr {
    margin-top: 12px;
  }

  .legal-table th,
  .legal-table td {
    padding: 12px 13px;
  }

  .legal-table td {
    border-top: 0;
  }
}
