/**
 * MELT — detailed CGV document block only (cms.cgv_content).
 * Scoped to .cgv-detail-* — does not affect other legal page sections.
 */

.cgv-detail-section {
  border-top: 1px solid rgba(196, 132, 45, 0.28);
  padding-top: 2.5rem;
  margin-top: 0.5rem;
}

.cgv-detail-section .cgv-detail-heading {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3125rem, 2.6vw, 1.625rem);
  font-weight: 600;
  color: #3D2314;
  line-height: 1.25;
  margin: 0 0 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(196, 132, 45, 0.2);
  position: relative;
}

.cgv-detail-section .cgv-detail-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, #C4842D, #D4A853);
  border-radius: 1px;
}

.cgv-detail-document {
  background: #FFFCF8;
  border: 1px solid rgba(108, 70, 38, 0.11);
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(61, 35, 20, 0.05);
  padding: 1.35rem 1.25rem;
}

@media (min-width: 768px) {
  .cgv-detail-document {
    padding: 2rem 2.25rem;
  }
}

.cgv-detail-content {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5C4030;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .cgv-detail-content {
    font-size: 16px;
  }
}

.cgv-detail-content > :first-child {
  margin-top: 0;
}

.cgv-detail-content > :last-child {
  margin-bottom: 0;
}

.cgv-detail-content h2,
.cgv-detail-content h3,
.cgv-detail-content h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color: #3D2314;
  line-height: 1.3;
}

.cgv-detail-content h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  margin: 2rem 0 0.65rem;
  padding-left: 0.85rem;
  border-left: 3px solid #C4842D;
}

.cgv-detail-content h3 {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  margin: 1.65rem 0 0.5rem;
  padding-left: 0.85rem;
  border-left: 3px solid rgba(196, 132, 45, 0.55);
}

.cgv-detail-content h3:first-child {
  margin-top: 0;
}

.cgv-detail-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.45rem;
}

.cgv-detail-content p {
  margin: 0 0 1rem;
  color: #5C4030;
}

.cgv-detail-content p + h2,
.cgv-detail-content p + h3,
.cgv-detail-content p + h4 {
  margin-top: 1.85rem;
}

.cgv-detail-content ul,
.cgv-detail-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.45rem;
}

.cgv-detail-content ul {
  list-style: none;
}

.cgv-detail-content ul > li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.cgv-detail-content ul > li::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C4842D;
}

.cgv-detail-content ol {
  list-style: decimal;
}

.cgv-detail-content ol > li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.cgv-detail-content ol > li::marker {
  color: #C4842D;
  font-weight: 600;
}

.cgv-detail-content a {
  color: #C4842D;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.cgv-detail-content a:hover {
  color: #A67040;
}

.cgv-detail-content a:focus-visible {
  outline: 2px solid #C4842D;
  outline-offset: 2px;
  border-radius: 2px;
}

.cgv-detail-content strong {
  font-weight: 600;
  color: #3D2314;
}

.cgv-detail-content em {
  font-style: italic;
}

.cgv-detail-content blockquote {
  margin: 1.1rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid #D4A853;
  background: rgba(212, 168, 83, 0.08);
  border-radius: 0 8px 8px 0;
  color: #4A2E1A;
}

.cgv-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  font-size: 0.9375rem;
}

.cgv-detail-content th,
.cgv-detail-content td {
  border: 1px solid rgba(108, 70, 38, 0.14);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.cgv-detail-content th {
  background: rgba(212, 168, 83, 0.1);
  color: #3D2314;
  font-weight: 600;
}

@media (max-width: 767px) {
  .cgv-detail-section {
    padding-top: 2rem;
  }

  .cgv-detail-document {
    padding: 1.15rem 1rem;
  }

  .cgv-detail-content {
    font-size: 15px;
  }
}
