/* =========================================================
   Terms Page
   File: css/terms.css
   ========================================================= */

.terms-page {
  background: #fffdf8;
}

/* =========================================================
   Hero
   ========================================================= */

.terms-hero-section {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #021d13;
}

.terms-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.terms-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.16) 0%,
      rgba(2, 29, 19, 0.50) 45%,
      rgba(2, 29, 19, 0.90) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 29, 19, 0.18),
      rgba(2, 29, 19, 0.42)
    );
}

.terms-hero-content {
  position: relative;
  z-index: 2;
  min-height: 460px;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding: 64px 0;
}

.terms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.terms-breadcrumb a {
  color: #ead28a;
  font-weight: 700;
}

.terms-breadcrumb strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.terms-label,
.terms-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.terms-label::before,
.terms-label::after,
.terms-section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #d5ad58;
}

.terms-hero-content h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.45;
}

.terms-hero-content p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 2.05;
}

.terms-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.terms-btn-primary,
.terms-btn-outline {
  min-width: 188px;
  height: 54px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  transition: 0.25s ease;
}

.terms-btn-primary {
  background: linear-gradient(135deg, #e4c16c, #b98935);
  color: #021d13;
}

.terms-btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.terms-btn-primary:hover,
.terms-btn-outline:hover {
  transform: translateY(-3px);
}

/* =========================================================
   Notice
   ========================================================= */

.terms-notice-section {
  background: #fffdf8;
  padding: 34px 0 0;
}

.terms-notice-box {
  border: 1px solid rgba(213, 173, 88, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 30%, rgba(213, 173, 88, 0.12), transparent 220px),
    #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
}

.terms-notice-box > i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.terms-notice-box h2 {
  margin: 0 0 6px;
  color: #063522;
  font-size: 20px;
  font-weight: 900;
}

.terms-notice-box p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.terms-notice-box > span {
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================
   Main
   ========================================================= */

.terms-main-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 48px 0 70px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}

.terms-sidebar {
  position: sticky;
  top: 155px;
  display: grid;
  gap: 18px;
}

.terms-sidebar-box,
.terms-help-box {
  border: 1px solid #e9dfc9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
}

.terms-sidebar-box {
  padding: 24px;
}

.terms-sidebar-box h2 {
  margin: 0 0 18px;
  color: #063522;
  font-size: 22px;
  font-weight: 900;
}

.terms-sidebar-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.terms-sidebar-box a {
  min-height: 42px;
  border-radius: 10px;
  background: #fffdf8;
  color: #063522;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.terms-sidebar-box a:hover,
.terms-sidebar-box a.active {
  background: #07452e;
  color: #ffffff;
}

.terms-help-box {
  padding: 26px 22px;
  text-align: center;
}

.terms-help-box i {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 34px;
}

.terms-help-box h3 {
  margin: 0 0 8px;
  color: #063522;
  font-size: 19px;
  font-weight: 900;
}

.terms-help-box p {
  margin: 0 0 14px;
  color: #626a63;
  font-size: 14px;
  line-height: 1.9;
}

.terms-help-box a {
  height: 42px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
  transition: 0.25s ease;
}

.terms-help-box a:hover {
  background: #d5ad58;
  color: #021d13;
}

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

.terms-content-head {
  margin-bottom: 24px;
}

.terms-content-head h2 {
  margin: 0 0 10px;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
}

.terms-content-head p {
  margin: 0;
  color: #626a63;
  font-size: 16px;
  line-height: 2;
}

.terms-card {
  scroll-margin-top: 150px;
  position: relative;
  border: 1px solid #e9dfc9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.032);
  padding: 30px 32px 30px 32px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  transition: 0.25s ease;
}

.terms-card:hover {
  border-color: rgba(213, 173, 88, 0.75);
  box-shadow: 0 16px 34px rgba(4, 53, 35, 0.08);
}

.terms-card-number {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(213, 173, 88, 0.95), rgba(185, 137, 53, 0.95));
  color: #021d13;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.terms-card-body h3 {
  margin: 0 0 12px;
  color: #063522;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.55;
}

.terms-card-body p {
  margin: 0 0 12px;
  color: #59635c;
  font-size: 15px;
  line-height: 2.15;
}

.terms-card-body p:last-child {
  margin-bottom: 0;
}

.terms-card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.terms-card-body li {
  position: relative;
  color: #59635c;
  font-size: 15px;
  line-height: 2;
  padding-right: 22px;
}

.terms-card-body li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5ad58;
}

