/* Legal Pages Styling */

/* Hero Section */
.legal-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6rem 0 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.legal-hero h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.legal-hero .last-updated {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

/* Main Layout */
.legal-layout {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Sidebar */
.legal-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.sidebar-card h3 {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 0.25rem;
}

.sidebar-card a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  position: relative;
}

.sidebar-card a::before {
  content: "▸";
  color: #ffffff;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.sidebar-card a:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
  padding-left: 0.75rem;
}

.sidebar-card a:hover::before {
  opacity: 1;
  color: var(--primary-color);
  transform: translateX(2px);
}

.sidebar-card .contact-info {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-card .contact-info a {
  color: var(--primary-color);
  padding: 0;
  display: inline;
}

.sidebar-card .contact-info a::before {
  content: none;
}

.sidebar-card .contact-info a:hover {
  text-decoration: underline;
  background: none;
  padding-left: 0;
}

/* Scrollable Content Card */
.legal-content-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.legal-content-scroll {
  max-height: 650px;
  overflow-y: auto;
  padding: 2rem;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.legal-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.legal-content-scroll::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.legal-content-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.legal-content-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Content Sections */
.legal-section {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.legal-section h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--bg-secondary);
  font-weight: 600;
}

.legal-section:first-child h2 {
  margin-top: 0;
}

.legal-section h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  margin-top: 1.25rem;
  font-weight: 600;
}

.legal-section p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  font-size: 0.95rem;
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.legal-section li {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

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

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

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Notice Box for Important Disclaimers */
.legal-notice .notice-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

[data-theme="dark"] .legal-notice .notice-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
  border-left-color: #ffa726;
}

.legal-notice .notice-box h3 {
  color: #f57c00;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

[data-theme="dark"] .legal-notice .notice-box h3 {
  color: #ffb74d;
}

.legal-notice .notice-box h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-notice .notice-box p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-notice .notice-box strong {
  color: #d84315;
  font-weight: 700;
}

[data-theme="dark"] .legal-notice .notice-box strong {
  color: #ff8a65;
}

.legal-notice .notice-box ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-notice .notice-box li {
  margin-bottom: 0.5rem;
}

.legal-notice .notice-box .notice-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 152, 0, 0.3);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .legal-layout {
    flex-direction: column;
  }

  .legal-sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-card {
    margin-bottom: 1rem;
  }

  .legal-content-scroll {
    max-height: 550px;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 5rem 1rem 2rem;
  }

  .legal-hero h1 {
    font-size: 1.5rem;
  }

  .legal-hero p {
    font-size: 0.9rem;
  }

  .legal-layout {
    padding: 0 1rem 2rem;
  }

  .legal-content-scroll {
    padding: 1.5rem;
    max-height: 500px;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }

  .legal-section h3 {
    font-size: 1rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.9rem;
  }

  .legal-section ul {
    margin-left: 1.25rem;
  }
}
