/**
 * POLICY.CSS - Стили для страницы политики конфиденциальности
 */

/* === PAGE LAYOUT === */
.policy-page {
  padding: 8rem 0 4rem;
}

.policy-header {
  text-align: center;
  margin-bottom: 4rem;
}

.policy-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.policy-title-normal {
  color: var(--foreground);
}

.policy-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-foreground);
  margin-bottom: 0;
  animation-delay: 0.1s;
}

/* === POLICY CONTENT === */
.policy-content {
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  margin: 0 auto;
  max-width: 1200px;
}

/* === POLICY SECTION === */
.policy-section {
  margin-bottom: 2rem;
}

.policy-section:last-of-type {
  margin-bottom: 3rem;
}

.policy-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.policy-section-header:hover {
  background: linear-gradient(135deg, hsla(302, 99%, 50%, 0.15), hsla(180, 87%, 57%, 0.15));
  border-color: var(--primary);
}

.policy-section-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.policy-section-icon-primary {
  color: var(--primary);
}

.policy-section-icon-secondary {
  color: var(--secondary);
}

.policy-section-title {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.policy-section-arrow {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
}

.policy-section.active .policy-section-arrow {
  transform: rotate(180deg);
}

.policy-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.policy-section.active .policy-section-content {
  max-height: 10000px;
  padding: 2rem 1.5rem 1rem;
}

/* === POLICY ITEM === */
.policy-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.policy-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-item-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Color matching with section icons */
.policy-section[data-section-color="primary"] .policy-item-number {
  color: var(--primary);
  background: hsla(302, 99%, 50%, 0.2);
}

.policy-section[data-section-color="secondary"] .policy-item-number {
  color: var(--secondary);
  background: hsla(180, 87%, 57%, 0.2);
}

.policy-item-text {
  flex: 1;
  color: var(--foreground);
  line-height: 1.7;
  margin: 0;
}

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

.policy-item-text a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* === ANIMATIONS === */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
  opacity: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1920px) {
  .policy-page {
    padding: 3rem 0 2rem;
    transform: scale(0.9);
  }

  .policy-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 1023px) {
  .policy-page {
    padding: 2rem 0 1rem;
    transform: scale(1);
  }
  
  .policy-header {
    margin-bottom: 2rem;
  }
  
  .policy-content {
    padding: 2rem 1.5rem;
  }
  
  .policy-section-header {
    padding: 1rem;
  }
  
  .policy-section-icon {
    width: 40px;
    height: 40px;
  }
  
  .policy-section-title {
    font-size: 1.125rem;
  }
  
  .policy-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .policy-item-number {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .policy-content {
    padding: 1.5rem 1rem;
  }
  
  .policy-section-header {
    gap: 0.75rem;
  }
  
  .policy-section-title {
    font-size: 1rem;
  }
}
