/* Legal Pages Styling */

.legal-hero {
  position: relative;
  padding: 120px 0 60px;
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.9) 0%, rgba(0, 160, 160, 0.8) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/3209049/pexels-photo-3209049.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.legal-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.legal-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-hero p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  opacity: 0.9;
}

.legal-content {
  padding: 60px 0;
  background-color: #fff;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}

.policy-nav {
  width: 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.policy-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.policy-nav li {
  border-bottom: 1px solid #eee;
}

.policy-nav li:last-child {
  border-bottom: none;
}

.policy-nav a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
}

.policy-nav a:hover {
  background-color: rgba(0, 128, 128, 0.1);
  color: #008080;
  padding-left: 20px;
}

.policy-content {
  flex: 1;
}

.policy-section {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(to right, #f8f8f8, #fff);
  cursor: pointer;
}

.section-header h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.toggle-button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-button::before,
.toggle-button::after {
  content: '';
  position: absolute;
  background-color: #008080;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.toggle-button::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.toggle-button::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.policy-section.active .toggle-button::after {
  transform: translateX(-50%) scaleY(0);
}

.section-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.policy-section.active .section-content {
  padding: 0 25px 25px;
  max-height: 1000px;
}

.section-content p,
.section-content ul,
.section-content ol {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: #444;
}

.section-content h4 {
  font-family: 'Playfair Display', serif;
  margin: 20px 0 10px;
  color: #008080;
}

.section-content ul,
.section-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.section-content li {
  margin-bottom: 8px;
}

address {
  font-style: normal;
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 6px;
  border-left: 3px solid #008080;
}

/* Initial state - open first section */
.policy-section:first-child {
  border-left: 3px solid #008080;
}

.policy-section:first-child .section-content {
  max-height: 1000px;
  padding: 0 25px 25px;
}

.policy-section:first-child .toggle-button::after {
  transform: translateX(-50%) scaleY(0);
}

/* Responsive styles */
@media (max-width: 900px) {
  .legal-container {
    flex-direction: column;
  }
  
  .policy-nav {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  
  .policy-nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  
  .policy-nav li {
    flex: 1 1 auto;
    min-width: 150px;
    border-bottom: none;
    border-right: 1px solid #eee;
  }
  
  .policy-nav a {
    text-align: center;
    padding: 10px;
  }
  
  .policy-nav a:hover {
    padding-left: 10px;
  }
}

@media (max-width: 600px) {
  .legal-hero h2 {
    font-size: 2.2rem;
  }
  
  .policy-nav ul {
    flex-direction: column;
  }
  
  .policy-nav li {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  
  .policy-nav a {
    text-align: left;
  }
  
  .policy-nav a:hover {
    padding-left: 20px;
  }
  
  .section-header h3 {
    font-size: 1.3rem;
  }
}