:root {
  --white: #fff;
  --primary: #662570;
  --secondary: #c13065;
  --gradient: linear-gradient(90deg, #662570 0%, #c13065 100%);
  --bg-color: #f3f4f8;
  --bg-white: #ffffff;
  --bg-light: #e2e2e2;
  --transparent: rgba(0, 0, 0, 0);
  --text-dark: #747474;
  --text-black: #0e0e0f;
  --text-light: #2e2d2d;
  --background: #f6f6f6;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--bg-color);
  font-family: 'Roboto', 'Helvetica', sans-serif;
}

.policy-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.policy-card {
  border-radius: 24px;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.08);
  background: var(--bg-white);
  overflow: hidden;
  transition: all 0.3s ease;
}

.policy-header {
  background: var(--gradient);
  color: var(--white);
  padding: 35px 25px;
  text-align: center;
  position: relative;
}

.policy-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E") center bottom no-repeat;
  background-size: 100% 100%;
}

.policy-header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.policy-content {
  padding: 40px 30px;
}

.policy-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.policy-section:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.policy-section.with-bg {
  background-color: rgba(102, 37, 112, 0.03);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

h2 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
  border-left: 4px solid var(--secondary);
  display: flex;
  align-items: center;
}

h2 i {
  margin-right: 10px;
  color: var(--secondary);
}

h3 {
  color: var(--text-black);
  font-size: 20px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 15px;
}

h4 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 10px;
}

p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 15px;
}

ul, ol {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.enhanced-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  margin: 25px 0;
}

.list-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 20px;
  transition: all 0.3s ease;
}

.list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.icon-container {
  background: var(--gradient);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.item-content {
  flex: 1;
}

.item-content p {
  margin: 0;
  font-size: 14px;
}

.alert {
  background-color: rgba(255, 248, 225, 0.5);
  border-left: none;
  padding: 20px;
  margin: 30px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.alert-info {
  background-color: rgba(102, 37, 112, 0.05);
}

.alert-icon {
  margin-right: 15px;
  font-size: 24px;
  color: var(--primary);
}

.alert-content {
  flex: 1;
}

strong {
  font-weight: 600;
  color: var(--text-black);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.collaboration-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.col-image {
  flex: 0 0 150px;
  margin-right: 30px;
}

.col-image img {
  width: 100%;
  border-radius: 10px;
}

.col-text {
  flex: 1;
}

.info-badge {
  background-color: rgba(102, 37, 112, 0.08);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
}

.info-badge i {
  color: var(--primary);
  margin-right: 5px;
}

.policy-update-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.02);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.last-update {
  display: flex;
  align-items: center;
}

.update-label {
  font-weight: 500;
  margin-right: 5px;
}

.update-date {
  color: var(--primary);
  font-weight: 500;
}

.version-info {
  background-color: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.policy-changelog-toggle {
  margin-top: 20px;
}

.changelog-button {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: rgba(0,0,0,0.02);
  border-radius: 8px;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.changelog-button:hover {
  background-color: rgba(0,0,0,0.05);
  text-decoration: none;
}

.changelog-button i {
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.changelog-button.active i {
  transform: rotate(180deg);
}

.changelog-content {
  background-color: rgba(0,0,0,0.02);
  padding: 20px;
  border-radius: 0 0 8px 8px;
  margin-top: -5px;
}

.changelog-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.changelog-item:last-child {
  border-bottom: none;
}

.version {
  font-weight: 600;
  color: var(--primary);
}

.contact-section {
  background: linear-gradient(135deg, rgba(102, 37, 112, 0.05) 0%, rgba(193, 48, 101, 0.05) 100%);
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
}

.contact-container {
  margin-top: 25px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  margin-bottom: 30px;
}

.contact-card {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: white;
}

.contact-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  margin-top: 5px;
}

.availability {
  font-size: 12px;
  color: #28a745;
  margin-top: 8px;
}

.report-cta {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.report-cta h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.gradient-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(102, 37, 112, 0.3);
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 37, 112, 0.4);
  color: white;
  text-decoration: none;
}

.report-button {
  padding: 14px 30px;
  font-size: 16px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.outline-button {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.outline-button:hover {
  background-color: rgba(102, 37, 112, 0.05);
  color: var(--primary);
  text-decoration: none;
}

.divider {
  height: 1px;
  background-color: rgba(0,0,0,0.05);
  margin: 40px 0;
}

.policy-footer {
  text-align: center;
  padding: 25px;
  color: var(--text-dark);
  font-size: 14px;
  background-color: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .policy-container {
    margin: 15px;
    padding: 0;
  }
  
  .policy-content {
    padding: 25px 20px;
  }
  
  .policy-header h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .enhanced-list {
    grid-template-columns: 1fr;
  }
  
  .collaboration-info {
    flex-direction: column;
  }
  
  .col-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .gradient-button, .outline-button {
    width: 100%;
    text-align: center;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* Animation for items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Dark theme support */
.dark-theme {
  --bg-color: #121212;
  --bg-white: #1e1e1e;
  --bg-light: #333333;
  --text-dark: #b0b0b0;
  --text-black: #e0e0e0;
  --text-light: #cccccc;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

.dark-theme .list-item,
.dark-theme .contact-card,
.dark-theme .report-cta {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .alert-info {
  background-color: rgba(102, 37, 112, 0.15);
}
