main > .legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0 42px;
  background:
    radial-gradient(ellipse at 82% 0, rgb(255 212 0 / 12%), transparent 34rem),
    linear-gradient(135deg, #10100e 0%, #080808 68%);
}

.legal-hero::after {
  position: absolute;
  right: max(4vw, calc((100vw - 1200px) / 2));
  bottom: -82px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 212 0 / 15%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffd400;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
}

.legal-eyebrow::before {
  width: 22px;
  height: 2px;
  background: #ffd400;
  content: "";
}

.legal-title {
  max-width: 850px;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.legal-tabs {
  gap: 8px;
  margin-top: 30px;
}

.legal-tabs a {
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 6px;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  font-weight: 550;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.legal-tabs a:hover,
.legal-tabs a:focus-visible {
  border-color: #ffd400;
  color: #fff;
}

.legal-tabs a[aria-current="page"] {
  border-color: #ffd400;
  background: #ffd400;
  color: #111;
  font-weight: 700;
}

main > .legal-document-area {
  width: 100%;
  max-width: none;
  padding: clamp(32px, 5vw, 64px) 24px clamp(56px, 8vw, 96px);
  background: #f7f6f3;
}

.legal-prose {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid #e8e5df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 55px rgb(26 22 12 / 6%);
  color: #4f4d49;
  font-size: 15px;
  line-height: 1.8;
}

.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 27px;
  border-top: 1px solid #eeece8;
}

.legal-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 13px;
  color: #171717;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.4;
  scroll-margin-top: 100px;
}

.legal-section-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #fff7cc;
  color: #725c00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.legal-section p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 22px;
}

.legal-section li::before {
  position: absolute;
  left: 2px;
  color: #a58500;
  content: "•";
  font-weight: 800;
}

.legal-section a,
.legal-prose a {
  color: #745c00;
  text-decoration: underline;
  text-decoration-color: #d7c77f;
  text-underline-offset: 3px;
}

.legal-section a:hover,
.legal-prose a:hover {
  color: #171717;
}

.legal-updated {
  display: inline-flex;
  margin: 0 0 3px !important;
  padding: 6px 10px;
  border: 1px solid #eee6c2;
  border-radius: 5px;
  background: #fffbed;
  color: #6d5a12;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.legal-contents {
  width: min(100%, 920px);
  margin: 0 auto 16px;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 22px rgb(26 22 12 / 4%);
}

.legal-contents summary {
  padding: 15px 20px;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.legal-contents summary::-webkit-details-marker {
  display: none;
}

.legal-contents summary::after {
  float: right;
  color: #877000;
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.legal-contents[open] summary::after {
  content: "−";
}

.legal-contents nav {
  padding: 0 20px 18px;
  border-top: 1px solid #f0eee9;
}

.legal-contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 15px 0 0;
  padding-left: 20px;
  color: #aaa08a;
  font-size: 12px;
}

.legal-contents a {
  color: #55514a;
  text-decoration: none;
}

.legal-contents a:hover {
  color: #725c00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact {
  width: min(100%, 920px);
  margin: 18px auto 0;
  padding: 17px 20px;
  border: 1px solid #e8e5df;
  border-radius: 8px;
  background: #fff;
  color: #6a6761;
  font-size: 13px;
}

.legal-contact a {
  color: #725c00;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .legal-hero-inner {
    width: calc(100% - 32px);
  }

  .legal-tabs {
    gap: 7px;
    margin-top: 23px;
  }

  .legal-tabs a {
    padding: 8px 10px;
    font-size: 11px;
  }

  main > .legal-document-area {
    padding: 24px 14px 52px;
  }

  .legal-prose {
    padding: 24px 20px;
    font-size: 14px;
    line-height: 1.75;
  }

  .legal-section + .legal-section {
    margin-top: 23px;
    padding-top: 21px;
  }

  .legal-contents ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-tabs a {
    transition: none;
  }
}
