.legal-page {
  background: #fff;
}

.legal-page-main {
  min-height: 60vh;
  background: #fff;
}

.legal-page-shell {
  width: min(1340px, calc(100% - 56px));
  margin: 0 auto;
}

.legal-page-hero {
  position: relative;
  padding: 82px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: min(210px, 34vw);
  height: 3px;
  background: var(--green);
}

.legal-page-kicker {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-page-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 3.45vw, 60px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
  white-space: nowrap;
}

.legal-page-revision {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-document {
  padding: 58px 0 96px;
  color: #3b403b;
  font-size: 15px;
  line-height: 1.78;
}

.legal-document > :first-child {
  margin-top: 0;
}

.legal-document h2 {
  margin: 52px 0 18px;
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-document h3 {
  margin: 30px 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.legal-document p {
  margin: 0 0 17px;
}

.legal-document ul {
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.legal-document li {
  position: relative;
  padding-left: 23px;
}

.legal-document li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.legal-document a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(33, 148, 22, 0.38);
  text-underline-offset: 3px;
}

.legal-document a:hover {
  text-decoration-color: currentColor;
}

.legal-document a:focus-visible,
.legal-page .site-footer a:focus-visible,
.legal-page .site-header a:focus-visible,
.legal-page .menu-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.legal-table-wrap,
.privacy-policy__table-wrap,
.cookie-policy__table-wrap {
  margin: 25px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-document table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

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

.legal-document th:last-child,
.legal-document td:last-child {
  border-right: 0;
}

.legal-document tbody tr:last-child td {
  border-bottom: 0;
}

.legal-document th {
  background: #f3f6f2;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.legal-page .site-footer-bottom {
  flex-wrap: wrap;
}

.legal-page .site-footer-grid {
  grid-template-columns: 1.45fr 0.8fr 1fr;
}

@media (max-width: 1080px) {
  .legal-page .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .legal-page-shell {
    width: calc(100% - 30px);
  }

  .legal-page-hero {
    padding: 54px 0 34px;
  }

  .legal-page-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.02;
    white-space: normal;
  }

  .legal-page-revision {
    margin-top: 18px;
    font-size: 12px;
  }

  .legal-document {
    padding: 42px 0 70px;
    font-size: 14px;
    line-height: 1.72;
  }

  .legal-document h2 {
    margin-top: 40px;
    font-size: 24px;
  }

  .legal-document h3 {
    font-size: 17px;
  }

  .legal-table-wrap,
  .privacy-policy__table-wrap,
  .cookie-policy__table-wrap {
    margin-right: -15px;
    margin-left: -15px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .legal-document table {
    font-size: 12px;
  }

  .legal-page .site-footer-bottom {
    grid-template-columns: 1fr;
  }

  .legal-page .site-footer-bottom span {
    grid-column: auto;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .legal-page-hero h1 {
    white-space: normal;
  }
}
