/**
 * Salkantay Treks Peru - Legal Pages
 */

.stp-legal-page {
  background: #f8fafc;
}

.stp-legal-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.stp-legal-summary {
  position: sticky;
  top: 110px;
  padding: 1.35rem;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
}

.stp-legal-summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: #2d6a4f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stp-legal-summary strong {
  display: block;
  margin-bottom: 0.8rem;
  color: #102a43;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.2;
}

.stp-legal-summary p {
  margin: 0 0 1rem;
  color: #52616b;
  line-height: 1.65;
}

.stp-legal-summary a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #2d6a4f;
  font-weight: 850;
  text-decoration: none;
}

.stp-legal-summary a i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.stp-legal-summary a:hover i,
.stp-legal-summary a:focus i {
  transform: translateX(3px);
}

.stp-legal-content {
  display: grid;
  gap: 1rem;
}

.stp-legal-content > *:first-child {
  margin-top: 0;
}

.stp-legal-content h2,
.stp-legal-content h3 {
  color: #102a43;
  font-weight: 850;
  line-height: 1.25;
}

.stp-legal-content h2 {
  font-size: 1.45rem;
}

.stp-legal-content h3 {
  font-size: 1.15rem;
}

.stp-legal-content p,
.stp-legal-content li {
  color: #52616b;
  font-size: 1rem;
  line-height: 1.75;
}

.stp-legal-content a {
  color: #2d6a4f;
  font-weight: 750;
}

.stp-legal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 42, 67, 0.07);
}

.stp-legal-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e7f5ef;
  color: #2d6a4f;
}

.stp-legal-item h2 {
  margin: 0 0 0.45rem;
}

.stp-legal-item p {
  margin: 0;
}

@media (max-width: 991.98px) {
  .stp-legal-section {
    padding: 3.5rem 0;
  }

  .stp-legal-summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .stp-legal-item {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Terms & Conditions Page
   ========================================================================== */

.stp-terms-section {
  padding: 4.5rem 0;
  background: #f8fafc;
}

.stp-terms-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 3.5rem 3rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.05);
}

.stp-terms-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #475569;
}

.stp-terms-content > *:first-child {
  margin-top: 0 !important;
}

.stp-terms-content > *:last-child {
  margin-bottom: 0 !important;
}

.stp-terms-content h1,
.stp-terms-content h2,
.stp-terms-content h3,
.stp-terms-content h4,
.stp-terms-content h5,
.stp-terms-content h6 {
  color: #102a43;
  font-weight: 800;
  line-height: 1.3;
}

.stp-terms-content h1 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.stp-terms-content h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
}

.stp-terms-content h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.stp-terms-content h4 {
  font-size: 1.05rem;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.stp-terms-content p {
  margin-bottom: 1.25rem;
}

.stp-terms-content ul,
.stp-terms-content ol {
  margin-top: 0.5rem;
  margin-bottom: 1.35rem;
  padding-left: 1.75rem;
}

.stp-terms-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.stp-terms-content ul {
  list-style-type: disc;
}

.stp-terms-content strong,
.stp-terms-content b {
  color: #1e293b;
  font-weight: 700;
}

.stp-terms-content a {
  color: #2d6a4f;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.stp-terms-content a:hover,
.stp-terms-content a:focus {
  color: #1b4332;
}

.stp-terms-content blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid #2d6a4f;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}

.stp-terms-content hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 2.25rem 0;
}

.stp-terms-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.stp-terms-content table th,
.stp-terms-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.stp-terms-content table th {
  background-color: #f8fafc;
  color: #102a43;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .stp-terms-section {
    padding: 3.5rem 0;
  }
  .stp-terms-card {
    padding: 2.75rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .stp-terms-section {
    padding: 2.5rem 0;
  }
  .stp-terms-card {
    padding: 1.75rem 1.25rem;
    border-radius: 8px;
  }
  .stp-terms-content {
    font-size: 1rem;
    line-height: 1.75;
  }
  .stp-terms-content h2 {
    font-size: 1.25rem;
  }
  .stp-terms-content h3 {
    font-size: 1.1rem;
  }
}
