/* Legal Pages Styles (Privacy & Terms) */

.legal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.legal-page .premium-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.12);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.legal-page .header-gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399, #10b981, #059669);
  background-size: 200% 100%;
  animation: gradient-flow 8s linear infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.legal-page .header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.legal-page .logo-link {
  text-decoration: none;
}

.legal-page .logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.legal-page .logo-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-page .premium-header .logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #059669;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-page .premium-header .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
}

.legal-page .logo-text-accent {
  color: #000000;
  -webkit-text-fill-color: #000000;
}

.legal-page .page-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-page .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .legal-page .nav-menu {
    display: none;
  }
}

.legal-page .nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  color: #4b5563;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.legal-page .nav-item .nav-icon {
  font-size: 0.875rem;
  opacity: 0.7;
}

.legal-page .nav-item:hover {
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
}

.legal-page .nav-item:hover .nav-icon {
  opacity: 1;
}

.legal-page .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .legal-page .header-actions {
    display: none;
  }
}

.legal-page .signin-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: #4b5563;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.legal-page .signin-btn:hover {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.legal-page .header-actions .cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.legal-page .header-actions .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.legal-page .mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: rgba(5, 150, 105, 0.1);
  border: none;
  border-radius: 0.5rem;
  color: #059669;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .legal-page .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.legal-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-orb 4s ease-in-out infinite;
}

@keyframes pulse-orb {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
  }
}

.legal-hero .hero-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.legal-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: slide-down 0.6s ease-out;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-hero .hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 1rem;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .legal-hero .hero-title {
    font-size: 2rem;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1rem;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

@media (max-width: 768px) {
  .legal-hero .hero-subtitle {
    font-size: 1rem;
  }
}

.legal-hero .last-updated {
  font-size: 0.875rem;
  color: #9ca3af;
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

/* Content Section */
.legal-content {
  flex: 1;
  padding: 3rem 0;
}

.legal-content .content-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-document {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 1.5rem;
  }
}

/* Privacy Highlights */
.privacy-highlights {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(16, 185, 129, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.privacy-highlights h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem;
  text-align: center;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-item > i {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

.highlight-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Table of Contents */
.toc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
}

.toc li {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.toc a {
  color: #059669;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.toc a:hover {
  color: #047857;
  text-decoration: underline;
}

/* Legal Sections */
.legal-section {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-section .section-number {
  color: #10b981;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.legal-section ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-section li strong {
  color: #1f2937;
}

.legal-section a {
  color: #059669;
  font-weight: 500;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Important Box */
.important-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid #10b981;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.important-box > i {
  color: #10b981;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.important-box p {
  margin: 0 0 0.5rem;
}

.important-box p:last-child {
  margin-bottom: 0;
}

.important-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Contact Info */
.contact-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info i {
  color: #10b981;
  width: 1.25rem;
  text-align: center;
}

.contact-info a {
  color: #059669;
  font-weight: 500;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.legal-footer {
  padding: 3rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  margin-top: auto;
}

.legal-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.legal-footer .footer-brand .logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.legal-footer .footer-brand .logo-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #059669;
}

.legal-footer .footer-brand .logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.legal-footer .footer-brand .logo-accent {
  color: #34d399;
}

.legal-footer .footer-brand p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.legal-footer .footer-links {
  display: flex;
  gap: 2rem;
}

.legal-footer .footer-links a {
  font-size: 0.8125rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-footer .footer-links a:hover {
  color: #059669;
}

.legal-footer .footer-copyright p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .legal-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .legal-footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Tables */
.legal-section table,
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.legal-section table thead,
.pricing-table thead {
  background: linear-gradient(135deg, #059669, #10b981);
}

.legal-section table th,
.pricing-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
}

.legal-section table td,
.pricing-table td {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-section table tbody tr,
.pricing-table tbody tr {
  transition: background-color 0.2s ease;
}

.legal-section table tbody tr:hover,
.pricing-table tbody tr:hover {
  background: #f9fafb;
}

.legal-section table tbody tr:nth-child(even),
.pricing-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.legal-section table tbody tr:nth-child(even):hover,
.pricing-table tbody tr:nth-child(even):hover {
  background: #f3f4f6;
}

/* Mobile responsive tables */
@media (max-width: 640px) {
  .legal-section table,
  .pricing-table {
    font-size: 0.875rem;
  }

  .legal-section table th,
  .pricing-table th,
  .legal-section table td,
  .pricing-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
