:root {
  --terms-paper: #f8f5ec;
  --terms-ink: #373d1f;
  --terms-muted: #6b7059;
  --terms-line: rgba(55, 61, 31, .22);
  --terms-accent: #c8794a;
}

body {
  background: var(--terms-paper);
  color: var(--terms-ink);
  font-family: "Clash Display Variable", Arial, sans-serif;
}

body > .cedar-header {
  position: relative;
  min-height: clamp(5.5rem, 10vw, 9.125rem);
  z-index: 2;
  background: var(--terms-paper);
  box-shadow: 0 1px 0 rgba(55, 61, 31, .08);
}

.terms-page {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .7fr);
  column-gap: clamp(3rem, 9vw, 10rem);
  min-height: 50vh;
  background: var(--terms-paper);
  color: var(--terms-ink);
  font-family: "Clash Display Variable", Arial, sans-serif;
}

.terms-hero {
  grid-column: 1 / -1;
  padding: clamp(4.5rem, 9vw, 9rem) clamp(1.5rem, 7.3vw, 8.75rem) clamp(4rem, 7vw, 7rem);
  background: var(--terms-ink);
  color: var(--terms-paper);
}

.terms-hero__inner {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.terms-hero__eyebrow,
.terms-hero__meta,
.terms-reference__eyebrow {
  margin: 0;
  color: #d9bd8e;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.terms-hero h1 {
  max-width: 52rem;
  margin: clamp(1.25rem, 3vw, 2.5rem) 0 1.5rem;
  font-family: "Clash Display Variable", Arial, sans-serif;
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}

.terms-hero__intro {
  max-width: 38rem;
  margin: 0;
  color: #f1eadb;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.terms-hero__meta {
  margin-top: 2.5rem;
  color: #c6cbb6;
  letter-spacing: .08em;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .7fr);
  gap: clamp(3rem, 9vw, 10rem);
  width: min(100% - 3rem, 76rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

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

.terms-section {
  grid-column: 1;
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--terms-line);
}

.terms-section--first {
  padding-top: clamp(4rem, 8vw, 8rem);
}

.terms-section + .terms-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.terms-section__number {
  margin: .35rem 0 0;
  color: var(--terms-accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.terms-section h2 {
  margin: 0 0 1rem;
  font-family: "Clash Display Variable", Arial, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.terms-section p {
  max-width: 43rem;
  margin: 0;
  color: #50563c;
  font-size: 1.08rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.terms-section a,
.terms-reference__link {
  color: var(--terms-ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.terms-section--contact {
  border-bottom: 0;
  padding-bottom: 0;
}

.terms-reference {
  grid-column: 2;
  grid-row: 2 / span 8;
  align-self: start;
  margin-top: clamp(4rem, 8vw, 8rem);
  position: sticky;
  top: 2rem;
  padding: 2rem;
  border-top: 4px solid var(--terms-accent);
  background: #e9e3d5;
}

.terms-reference h2 {
  margin: 1rem 0;
  font-family: "Clash Display Variable", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.terms-reference > p:not(.terms-reference__eyebrow) {
  margin: 0 0 1.75rem;
  color: #50563c;
  font-size: 1rem;
  line-height: 1.6;
}

.terms-reference__link {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .95rem;
  line-height: 1.4;
}

.terms-reference__link span {
  color: var(--terms-accent);
  font-size: 1.2em;
}

.terms-page a:focus-visible {
  outline: 2px solid var(--terms-accent);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .terms-page {
    display: block;
  }

  .terms-section {
    width: min(100% - 3rem, 76rem);
  }

  .terms-reference {
    position: static;
    width: min(100% - 3rem, 38rem);
    margin: 3.5rem auto 0;
    max-width: 38rem;
  }
}

@media (max-width: 600px) {
  body > .cedar-header {
    min-height: 5.5rem;
  }

  .terms-hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .terms-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.4rem);
  }

  .terms-section {
    width: min(100% - 2.5rem, 76rem);
    padding: 3.5rem 0 4.5rem;
  }

  .terms-section--first {
    padding-top: 3.5rem;
  }

  .terms-section {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .75rem;
  }

  .terms-section h2 {
    font-size: 1.7rem;
  }

  .terms-section p {
    font-size: 1rem;
  }

  .terms-reference {
    width: min(100% - 2.5rem, 38rem);
    padding: 1.5rem;
  }
}
