.legal-page {
  background: #e9e1d7;
}

.legal-page .page {
  overflow: visible;
}

.legal-header {
  border-bottom: 1px solid rgba(110, 31, 43, .1);
}

.legal-header .brand img {
  width: 188px;
  height: auto;
}

.legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bordo);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-header__back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.legal-header__back:hover svg {
  transform: translateX(-4px);
}

.legal-hero {
  margin-top: 82px;
  padding: 96px 0 82px;
  color: var(--cream);
  background:
    radial-gradient(circle at 86% 28%, rgba(190, 150, 120, .25) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 38%, rgba(190, 150, 120, .17) 0 56px, transparent 57px),
    linear-gradient(135deg, #561520 0%, var(--bordo) 52%, #822e3b 100%);
  background-size: auto, auto, auto;
  position: relative;
  overflow: hidden;
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -80px;
  bottom: -185px;
  border: 1px solid rgba(251, 248, 243, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(251, 248, 243, .035),
    0 0 0 86px rgba(251, 248, 243, .025);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero__eyebrow {
  color: #e3c5ac;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 12px 0 12px;
  font-family: var(--ff-serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .95;
}

.legal-hero__lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #e3c5ac;
  font-size: .82rem;
  font-weight: 500;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 800px);
  justify-content: center;
  gap: 76px;
  padding-top: 72px;
  padding-bottom: 100px;
}

.legal-toc {
  position: relative;
}

.legal-toc__inner {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid rgba(110, 31, 43, .11);
  border-radius: 18px;
  background: rgba(251, 248, 243, .74);
  box-shadow: 0 24px 50px -40px rgba(60, 20, 25, .5);
}

.legal-toc__title {
  margin-bottom: 14px;
  color: var(--bordo);
  font-family: var(--ff-serif);
  font-size: 1.55rem;
  font-weight: 700;
}

.legal-toc ol {
  display: grid;
  gap: 3px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  padding: 6px 0;
  color: #5f5653;
  font-size: .8rem;
  line-height: 1.45;
  transition: color .18s ease, transform .18s ease;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold);
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.7;
}

.legal-toc a:hover {
  color: var(--bordo);
  transform: translateX(3px);
}

.legal-print {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: var(--bordo);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.legal-print svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-content {
  min-width: 0;
}

.legal-intro {
  margin: 0 0 54px;
  padding: 28px 30px;
  border: 1px solid rgba(110, 31, 43, .12);
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  color: #514846;
  background: rgba(251, 248, 243, .72);
  font-size: .96rem;
  line-height: 1.75;
}

.legal-content > section {
  padding: 0 0 54px;
  scroll-margin-top: 112px;
}

.legal-content > section + section {
  padding-top: 52px;
  border-top: 1px solid rgba(110, 31, 43, .13);
}

.legal-section__number {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-content h2 {
  margin: 0 0 24px;
  color: var(--bordo);
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
}

.legal-section__lead {
  margin: -8px 0 24px;
  color: #5f5653;
  line-height: 1.7;
}

.legal-content > section > ol {
  display: grid;
  gap: 16px;
  padding-left: 25px;
  color: #453e3c;
  list-style: decimal;
}

.legal-content > section > .legal-list-continued {
  margin-top: 30px;
}

.legal-content > section > p:not(.legal-section__lead) {
  margin: 20px 0 0;
  color: #453e3c;
  line-height: 1.78;
}

.legal-content .legal-subheading {
  margin-top: 34px !important;
  color: var(--bordo) !important;
  font-weight: 700;
}

.legal-content li {
  padding-left: 8px;
  line-height: 1.78;
}

.legal-content li::marker {
  color: var(--gold);
  font-weight: 700;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 20px;
  list-style: none;
}

.legal-content ol ol.legal-alpha {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-left: 24px;
  list-style: lower-alpha;
}

.legal-content ol ol.legal-alpha li {
  padding-left: 5px;
}

.legal-content strong {
  color: #352e2c;
  font-weight: 700;
}

.legal-content sup {
  font-size: .72em;
  line-height: 0;
}

.legal-table-wrap {
  margin: 28px 0 34px;
  overflow-x: auto;
  border: 1px solid rgba(110, 31, 43, .16);
  border-radius: 16px;
  background: rgba(251, 248, 243, .76);
  box-shadow: 0 22px 45px -42px rgba(60, 20, 25, .65);
  scrollbar-color: var(--gold) rgba(110, 31, 43, .08);
  scrollbar-width: thin;
}

.legal-table-wrap:focus-visible {
  outline: 3px solid rgba(185, 143, 104, .55);
  outline-offset: 4px;
}

.legal-data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: #453e3c;
  font-size: .78rem;
  line-height: 1.58;
}

.legal-data-table th,
.legal-data-table td {
  padding: 17px 18px;
  border-right: 1px solid rgba(110, 31, 43, .1);
  border-bottom: 1px solid rgba(110, 31, 43, .1);
  text-align: left;
  vertical-align: top;
}

.legal-data-table tr > :last-child {
  border-right: 0;
}

.legal-data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal-data-table thead th {
  color: var(--cream);
  background: var(--bordo);
  font-size: .7rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.legal-data-table thead th:first-child,
.legal-data-table tbody th {
  width: 48px;
  text-align: center;
}

.legal-data-table tbody th {
  color: var(--bordo);
  background: rgba(185, 143, 104, .11);
  font-weight: 700;
}

.legal-data-table tbody tr:nth-child(even) td {
  background: rgba(230, 212, 203, .24);
}

.legal-content ul li {
  position: relative;
  padding-left: 15px;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  top: .78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-content a {
  color: var(--bordo);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(110, 31, 43, .28);
  text-underline-offset: 3px;
}

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

.legal-contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  margin-top: 10px;
  padding: 42px;
  border-radius: 22px;
  color: var(--ink);
  background: #e6d4cb;
}

.legal-contact-card__eyebrow {
  margin-bottom: 7px;
  color: var(--bordo);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.legal-contact-card h2 {
  margin-bottom: 9px;
  font-size: 2.15rem;
}

.legal-contact-card p:last-child {
  color: var(--muted);
  font-size: .9rem;
}

.legal-contact-card .btn {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.legal-footer {
  margin-top: 0;
}

.legal-footer .container {
  flex-wrap: nowrap;
  padding-top: 38px;
  padding-bottom: 38px;
}

.legal-footer .fmid .title span {
  font: inherit;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.legal-footer__links a {
  font-size: .78rem;
  font-weight: 600;
  opacity: .82;
}

.legal-footer__links a:hover,
.legal-footer__links a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-footer__company {
  display: grid;
  justify-items: end;
  color: var(--cream);
  font-size: .78rem;
  line-height: 1.7;
  opacity: .82;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .legal-header .container {
    padding-right: 20px;
  }

  .legal-header .brand img {
    width: 140px;
  }

  .legal-header__back {
    font-size: 0;
  }

  .legal-header__back svg {
    width: 28px;
    height: 28px;
  }

  .legal-hero {
    margin-top: 68px;
    padding: 64px 0 58px;
  }

  .legal-hero .container,
  .legal-layout {
    padding-left: 22px;
    padding-right: 22px;
  }

  .legal-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .legal-hero__meta {
    display: grid;
    gap: 3px;
  }

  .legal-hero__meta span[aria-hidden="true"] {
    display: none;
  }

  .legal-layout {
    display: block;
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .legal-toc {
    margin-bottom: 52px;
  }

  .legal-toc__inner {
    position: static;
    padding: 24px;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .legal-content > section {
    padding-bottom: 42px;
  }

  .legal-content > section + section {
    padding-top: 42px;
  }

  .legal-content > section > ol {
    gap: 14px;
    padding-left: 20px;
  }

  .legal-intro {
    margin-bottom: 42px;
    padding: 24px;
  }

  .legal-table-wrap {
    margin-right: -22px;
    border-radius: 14px 0 0 14px;
  }

  .legal-content li {
    padding-left: 4px;
    font-size: .94rem;
    line-height: 1.7;
  }

  .legal-contact-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 24px;
  }

  .legal-contact-card .btn {
    justify-self: start;
  }

  .legal-footer .container {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .legal-footer__company {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-content h2 {
    font-size: 2rem;
  }

  .legal-hero__lead {
    font-size: .96rem;
  }

  .legal-intro {
    padding: 20px;
    font-size: .9rem;
  }

  .legal-contact-card .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  .legal-page,
  .legal-page .page {
    background: #fff;
  }

  .legal-header,
  .legal-toc,
  .legal-contact-card,
  .legal-footer {
    display: none !important;
  }

  .legal-hero {
    margin: 0;
    padding: 0 0 30px;
    color: #000;
    background: #fff;
  }

  .legal-hero::after {
    display: none;
  }

  .legal-hero__eyebrow,
  .legal-hero__meta {
    color: #555;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-content > section {
    break-inside: auto;
    padding: 24px 0;
  }

  .legal-content > section h2,
  .legal-content > section li,
  .legal-content > section p {
    orphans: 3;
    widows: 3;
  }

  .legal-content > section h2 {
    break-after: avoid;
  }

  .legal-intro {
    border-color: #bbb;
    background: #fff;
  }

  .legal-table-wrap {
    overflow: visible;
    border-color: #aaa;
    box-shadow: none;
  }

  .legal-data-table {
    min-width: 0;
    font-size: 7.5pt;
  }

  .legal-data-table thead th {
    color: #000;
    background: #eee;
  }

  .legal-content > section + section {
    border-color: #ccc;
  }

  .legal-content h2,
  .legal-section__number,
  .legal-content a {
    color: #000;
  }
}
