/* Policy Pages Styles */

.policy-header {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
  background: var(--bg-base);
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-home-link:hover {
  color: var(--primary-gold);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
}

.policy-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.policy-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.policy-text p:last-child {
  margin-bottom: 0;
}

/* Link Styles */
.policy-text a {
  color: var(--primary-gold);
  text-decoration: underline;
  text-decoration-color: var(--primary-gold);
  text-underline-offset: 2px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.policy-text a:hover {
  color: var(--dark-brown);
  text-decoration-color: var(--dark-brown);
}

/* List Styles */
.policy-text ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.policy-text li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* H3 Styles for subsections */
.policy-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .policy-content {
    padding: 2rem 0;
  }
  
  .policy-title {
    font-size: 2rem;
  }
  
  .policy-text {
    font-size: 1rem;
  }
  
  .policy-text h2 {
    font-size: 1.3rem;
  }
  
  .policy-text h3 {
    font-size: 1.1rem;
  }
  
  .back-home-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .policy-header {
    padding: 1.5rem 0;
  }
  
  .policy-content {
    padding: 1.5rem 0;
  }
  
  .policy-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .policy-text h2 {
    margin-top: 2rem;
    font-size: 1.2rem;
  }
  
  .policy-text h3 {
    margin-top: 1.5rem;
    font-size: 1rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--text-light);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--dark-brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  display: flex;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}
