/* ===== PREMIUM LEGAL PAGES STYLES ===== */

/* Legal Page Container */
.legal-page {
  background-color: var(--off-white-cream);
  min-height: 100vh;
  padding-top: 0; /* Remove padding-top to allow hero section to go full height */
}

/* Hero Section */
.legal-hero {
  background: linear-gradient(135deg, var(--deep-muted-green) 0%, #2a4a3f 100%);
  padding: calc(var(--header-height) + 4rem) 0 3rem 0; /* Add header height to top padding */
  position: relative;
  overflow: hidden;
  min-height: 60vh; /* Ensure adequate height for transparent header effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.legal-hero-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.legal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--off-white-cream);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  animation: titleFadeIn 1s ease-out;
}

.legal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(253, 253, 245, 0.9);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: subtitleFadeIn 1s ease-out 0.2s both;
}

.legal-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  animation: metaFadeIn 1s ease-out 0.4s both;
}

.last-updated {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(218, 165, 32, 0.9);
  background: rgba(218, 165, 32, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Content Section */
.legal-content {
  padding: 4rem 0;
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-section {
  margin-bottom: 4rem;
  animation: sectionFadeIn 0.8s ease-out;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--muted-gold), transparent);
  border-radius: 2px;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfdf5 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(218, 165, 32, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--muted-gold), var(--gold-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(218, 165, 32, 0.2);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;

}

.info-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 1rem;
}

.info-card p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
}

/* Usage List */
.usage-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.usage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fdfdf5 100%);
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.1);
  transition: all 0.3s ease;
}

.usage-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(218, 165, 32, 0.2);
}

.usage-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
  color: var(--deep-green-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.usage-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 0.5rem;
}

.usage-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Protection Grid */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.protection-item {
  background: linear-gradient(135deg, #ffffff 0%, #fdfdf5 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.protection-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.protection-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.4rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 0.8rem;
}

.protection-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Elegant Rights Container */
.rights-elegant-container {
  margin-top: 2rem;
}

.rights-content-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfdf5 100%);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.15);
}

.rights-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: rightsGlow 6s ease-in-out infinite;
}

@keyframes rightsGlow {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.rights-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
  z-index: 2;
}

.rights-main-text {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.rights-main-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.rights-main-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

.rights-contact-section {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(218, 165, 32, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #8b7355;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.elegant-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
  color: var(--deep-green-text);
  padding: 1rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(218, 165, 32, 0.3);
}

.elegant-contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
  background: linear-gradient(135deg, var(--gold-accent), #f4d03f);
}

.email-icon {
  font-size: 1.2rem;
}

/* Payment Container */
.payment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.payment-terms,
.cancellation-policy {
  background: linear-gradient(135deg, #ffffff 0%, #fdfdf5 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.1);
}

.payment-terms h4,
.cancellation-policy h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 1rem;
}

.payment-terms ul,
.cancellation-policy ul {
  list-style: none;
  padding: 0;
}

.payment-terms li,
.cancellation-policy li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.payment-terms li::before,
.cancellation-policy li::before {
  content: '•';
  color: var(--muted-gold);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Animations */
@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metaFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardGlow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-hero {
    padding: 2rem 0 1.5rem 0;
    min-height: 40vh;
  }
  
  .legal-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .legal-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .legal-container {
    padding: 0 1rem;
  }
  
  .legal-content {
    padding: 2rem 0;
  }
  
  .legal-section {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .protection-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  
  .usage-list {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .usage-item {
    padding: 1rem;
  }
  
  .info-card {
    padding: 1.2rem;
  }
  
  .protection-item {
    padding: 1rem;
  }
  
  .rights-content-card {
    padding: 1.5rem;
  }
  
  .rights-main-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  
  .contact-info {
    align-items: center;
    text-align: center;
  }
  
  .payment-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .payment-terms,
  .cancellation-policy {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .legal-hero {
    padding: 1.5rem 0 1rem 0;
    min-height: 35vh;
  }
  
  .legal-title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }
  
  .legal-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .legal-container {
    padding: 0 0.8rem;
  }
  
  .legal-content {
    padding: 1.5rem 0;
  }
  
  .legal-section {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .content-grid,
  .protection-grid {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .usage-list {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .info-card,
  .protection-item,
  .usage-item {
    padding: 1rem;
  }
  
  .payment-container {
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  
  .payment-terms,
  .cancellation-policy {
    padding: 1rem;
  }
  
  .last-updated {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .rights-content-card {
    padding: 1.2rem;
  }
  
  .rights-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .rights-main-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .rights-main-text p {
    font-size: 0.95rem;
  }
  
  .elegant-contact-link {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .info-card h3,
  .protection-item h4,
  .usage-item h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .info-card p,
  .protection-item p,
  .usage-item p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .usage-item {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .usage-icon {
    align-self: flex-start;
  }
}

/* Print Styles */
@media print {
  .legal-hero {
    background: white !important;
    color: black !important;
  }
  
  .legal-title,
  .section-title {
    color: black !important;
  }
  
  .contact-card {
    background: #f5f5f5 !important;
    color: black !important;
  }
  
  .info-card,
  .usage-item,
  .protection-item {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .info-card,
  .usage-item,
  .protection-item {
    border: 2px solid var(--deep-green-text);
  }
  
  .contact-card {
    border: 2px solid var(--muted-gold);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}