/* Policy Pages Styling */
:root {
  --primary-color: #6134b7;
  --primary-light: #c77dff;
  --primary-dark: #1a1a1a;
  --text-color: #333;
  --text-light: #666;
  --background-color: #fff;
  --background-alt: #f9f9f9;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-start: #6134b7;
  --gradient-end: #6134b7;
}

/* Hero Section */
.policy-hero {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.policy-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/pattern-light.svg");
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.policy-hero .container {
  position: relative;
  z-index: 2;
}

.policy-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.last-updated {
  font-size: 1.3rem;
  opacity: 0.8;
}

/* Policy Content */
.policy-content {
  padding: 60px 0;
  background-color: var(--background-color);
}

.policy-content .container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Table of Contents */
.policy-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background-color: var(--background-alt);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.policy-toc h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}

.policy-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-toc li {
  margin-bottom: 10px;
}

.policy-toc a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.policy-toc a:hover {
  color: var(--primary-color);
}

/* Policy Sections */
.policy-sections {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 40px;
}

.policy-sections section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.policy-sections h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.policy-sections h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 25px 0 15px;
}

.policy-sections p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-light);
}

.policy-sections ul,
.policy-sections ol {
  margin: 15px 0;
  padding-left: 20px;
}

.policy-sections li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-light);
}

.policy-sections a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.policy-sections a:hover {
  text-decoration: underline;
}

.contact-info {
  background-color: var(--background-alt);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top i {
  font-size: 20px;
}

/* Active state for footer links */
.footer-col ul li a.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .policy-content .container {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .policy-hero {
    padding: 100px 0 40px;
  }

  .policy-hero h1 {
    font-size: 2rem;
  }

  .policy-sections {
    padding: 25px;
  }

  .policy-sections h2 {
    font-size: 1.5rem;
  }

  .policy-sections h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .policy-hero h1 {
    font-size: 1.8rem;
  }

  .policy-sections {
    padding: 20px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}
