/* ==========================================================================
   Last One Standing — Legal document pages
   Shared by privacy-policy.html, terms-and-conditions.html, legal-notice.html,
   disclaimer.html and medical-health-declaration.html
   ========================================================================== */

/* Page hero strip under the header */
.legal-hero {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding-block: clamp(56px, 7vw, 96px);
}

.legal-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.legal-hero__label::before {
  content: "";
  width: 56px;
  height: 2px;
  background-color: var(--color-red);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-white);
}

.legal-hero__meta {
  margin: 18px 0 0;
  font-size: 1rem;
  color: var(--color-text-light);
}

/* Document body */
.legal-body {
  padding-block: clamp(56px, 6vw, 96px);
}

.legal-body li {
  list-style: none;
}

.legal-document {
  max-width: 880px;
}

/* Arrow-marked list — their list-group items, restyled in our type system */
.legal-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 34px;
  line-height: 1.75;
}

.legal-list li::before {
  content: "\2794";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-red);
  font-size: 1.05em;
  font-weight: 700;
  transition: transform var(--speed) var(--ease);
}

/* Warning callout — their "important note" box, in our palette */
.legal-callout {
  margin: 24px 0;
  padding: 22px 26px;
  background-color: #fdeeee;
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-callout__title {
  margin-bottom: 10px;
  color: var(--color-ink);
}

.legal-callout ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.legal-callout li {
  position: relative;
  padding-left: 34px;
}

.legal-callout li::before {
  content: "\2794";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-red);
  font-size: 1.05em;
  font-weight: 700;
}

/* Two-column side-by-side block — their row/col-lg-6 split */
.legal-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 56px;
}

/* End-of-document cross-links */
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--color-beige);
}

/* TOC numbers pick up the brand red */
.legal-toc li::marker {
  color: var(--color-red);
  font-weight: 600;
}

/* Smooth in-page jumps for the TOC (legal pages only) */
html:has(.legal-hero) {
  scroll-behavior: smooth;
}

.legal-section {
  margin-bottom: clamp(40px, 5vw, 64px);
  scroll-margin-top: 96px; /* keep anchored sections clear of the sticky header */
}

.legal-section h2 {
  font-family: var(--font-condensed);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-beige);
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-section p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.legal-section a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--color-red-dark);
}

/* Table of contents card */
.legal-toc {
  margin-bottom: 56px;
  padding: 28px 32px;
  background-color: var(--color-beige);
  border-radius: var(--radius);
}

.legal-toc__title {
  font-family: var(--font-condensed);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: decimal;
  columns: 2;
  column-gap: 40px;
}

.legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--color-text);
  transition: color var(--speed) var(--ease);
}

.legal-toc a:hover {
  color: var(--color-red);
}

/* On-page nav shared with the site (legal pages keep the same header/footer) */

@media (max-width: 720px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-list li {
    padding-left: 28px;
  }
}