.terms-card-body strong {
  color: #063522;
  font-weight: 900;
}

.terms-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.terms-contact-grid a {
  min-height: 58px;
  border: 1px solid #e9dfc9;
  border-radius: 12px;
  background: #fffdf8;
  color: #063522;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.terms-contact-grid a:hover {
  border-color: #d5ad58;
  background: #07452e;
  color: #ffffff;
}

.terms-contact-grid i {
  color: #9c762e;
  font-size: 20px;
}

.terms-contact-grid a:hover i {
  color: #d5ad58;
}

/* =========================================================
   Summary CTA
   ========================================================= */

.terms-summary-section {
  background: #fffdf8;
  padding: 0 0 66px;
}

.terms-summary-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 45%, rgba(213, 173, 88, 0.16), transparent 260px),
    linear-gradient(135deg, #021d13, #07452e);
  border: 1px solid rgba(213, 173, 88, 0.35);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.13);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 42px 46px;
}

.terms-summary-box h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.55;
}

.terms-summary-box p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 2;
}

.terms-summary-box > a {
  height: 54px;
  min-width: 210px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  transition: 0.25s ease;
}

.terms-summary-box > a:hover {
  transform: translateY(-3px);
}

.terms-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
  .terms-hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .terms-breadcrumb,
  .terms-label,
  .terms-hero-actions {
    justify-content: center;
  }

  .terms-notice-box {
    grid-template-columns: 58px 1fr;
  }

  .terms-notice-box > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .terms-sidebar {
    position: static;
  }

  .terms-sidebar-box ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .terms-summary-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .terms-summary-box .terms-section-label {
    justify-content: center;
  }

  .terms-summary-box > a {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .terms-hero-section,
  .terms-hero-content {
    min-height: 450px;
  }

  .terms-hero-content {
    padding: 48px 0;
  }

  .terms-hero-content h1 {
    font-size: 31px;
    line-height: 1.6;
  }

  .terms-hero-content p {
    font-size: 15px;
    line-height: 2;
  }

  .terms-hero-actions {
    flex-direction: column;
  }

  .terms-btn-primary,
  .terms-btn-outline {
    width: 100%;
  }

  .terms-notice-section {
    padding: 28px 0 0;
  }

  .terms-notice-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 18px;
  }

  .terms-notice-box > i {
    margin: 0 auto;
  }

  .terms-notice-box > span {
    justify-self: center;
    white-space: normal;
  }

  .terms-main-section {
    padding: 34px 0 46px;
  }

  .terms-sidebar-box {
    padding: 18px;
  }

  .terms-sidebar-box ul {
    grid-template-columns: 1fr;
  }

  .terms-content-head h2 {
    font-size: 27px;
  }

  .terms-content-head p {
    font-size: 14px;
  }

  .terms-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 18px;
    scroll-margin-top: 120px;
  }

  .terms-card-number {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 20px;
  }

  .terms-card-body h3 {
    font-size: 21px;
  }

  .terms-card-body p,
  .terms-card-body li {
    font-size: 14px;
  }

  .terms-contact-grid {
    grid-template-columns: 1fr;
  }

  .terms-summary-section {
    padding: 0 0 44px;
  }

  .terms-summary-box {
    border-radius: 14px;
    padding: 32px 20px;
  }

  .terms-summary-box h2 {
    font-size: 24px;
  }

  .terms-summary-box p {
    font-size: 14px;
  }

  .terms-summary-box > a {
    width: 100%;
  }
}