/*---------------------------------------
  TERMS AND CONDITIONS PAGE STYLES             
-----------------------------------------*/

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #000000 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/nicholas-green-unsplash-blur.jpg') center/cover;
  opacity: 0.3;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
  opacity: 0.9;
  font-weight: 300;
}

.last-updated {
  font-size: 1rem;
  color: #ffffff;
  opacity: 0.8;
  font-style: italic;
  margin: 0;
}

/* Terms Content */
.terms-content {
  background-color: var(--white-color);
  padding: 80px 0;
}

.content-wrapper {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #DA7501 0%, #EE5007 50%, #3b82f6 100%);
}

.content-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, #DA7501, #EE5007);
  border-radius: 2px;
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 30px 0 15px 0;
  position: relative;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--p-color);
  margin-bottom: 20px;
  text-align: justify;
}

.content-section ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.content-section li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--p-color);
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.content-section li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  color: #DA7501;
  font-size: 0.8rem;
}

.content-section strong {
  color: var(--dark-color);
  font-weight: 600;
}

/* Contact Info Styling */
.contact-info {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
  border-left: 4px solid #DA7501;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-info a {
  color: #DA7501;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #EE5007;
  text-decoration: underline;
}

/* Table of Contents (if needed) */
.table-of-contents {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  border-left: 4px solid #3b82f6;
}

.table-of-contents h3 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: var(--p-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Highlighted Sections */
.highlight-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  border-left: 4px solid #DA7501;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-box p {
  margin: 0;
  font-weight: 500;
  color: var(--dark-color);
}

/* Important Notice */
.important-notice {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  position: relative;
}

.important-notice::before {
  content: '⚠️';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
}

.important-notice p {
  margin-left: 40px;
  margin-bottom: 0;
  font-weight: 500;
  color: #856404;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .page-title {
    font-size: 3rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .content-wrapper {
    padding: 40px;
  }
  
  .content-section h2 {
    font-size: 1.8rem;
  }
  
  .content-section h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 767px) {
  .page-header {
    padding: 100px 0 60px;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .terms-content {
    padding: 60px 0;
  }
  
  .content-wrapper {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .content-section {
    margin-bottom: 40px;
    padding-bottom: 25px;
  }
  
  .content-section h2 {
    font-size: 1.6rem;
    padding-left: 15px;
  }
  
  .content-section h2::before {
    width: 3px;
    height: 25px;
  }
  
  .content-section h3 {
    font-size: 1.2rem;
  }
  
  .content-section p {
    font-size: 1rem;
    text-align: left;
  }
  
  .content-section li {
    font-size: 1rem;
    padding-left: 20px;
  }
  
  .contact-info {
    padding: 20px;
  }
  
  .contact-info p {
    font-size: 1rem;
  }
  
  .highlight-box,
  .important-notice {
    padding: 20px;
  }
  
  .important-notice::before {
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
  }
  
  .important-notice p {
    margin-left: 35px;
  }
}

@media screen and (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  .content-wrapper {
    padding: 20px 15px;
  }
  
  .content-section h2 {
    font-size: 1.4rem;
  }
  
  .content-section h3 {
    font-size: 1.1rem;
  }
  
  .content-section p {
    font-size: 0.95rem;
  }
  
  .content-section li {
    font-size: 0.95rem;
  }
  
  .contact-info {
    padding: 15px;
  }
  
  .contact-info p {
    font-size: 0.95rem;
  }
}

/* Print Styles */
@media print {
  .page-header {
    background: none !important;
    color: #000 !important;
    padding: 20px 0;
  }
  
  .page-title,
  .page-subtitle,
  .last-updated {
    color: #000 !important;
  }
  
  .content-wrapper {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .content-section h2::before {
    background: #000 !important;
  }
  
  .content-section li::before {
    color: #000 !important;
  }
  
  .highlight-box,
  .important-notice {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
  }
  
  .contact-info {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
  }
}

/* Accessibility Improvements */
.content-section h2:focus,
.content-section h3:focus {
  outline: 2px solid #DA7501;
  outline-offset: 2px;
}

.contact-info a:focus {
  outline: 2px solid #DA7501;
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #DA7501, #EE5007);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(218, 117, 1, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(218, 117, 1, 0.4);
}

.back-to-top.show {
  display: flex;
}
