/* Legal Pages Specific Styles (Terms, Privacy, Refund & Billing) */

/* Page Background */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
}

/* Add subtle pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 122, 182, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(216, 154, 216, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 122, 182, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.legal-hero {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Legal Content */
.legal-content {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Legal Card */
.legal-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 182, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-card:hover {
  border-color: rgba(255, 122, 182, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.legal-card:hover::before {
  opacity: 1;
}

/* Section Titles */
.legal-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #ff7ab6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.legal-section-title::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, #ff7ab6, #ff9ac6);
  border-radius: 2px;
}

/* Legal Text */
.legal-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

.legal-text a {
  color: #ff7ab6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.legal-text a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7ab6, #ff9ac6);
  transition: width 0.3s ease;
}

.legal-text a:hover::after {
  width: 100%;
}

/* CTA Section */
.legal-cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  text-align: center;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-back-btn:hover {
  background: rgba(255, 122, 182, 0.1);
  border-color: rgba(255, 122, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 182, 0.2);
}

/* Highlight Important Sections */
.legal-card:nth-child(odd) {
  border-left: 3px solid rgba(255, 122, 182, 0.3);
}

.legal-card:nth-child(even) {
  border-left: 3px solid rgba(216, 154, 216, 0.3);
}

/* Special Styling for Contact Information */
.legal-card:last-child {
  background: rgba(255, 122, 182, 0.05);
  border-color: rgba(255, 122, 182, 0.2);
}

.legal-card:last-child .legal-section-title {
  color: #ff7ab6;
}

/* Contact Button Styles */
.legal-contact-btn-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.legal-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  color: black;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.legal-contact-btn:hover {
  background: linear-gradient(135deg, #ff6ba8, #ff8bb8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 182, 0.3);
  color: black;
  text-decoration: none;
}

.legal-contact-btn:active {
  transform: translateY(0);
}

.legal-contact-btn:focus {
  outline: 2px solid #ff7ab6;
  outline-offset: 2px;
}

.legal-contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.legal-contact-btn:hover::before {
  left: 100%;
}

.legal-contact-btn svg {
  flex-shrink: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .legal-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .legal-section-title {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
  }

  .legal-section-title::before {
    left: -0.75rem;
    width: 3px;
    height: 1.25rem;
  }

  .legal-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .legal-back-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .legal-contact-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .legal-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .legal-section-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .legal-section-title::before {
    left: -0.5rem;
    width: 2px;
    height: 1rem;
  }

  .legal-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .legal-back-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .legal-contact-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Focus visible for accessibility */
.legal-back-btn:focus-visible {
  outline: 2px solid #ff7ab6;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .legal-card {
    background: white;
    color: black;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .legal-section-title {
    color: black;
    -webkit-text-fill-color: black;
  }

  .legal-text {
    color: #333;
  }
}
