/* =========================================
   HERO
========================================= */

.terms-hero {
  padding: 95px 0;
  background: var(--cream);
  text-align: center;
}

.terms-hero .container {
  max-width: 780px;
}

.terms-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 15px;
}

.terms-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}


/* =========================================
   LAYOUT
========================================= */

.terms-section {
  padding: 90px 0 110px;
  background: #fff;
}

.terms-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 75px;
  align-items: start;
}


/* =========================================
   SIDEBAR
========================================= */

.terms-sidebar {
  position: sticky;
  top: 110px;
}

.terms-sidebar h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 18px;
}

.terms-sidebar a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  transition: 0.2s ease;
}

.terms-sidebar a:hover {
  color: var(--brown);
  padding-left: 4px;
}


/* =========================================
   TERMS BLOCK
========================================= */

.terms-block {
  padding-bottom: 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.terms-block h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--dark);
  margin-bottom: 18px;
}

.terms-block > p {
  max-width: 820px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 13px;
}


/* NOTE */

.terms-note {
  max-width: 780px;
  margin-top: 23px;
  padding: 20px 22px;
  background: var(--cream);
  border-left: 3px solid var(--brown);
}

.terms-note strong {
  display: block;
  color: var(--dark);
  font-size: 12px;
  margin-bottom: 5px;
}

.terms-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}


/* =========================================
   LUXURY FITTING TABLE
========================================= */

.luxury-fitting-table {
  width: 100%;
  max-width: 850px;

  margin-top: 35px;

  background: #ffffff;

  border: 1px solid #e6dfd7;

  border-radius: 14px;

  overflow: visible;

  box-shadow:
    0 12px 35px rgba(39, 31, 23, 0.06);

  position: relative;
}


/* =========================================
   TABLE HEADER
========================================= */

.luxury-table-header {
  min-height: 95px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  background:
    linear-gradient(
      180deg,
      #fbf8f3,
      #f7f2eb
    );

  border-radius: 14px 14px 0 0;

  border-bottom: 1px solid #e7ded4;
}


.luxury-head-item {
  min-height: 95px;

  display: flex;
  align-items: center;

  gap: 16px;

  padding: 0 35px;

  color: #4c3320;

  font-size: 13px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.7px;
}


.charge-head {
  border-left: 1px solid #e7ded4;
}


.luxury-head-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  flex: 0 0 42px;

  border-radius: 50%;

  background: #eee5da;

  color: #9b6b36;

  font-size: 17px;
}


/* =========================================
   ROW
========================================= */

.luxury-table-row {
  min-height: 72px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  position: relative;

  border-bottom: 1px solid #eee7df;

  background: #ffffff;

  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease;

  z-index: 1;
}


.luxury-table-row:last-child {
  border-bottom: none;

  border-radius: 0 0 14px 14px;
}


/* LEFT SIDE */

.luxury-size {
  min-height: 72px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 0 35px;

  border-right: 1px solid #eee7df;

  color: #27231f;

  font-size: 16px;
}


.row-arrow {
  color: #a47035;

  font-size: 28px;

  line-height: 1;

  transform: translateX(0);

  transition: transform 0.3s ease;
}


/* PRICE */

.luxury-table-row > strong {
  padding: 0 38px;

  text-align: right;

  color: #171512;

  font-size: 17px;

  font-weight: 700;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}


/* =========================================
   LUXURY HOVER ANIMATION
========================================= */

.luxury-table-row:hover {
  transform: scale(1.018);

  background:
    linear-gradient(
      90deg,
      #fffaf3,
      #fdf8f1
    );

  border: 1px solid #dfc6a7;

  border-radius: 10px;

  box-shadow:
    0 14px 28px rgba(80, 55, 30, 0.12);

  z-index: 5;
}


.luxury-table-row:hover .row-arrow {
  transform: translateX(5px);
}


.luxury-table-row:hover > strong {
  color: #9a672c;

  transform: translateX(-4px);
}


.luxury-table-row:hover .luxury-size {
  color: #815929;

  border-right-color: rgba(196, 160, 116, 0.35);
}


/* =========================================
   BOTTOM DECORATION
========================================= */

.luxury-table-decoration {
  width: 260px;

  margin: 28px auto 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;
}


.luxury-table-decoration span {
  height: 1px;

  flex: 1;

  background:
    linear-gradient(
      90deg,
      transparent,
      #c8914e
    );
}


.luxury-table-decoration span:last-child {
  background:
    linear-gradient(
      90deg,
      #c8914e,
      transparent
    );
}


.luxury-table-decoration b {
  color: #c8914e;

  font-size: 16px;

  font-weight: 400;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .luxury-table-header {
    min-height: 72px;
  }


  .luxury-head-item {
    min-height: 72px;

    padding: 0 16px;

    gap: 8px;

    font-size: 9px;

    letter-spacing: 1px;
  }


  .luxury-head-icon {
    width: 31px;
    height: 31px;

    flex-basis: 31px;

    font-size: 12px;
  }


  .luxury-table-row {
    min-height: 62px;
  }


  .luxury-size {
    min-height: 62px;

    padding: 0 17px;

    font-size: 13px;
  }


  .luxury-table-row > strong {
    padding: 0 18px;

    font-size: 14px;
  }


  .row-arrow {
    font-size: 21px;
  }


  .luxury-table-row:hover {
    transform: scale(1.01);
  }

}

/* =========================================
   CONTACT CTA
========================================= */

.terms-contact {
  padding: 40px;
  background: var(--dark);
  color: #fff;
}

.terms-contact > span {
  display: block;
  color: #c8ad92;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.terms-contact h2 {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  margin-bottom: 8px;
}

.terms-contact p {
  max-width: 570px;
  color: #bdb8b1;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.terms-contact a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #fff;
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 850px) {

  .terms-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .terms-sidebar {
    position: static;
  }

}

@media (max-width: 650px) {

  .terms-hero,
  .terms-section {
    padding: 70px 0;
  }

  .terms-block {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .terms-contact {
    padding: 30px 24px;
  }

}