:root {
  --terms-ink: #24231f;
  --terms-muted: #69655d;
  --terms-paper: #f5f1e8;
  --terms-gold: #b9934f;
  --terms-gold-dark: #74591f;
  --terms-night: #10130f;
  --terms-line: rgba(71, 63, 48, 0.19);
}

html { scroll-behavior: smooth; }

.terms-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(660px, 92svh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--terms-night);
}

.terms-hero__image,
.terms-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terms-hero__image {
  z-index: -3;
  background-image: var(--terms-hero-image);
  background-position: center 45%;
  background-size: cover;
  transform: scale(1.025);
  animation: termsHeroReveal 1.2s ease-out both;
}

.terms-hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 10, 7, 0.94) 0%, rgba(7, 10, 7, 0.72) 43%, rgba(7, 10, 7, 0.25) 75%, rgba(7, 10, 7, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 7, 5, 0.48) 0%, rgba(5, 7, 5, 0.08) 28%, rgba(5, 7, 5, 0.86) 100%);
}

.terms-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(9, 12, 9, 0.78));
  pointer-events: none;
}

.terms-hero__inner {
  padding-top: clamp(8rem, 17vh, 12rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.terms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(3rem, 9vh, 7rem);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.terms-breadcrumb a { color: inherit; text-decoration: none; }
.terms-breadcrumb a:hover { color: #e4c783; }
.terms-breadcrumb i { color: #d2ad60; font-size: 0.66rem; }
.terms-hero__copy { max-width: 830px; }

.terms-eyebrow,
.terms-kicker {
  margin: 0 0 1rem;
  color: var(--terms-gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terms-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #e5c77e;
}

.terms-eyebrow span { width: 34px; height: 1px; background: currentColor; }

.terms-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.terms-hero__lead {
  max-width: 720px;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.55vw, 1.3rem);
  line-height: 1.75;
}

.terms-hero__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  margin-top: 2rem;
}

.terms-hero__dates span { display: grid; gap: 0.2rem; }
.terms-hero__dates small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.terms-hero__dates strong { color: #fff; font-size: 0.92rem; font-weight: 700; }

.terms-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 7vh, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.terms-trust > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.25rem 1.5rem;
}

.terms-trust > div + div { border-left: 1px solid rgba(255, 255, 255, 0.19); }
.terms-trust i { flex: 0 0 auto; color: #e1bf70; font-size: 1.3rem; }
.terms-trust span { color: rgba(255, 255, 255, 0.64); font-size: 0.78rem; line-height: 1.45; }
.terms-trust strong { display: block; margin-bottom: 0.15rem; color: #fff; font-size: 0.88rem; }

.terms-main {
  overflow: clip;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  color: var(--terms-ink);
  background:
    radial-gradient(circle at 100% 18%, rgba(185, 147, 79, 0.12), transparent 27rem),
    var(--terms-paper);
}

.terms-introduction {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--terms-line);
}

.terms-introduction h2,
.terms-contact h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.terms-introduction__text > p {
  max-width: 700px;
  margin: 0;
  color: var(--terms-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.terms-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.terms-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  color: var(--terms-ink);
  background: transparent;
  border: 1px solid rgba(52, 47, 37, 0.29);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.terms-action--primary { color: #fff; background: var(--terms-night); border-color: var(--terms-night); }
.terms-action:hover { color: #fff; background: var(--terms-gold-dark); border-color: var(--terms-gold-dark); transform: translateY(-1px); }

.terms-layout {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 820px);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(3.5rem, 7vw, 7rem);
}

.terms-toc {
  align-self: start;
  position: sticky;
  top: 7.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(185, 147, 79, 0.48);
}

.terms-toc nav > p {
  margin: 0 0 1.1rem;
  color: var(--terms-ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.terms-toc ol { display: grid; gap: 0.18rem; margin: 0; padding: 0; list-style: none; }
.terms-toc a {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.4rem;
  padding: 0.42rem 0;
  color: #6e6a61;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.terms-toc a span { color: #9a7a3e; font-variant-numeric: tabular-nums; }
.terms-toc a:hover,
.terms-toc a.is-active { color: #1e1d19; transform: translateX(3px); }

.terms-toc__help {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  color: var(--terms-muted);
  border-top: 1px solid var(--terms-line);
  font-size: 0.78rem;
  line-height: 1.6;
}
.terms-toc__help a { display: inline; padding: 0; color: var(--terms-gold-dark); font-weight: 800; }

.terms-section { scroll-margin-top: 7rem; padding: 0 0 clamp(3.5rem, 6vw, 5rem); }
.terms-section + .terms-section { padding-top: clamp(3.5rem, 6vw, 5rem); border-top: 1px solid var(--terms-line); }
.terms-section > header {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.terms-section > header > span {
  color: #9a7a3e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.terms-section h2 {
  margin: 0;
  color: var(--terms-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.terms-section__content {
  padding-left: 8rem;
  color: var(--terms-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.terms-section__content p:last-child,
.terms-section__content ul:last-child { margin-bottom: 0; }
.terms-section__content br { display: block; content: ""; margin-top: 0.85rem; }
.terms-section__content ul { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.terms-section__content li { position: relative; padding-left: 1.35rem; }
.terms-section__content li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terms-gold);
}
.terms-section__content strong { color: #302e29; }
.terms-section__content a { color: var(--terms-gold-dark); font-weight: 750; text-decoration-color: rgba(116, 89, 31, 0.42); text-underline-offset: 3px; }

.terms-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--terms-ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.terms-back-to-top i { color: var(--terms-gold-dark); }

.terms-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2.25rem, 5vw, 4.5rem);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 92% 10%, rgba(205, 169, 93, 0.18), transparent 22rem), var(--terms-night);
  border-radius: 3px 3px 70px 3px;
}

.terms-contact::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(207, 174, 102, 0.2);
  border-radius: 50%;
}
.terms-contact .terms-kicker { color: #dfbf77; }
.terms-contact h2 { color: #fff; }
.terms-contact__heading > p:last-child { max-width: 650px; margin: 1.25rem 0 0; color: rgba(255, 255, 255, 0.67); line-height: 1.75; }
.terms-contact__details {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 0.85rem;
  margin: 0;
  padding-left: clamp(0rem, 4vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-style: normal;
}
.terms-contact__details strong { margin-bottom: 0.25rem; color: #e2c47d; }
.terms-contact__details span,
.terms-contact__details a {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
}
.terms-contact__details a:hover { color: #fff; }
.terms-contact__details i { color: #d5b56b; }

.terms-action:focus-visible,
.terms-breadcrumb a:focus-visible,
.terms-toc a:focus-visible,
.terms-section__content a:focus-visible,
.terms-back-to-top:focus-visible,
.terms-contact a:focus-visible { outline: 3px solid #c8a55e; outline-offset: 4px; }

@keyframes termsHeroReveal {
  from { opacity: 0; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 991.98px) {
  .terms-hero { min-height: 820px; }
  .terms-hero__veil {
    background:
      linear-gradient(90deg, rgba(7, 10, 7, 0.9), rgba(7, 10, 7, 0.48)),
      linear-gradient(180deg, rgba(5, 7, 5, 0.45), rgba(5, 7, 5, 0.9));
  }
  .terms-trust { grid-template-columns: 1fr; }
  .terms-trust > div { padding: 0.95rem 0; }
  .terms-trust > div + div { border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc {
    position: static;
    padding: 1.25rem 0 1.25rem 1.2rem;
    border-top: 1px solid var(--terms-line);
    border-bottom: 1px solid var(--terms-line);
  }
  .terms-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .terms-toc__help { display: none; }
  .terms-contact { grid-template-columns: 1fr; }
  .terms-contact__details { padding: 1.75rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; }
}

@media (max-width: 767.98px) {
  .terms-hero { min-height: 100svh; }
  .terms-hero__inner { padding-bottom: 1.5rem; }
  .terms-breadcrumb { margin-bottom: 3rem; }
  .terms-hero__lead { line-height: 1.6; }
  .terms-hero__dates { gap: 1.2rem 2rem; }
  .terms-trust { margin-top: 2.5rem; }
  .terms-trust > div { gap: 0.7rem; }
  .terms-introduction { grid-template-columns: 1fr; }
  .terms-actions,
  .terms-action { width: 100%; }
  .terms-toc ol { grid-template-columns: 1fr; }
  .terms-section > header { grid-template-columns: 1fr; gap: 0.65rem; }
  .terms-section__content { padding-left: 0; }
  .terms-contact { margin-right: -0.25rem; margin-left: -0.25rem; border-radius: 2px 2px 46px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terms-hero__image { animation: none; transform: none; }
  .terms-action,
  .terms-toc a { transition: none; }
}

@media print {
  .terms-hero,
  .terms-toc,
  .terms-actions,
  .terms-back-to-top,
  .terms-contact,
  footer,
  nav.navbar,
  .navbar,
  .floating-chat-button { display: none !important; }
  .terms-main { padding: 0; color: #000; background: #fff; }
  .terms-introduction { display: block; padding-bottom: 1.5rem; }
  .terms-introduction h2 { margin-bottom: 0.75rem; font-size: 24pt; }
  .terms-layout { display: block; padding-top: 1.5rem; }
  .terms-section,
  .terms-section + .terms-section { break-inside: avoid; padding: 1.2rem 0; border-top: 1px solid #bbb; }
  .terms-section h2 { color: #000; font-size: 17pt; }
  .terms-section__content { color: #222; }
  a { color: #000 !important; }
}
