/* Legal pages — Your Adventure Department */

.legal-body {
  background: var(--paper);
  color: var(--ink);
}

.legal-body .site-header {
  background: rgba(8, 9, 8, .94);
  backdrop-filter: blur(14px);
}

.legal-hero {
  position: relative;
  padding: clamp(150px, 18vw, 230px) 0 clamp(72px, 9vw, 118px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(231, 242, 11, .11), transparent 28%),
    linear-gradient(180deg, var(--black-soft), var(--black));
  color: #fff;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-dark);
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.legal-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.3vw, 7rem);
  line-height: .98;
}

.legal-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
}

.legal-section {
  padding: clamp(70px, 9vw, 130px) 0;
  background: var(--paper);
}

.legal-document {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-document > section {
  scroll-margin-top: 110px;
  padding: 54px 0 8px;
  border-top: 1px solid var(--line-light);
}

.legal-document > section:first-of-type {
  border-top: 0;
}

.legal-document h2 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.legal-document h3 {
  margin: 32px 0 14px;
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.legal-document p {
  margin-bottom: 1.25em;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 1.6em;
  padding-left: 1.35em;
}

.legal-document li {
  margin-bottom: .72em;
  padding-left: .25em;
}

.legal-document a:not(.button) {
  text-decoration-color: rgba(20, 21, 16, .38);
  text-underline-offset: 3px;
}

.legal-document a:not(.button):hover {
  text-decoration-color: #777c00;
  color: #676c00;
}

.legal-toc {
  margin-bottom: 54px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .28);
}

.legal-toc__title {
  margin: 0 0 18px;
  color: #727700;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-toc ol {
  columns: 2;
  column-gap: 48px;
  margin: 0;
}

.legal-toc li {
  break-inside: avoid;
  margin-bottom: .58em;
}

.legal-toc a {
  text-decoration: none;
}

.legal-definitions {
  margin: 0;
  border-top: 1px solid var(--line-light);
}

.legal-definitions div {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.legal-definitions dt {
  font-weight: 800;
}

.legal-definitions dd {
  margin: 0;
  color: var(--muted);
}

.legal-contact-card {
  padding: clamp(28px, 4vw, 42px);
  border-left: 4px solid var(--accent);
  background: var(--ink);
  color: #fff;
}

.legal-contact-card h3 {
  margin-top: 30px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-contact-card p:last-child {
  margin-bottom: 0;
}

.legal-table-wrap {
  width: 100%;
  margin: 28px 0 12px;
  overflow-x: auto;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .28);
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 17px 18px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

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

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

.legal-table th {
  background: var(--ink);
  color: #fff;
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--muted);
}

.legal-document__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 72px;
  padding-top: 38px;
  border-top: 1px solid var(--line-light);
}

.legal-document__footer .text-link {
  color: var(--ink);
}

@media (max-width: 700px) {
  .legal-document {
    width: calc(100% - 28px);
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-definitions div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-document__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-document__footer .button {
    width: 100%;
  }

  .legal-document__footer .text-link {
    width: fit-content;
  }
}
