/* =========================================================
   GREENLYTES — TERMS & CONDITIONS
   Page-specific styles. base.css + components.css load first.
   ========================================================= */

.terms-page {
  --terms-ink: var(--ink-950, #10251f);
  --terms-copy: var(--ink-600, #5f6f68);
  --terms-green: var(--green-700, #176b4a);
  --terms-green-dark: #123f31;
  --terms-paper: #f7f9f5;
  --terms-line: rgba(18, 63, 49, .14);
  --terms-white: #fff;
  color: var(--terms-ink);
  background: var(--terms-paper);
}

.terms-page h1,
.terms-page h2,
.terms-page h3,
.terms-page p {
  margin-top: 0;
}

.terms-kicker {
  display: inline-block;
  color: var(--terms-green);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* 01 — HERO */
.terms-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 clamp(72px, 7vw, 96px);
  background:
    radial-gradient(circle at 84% 15%, rgba(63, 135, 91, .11), transparent 26rem),
    linear-gradient(180deg, #fbfcf9 0%, var(--terms-paper) 100%);
}

.terms-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -17rem;
  width: 33rem;
  height: 33rem;
  border: 1px solid rgba(23, 107, 74, .085);
  border-radius: 50%;
  pointer-events: none;
}

.terms-hero__breadcrumb {
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.terms-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr);
  gap: clamp(56px, 6vw, 92px);
  align-items: center;
}

.terms-hero__copy {
  min-width: 0;
  max-width: 780px;
}

.terms-hero h1 {
  max-width: 740px;
  margin: 18px 0 24px;
  color: var(--terms-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.4rem, 6.8vw, 6.65rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.062em;
}

.terms-hero h1 span {
  display: block;
  color: var(--terms-green);
  font-style: italic;
  font-weight: 500;
}

.terms-hero__lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--terms-copy);
  font-size: clamp(1.02rem, 1.22vw, 1.18rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.terms-hero__updated {
  margin: 18px 0 0;
  color: var(--terms-copy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.terms-snapshot {
  min-width: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--terms-line);
  border-bottom: 1px solid var(--terms-line);
}

.terms-snapshot__label {
  display: block;
  padding: 0 30px 8px;
  color: var(--terms-copy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-snapshot__row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--terms-line);
}

.terms-snapshot__row:last-child {
  border-bottom: 0;
}

.terms-snapshot__term {
  color: var(--terms-green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.42rem, 1.55vw, 1.66rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.terms-snapshot__copy {
  min-width: 0;
}

.terms-snapshot__copy strong,
.terms-snapshot__copy span {
  display: block;
}

.terms-snapshot__copy strong {
  margin-bottom: 4px;
  color: var(--terms-ink);
  font-size: .98rem;
  line-height: 1.3;
}

.terms-snapshot__copy span {
  color: var(--terms-copy);
  font-size: .82rem;
  line-height: 1.45;
}

/* 02 — CORE TERMS */
.terms-core {
  padding: clamp(76px, 8vw, 116px) 0;
  background: var(--terms-white);
}

.terms-section-head {
  display: grid;
  grid-template-columns: .48fr 1.52fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 46px;
}

.terms-section-head h2,
.terms-orders__header h2,
.terms-third-party h2,
.terms-details__header h2,
.terms-notes h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 4.15vw, 4.2rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.05em;
}

.terms-core__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--terms-line);
  border-bottom: 1px solid var(--terms-line);
}

.terms-rule {
  position: relative;
  min-height: 430px;
  padding: 38px clamp(30px, 4vw, 58px) 42px 0;
  overflow: hidden;
}

.terms-rule + .terms-rule {
  padding-right: 0;
  padding-left: clamp(30px, 4vw, 58px);
  border-left: 1px solid var(--terms-line);
}

.terms-rule--accent {
  background: linear-gradient(135deg, rgba(234, 243, 236, .58), rgba(255, 255, 255, 0) 72%);
}

.terms-rule__number {
  position: absolute;
  top: 14px;
  right: 54px;
  color: rgba(23, 107, 74, .065);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(6.6rem, 11.5vw, 10.6rem);
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.terms-rule:first-child .terms-rule__number {
  right: 66px;
}

.terms-rule__body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 345px;
  max-width: 540px;
  flex-direction: column;
  justify-content: flex-end;
}

.terms-rule__eyebrow,
.terms-orders__title > span {
  margin-bottom: 13px;
  color: var(--terms-green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-rule h3 {
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.95rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.terms-rule p {
  margin-bottom: 12px;
  color: var(--terms-copy);
  font-size: 1rem;
  line-height: 1.7;
}

.terms-rule p:last-child {
  margin-bottom: 0;
}

.terms-rule__note {
  margin-top: 8px !important;
  padding-top: 16px;
  border-top: 1px solid var(--terms-line);
  font-size: .91rem !important;
}

/* 03 — ORDERS & PAYMENT */
.terms-orders {
  padding: clamp(72px, 7vw, 104px) 0 clamp(68px, 6.5vw, 94px);
  background: var(--terms-paper);
}

.terms-orders__header {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(40px, 6vw, 86px);
  align-items: end;
  margin-bottom: 42px;
}

.terms-orders__header .terms-kicker {
  margin-bottom: 16px;
}

.terms-orders__header > p {
  max-width: 390px;
  margin-bottom: 2px;
  color: var(--terms-copy);
  line-height: 1.68;
}

.terms-orders__rows {
  border-top: 1px solid var(--terms-line);
}

.terms-orders__row {
  display: grid;
  grid-template-columns: 72px minmax(250px, .78fr) 1fr;
  gap: clamp(22px, 3.6vw, 54px);
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--terms-line);
}

.terms-orders__number {
  color: var(--terms-green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
}

.terms-orders__title > span {
  display: block;
  margin-bottom: 7px;
}

.terms-orders__title h3 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.terms-orders__row > p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--terms-copy);
  line-height: 1.7;
}

.terms-orders__row a,
.terms-notes a {
  color: var(--terms-green);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* 04 — THIRD-PARTY RETAILERS */
.terms-third-party {
  padding: clamp(72px, 7.5vw, 110px) 0;
  background: var(--terms-white);
}

.terms-third-party__inner {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(52px, 8vw, 120px);
  align-items: start;
}

.terms-third-party__intro .terms-kicker {
  margin-bottom: 16px;
}

.terms-third-party__intro h2 {
  max-width: 620px;
}

.terms-third-party__content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--terms-line);
}

.terms-third-party__number {
  padding-top: 26px;
  color: var(--terms-green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.terms-third-party__content > div {
  padding-top: 24px;
}

.terms-third-party__content h3 {
  margin-bottom: 13px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.terms-third-party__content p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--terms-copy);
  line-height: 1.72;
}

/* 05 — CONTENT & RESPONSIBILITY */
.terms-details {
  padding: clamp(74px, 7.5vw, 108px) 0;
  background: var(--terms-paper);
}

.terms-details__header {
  display: grid;
  grid-template-columns: .48fr 1.52fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 42px;
}

.terms-details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--terms-line);
  border-bottom: 1px solid var(--terms-line);
}

.terms-detail {
  min-height: 330px;
  padding: 30px clamp(24px, 3vw, 42px) 36px;
}

.terms-detail + .terms-detail {
  border-left: 1px solid var(--terms-line);
}

.terms-detail__number {
  display: block;
  margin-bottom: 70px;
  color: var(--terms-green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.terms-detail h3 {
  margin-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.25vw, 2.15rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.terms-detail p {
  margin-bottom: 0;
  color: var(--terms-copy);
  line-height: 1.68;
}

/* 06 — CHANGES + CONTACT */
.terms-notes {
  padding: clamp(72px, 7vw, 104px) 0;
  background: var(--terms-white);
}

.terms-notes__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(52px, 8vw, 118px);
  align-items: start;
}

.terms-notes__copy .terms-kicker {
  margin-bottom: 16px;
}

.terms-notes__copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.terms-notes__copy > p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--terms-copy);
  line-height: 1.72;
}

.terms-contact {
  padding: 28px 0 0;
  border-top: 1px solid var(--terms-line);
}

.terms-contact__label {
  display: block;
  margin-bottom: 14px;
  color: var(--terms-green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-contact h3 {
  margin-bottom: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  letter-spacing: -.04em;
}

.terms-contact p {
  margin-bottom: 0;
  color: var(--terms-copy);
  line-height: 1.65;
}

/* 07 — CLOSING */
.terms-closing {
  background: var(--terms-green-dark);
  color: var(--terms-white);
}

.terms-closing__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: center;
  min-height: 265px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.terms-closing__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-closing p {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.55rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.terms-closing p strong {
  font-style: italic;
  font-weight: 500;
}

.terms-closing a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  flex: 0 0 auto;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .46);
  color: var(--terms-white);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.terms-closing a span {
  transition: transform .2s ease;
}

.terms-closing a:hover span,
.terms-closing a:focus-visible span {
  transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .terms-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
    gap: 48px;
  }

  .terms-snapshot__row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .terms-hero__layout,
  .terms-orders__header,
  .terms-third-party__inner,
  .terms-notes__inner {
    grid-template-columns: 1fr;
  }

  .terms-hero__copy {
    max-width: 820px;
  }

  .terms-snapshot {
    max-width: 760px;
  }

  .terms-section-head,
  .terms-details__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .terms-orders__header > p {
    max-width: 700px;
  }

  .terms-details__grid {
    grid-template-columns: 1fr;
  }

  .terms-detail + .terms-detail {
    border-top: 1px solid var(--terms-line);
    border-left: 0;
  }

  .terms-detail {
    min-height: 0;
  }

  .terms-detail__number {
    margin-bottom: 42px;
  }
}

@media (max-width: 760px) {
  .terms-hero {
    padding-bottom: 64px;
  }

  .terms-hero__breadcrumb {
    margin-bottom: 40px;
  }

  .terms-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .terms-snapshot__label {
    padding-left: 0;
    padding-right: 0;
  }

  .terms-snapshot__row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .terms-core__grid {
    grid-template-columns: 1fr;
  }

  .terms-rule {
    min-height: 0;
    padding: 34px 0 38px;
  }

  .terms-rule + .terms-rule {
    padding: 38px 0;
    border-top: 1px solid var(--terms-line);
    border-left: 0;
  }

  .terms-rule__number,
  .terms-rule:first-child .terms-rule__number {
    top: 18px;
    right: 0;
    font-size: 7rem;
  }

  .terms-rule__body {
    min-height: 320px;
  }

  .terms-orders__row {
    grid-template-columns: 48px 1fr;
    gap: 18px 22px;
    align-items: start;
  }

  .terms-orders__row > p {
    grid-column: 2;
  }

  .terms-third-party__content {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .terms-detail {
    padding-left: 0;
    padding-right: 0;
  }

  .terms-closing__inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .terms-snapshot__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .terms-snapshot__term {
    font-size: 1.28rem;
  }

  .terms-orders__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .terms-orders__row > p {
    grid-column: 1;
  }

  .terms-third-party__content {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .terms-third-party__number,
  .terms-third-party__content > div {
    padding-top: 0;
  }
}