/* ============================================
   GrowCommerce - Legal Pages Styles
   Privacy Policy & Terms of Service
   ============================================ */

/* Page Wrapper */
.page-wrapper {
  padding-top: 70px;
  min-height: 100vh;
  background: #f9fafb;
}

/* Hero Section */
.legal-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.legal-hero-badge svg {
  width: 16px;
  height: 16px;
}

.legal-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.legal-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.legal-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.legal-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.legal-meta svg {
  width: 16px;
  height: 16px;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  right: -50px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: white;
  bottom: -50px;
  left: 10%;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

/* Table of Contents */
.toc-section {
  padding: 2rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.toc-card {
  padding: 2rem;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.toc-title svg {
  width: 20px;
  height: 20px;
  color: #667eea;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.toc-link {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 10px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  display: block;
}

.toc-link:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  color: #667eea;
  transform: translateX(4px);
}

/* Content Layout */
.legal-content {
  padding: 2rem 0 4rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* Sidebar */
.content-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .content-sidebar {
    display: block;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  padding: 1.5rem;
  background: white;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  padding: 0.625rem 0.75rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.sidebar-link:hover {
  background: #f9fafb;
  color: #667eea;
}

.sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.08)
  );
  color: #667eea;
  font-weight: 600;
}

/* Related Links */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.related-link:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  color: #667eea;
  transform: translateX(4px);
}

.related-link svg {
  width: 18px;
  height: 18px;
  color: #667eea;
}

/* Main Content */
.content-main {
  min-width: 0;
}

.legal-article {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .legal-article {
    padding: 2rem 1.5rem;
  }
}

/* Article Sections */
.article-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

.article-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-section p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-section ul,
.article-section ol {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-section lsvg {
  margin-bottom: 0.5rem;
}

.article-section a {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
}

.article-section a:hover {
  text-decoration: underline;
}

.article-section strong {
  color: #111827;
  font-weight: 600;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-card {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
}

.info-card svg {
  width: 32px;
  height: 32px;
  color: #667eea;
  margin-bottom: 0.75rem;
}

.info-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

/* Security Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.security-item {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  text-align: center;
}

.security-item svg {
  width: 32px;
  height: 32px;
  color: #667eea;
  margin-bottom: 0.75rem;
}

.security-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.security-item p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

/* Prohibited Grid */
.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.prohibited-item {
  padding: 1.5rem;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  text-align: center;
}

.prohibited-item svg {
  width: 32px;
  height: 32px;
  color: #ef4444;
  margin-bottom: 0.75rem;
}

.prohibited-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.prohibited-item p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

/* Callouts */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.callout > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.callout-info > svg {
  color: #3b82f6;
}

.callout-info strong {
  color: #1e40af;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.callout-info p {
  color: #1e40af;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

.callout-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.callout-warning > svg {
  color: #f59e0b;
}

.callout-warning strong {
  color: #92400e;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.callout-warning p {
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.data-table th {
  background: #f9fafb;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-card {
  padding: 1.5rem;
  text-align: center;
}

.contact-card svg {
  width: 32px;
  height: 32px;
  color: #667eea;
  margin-bottom: 0.75rem;
}

.contact-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.legal-cta {
  padding: 3rem 0;
}

.cta-card {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: #6b7280;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #667eea;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero-title {
    font-size: 2rem;
  }

  .legal-hero-subtitle {
    font-size: 1rem;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .security-grid,
  .prohibited-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 2rem 1.5rem;
    text-align: center;
    justify-content: center;
  }

  .cta-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Mobile menu compatibility */
@media (max-width: 1023px) {
  .nav-menu.active {
    display: flex;
  }
}