/* Legal Pages Styling */

.legal-page {
  padding: 140px 0 60px;
  min-height: 100vh;
  background: var(--bg-primary, #f9f7f4);
}

[data-theme="dark"] .legal-page {
  background: var(--bg-primary, #1a1a2e);
}

.legal-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .legal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary, #2d2d2d);
  margin-bottom: 10px;
}

[data-theme="dark"] .legal-header h1 {
  color: #fff;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--text-secondary, #666);
}

[data-theme="dark"] .legal-updated {
  color: #aaa;
}

.legal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .legal-content {
  background: #2d2b3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .legal-section {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary, #2d2d2d);
  margin-bottom: 16px;
}

[data-theme="dark"] .legal-section h2 {
  color: #fff;
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #2d2d2d);
  margin: 20px 0 12px;
}

[data-theme="dark"] .legal-section h3 {
  color: #e0e0e0;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #555);
  margin-bottom: 16px;
}

[data-theme="dark"] .legal-section p {
  color: #ccc;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #555);
  margin-bottom: 8px;
  position: relative;
}

[data-theme="dark"] .legal-section li {
  color: #ccc;
}

.legal-section li::marker {
  color: var(--accent-color, #d6a756);
}

.legal-section a {
  color: var(--accent-color, #d6a756);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

[data-theme="dark"] .legal-section a {
  color: #e8c074;
}

[data-theme="dark"] .legal-section a:hover {
  color: #f0d090;
}

/* Highlight Box */
.legal-highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  border-left: 4px solid #f59e0b;
}

[data-theme="dark"] .legal-highlight {
  background: linear-gradient(135deg, #3d3a50, #4d4660);
  border-left-color: #d6a756;
}

.legal-highlight strong {
  color: #92400e;
  display: block;
  margin-bottom: 8px;
}

[data-theme="dark"] .legal-highlight strong {
  color: #e8c074;
}

.legal-highlight ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-highlight li {
  color: #78350f;
}

[data-theme="dark"] .legal-highlight li {
  color: #ccc;
}

/* Warning Box */
.legal-warning {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  border-left: 4px solid #ef4444;
}

[data-theme="dark"] .legal-warning {
  background: linear-gradient(135deg, #4a2c2c, #5a3535);
  border-left-color: #f87171;
}

.legal-warning strong {
  color: #991b1b;
}

[data-theme="dark"] .legal-warning strong {
  color: #fca5a5;
}

.legal-warning a {
  color: #dc2626;
}

[data-theme="dark"] .legal-warning a {
  color: #fca5a5;
}

/* Competition Badge Section */
.legal-highlight-section {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: none;
}

[data-theme="dark"] .legal-highlight-section {
  background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
}

.legal-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

[data-theme="dark"] .legal-badge {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.legal-highlight-section h2 {
  color: #1e40af;
}

[data-theme="dark"] .legal-highlight-section h2 {
  color: #93c5fd;
}

.legal-highlight-section p {
  color: #1e3a8a;
}

[data-theme="dark"] .legal-highlight-section p {
  color: #bfdbfe;
}

/* Navigation between legal pages */
.legal-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

[data-theme="dark"] .legal-nav {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  color: var(--text-primary, #2d2d2d);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-nav-link:hover {
  background: var(--accent-color, #d6a756);
  color: #fff;
  border-color: var(--accent-color, #d6a756);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 167, 86, 0.3);
}

[data-theme="dark"] .legal-nav-link {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .legal-nav-link:hover {
  background: #d6a756;
  border-color: #d6a756;
  color: #1a1a2e;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0 40px;
  }
  
  .legal-header h1 {
    font-size: 2rem;
  }
  
  .legal-content {
    padding: 24px;
    border-radius: 12px;
  }
  
  .legal-section h2 {
    font-size: 1.25rem;
  }
  
  .legal-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .legal-nav-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
