/* Legal Pages (Terms & Privacy) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--color-bg, #0a0e13);
  color: var(--color-text, #fff);
  min-height: 100vh;
}

:root {
  --color-bg: #0a0e13;
  --color-surface: #1a2332;
  --color-primary: #82cfe2;
  --color-text: #ffffff;
  --color-text-muted: #8899a6;
  --color-border: #2d3748;
}

[data-theme="light"] {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #1a202c;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.legal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  transition: opacity 0.3s;
}

.legal-logo:hover {
  opacity: 0.8;
}

.legal-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.legal-nav {
  display: flex;
  gap: 1.5rem;
}

.legal-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.legal-nav a:hover {
  color: var(--color-primary);
  background: rgba(130, 207, 226, 0.1);
}

/* Main */
.legal-main {
  flex: 1;
  padding: 2rem;
  padding-top: 100px;
}

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

/* Header Section */
.legal-header-section {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header-section i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: block;
}

.legal-header-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Content */
.legal-content {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

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

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.legal-section h2 i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.legal-section p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-section li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.legal-section li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--color-primary);
  font-weight: bold;
}

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

/* Contact Info */
.contact-info {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

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

.contact-info i {
  color: var(--color-primary);
  width: 20px;
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
}

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

/* Footer Actions */
.legal-footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(130, 207, 226, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Footer */
.legal-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header {
    padding: 1rem;
  }
  
  .legal-nav {
    gap: 0.5rem;
  }
  
  .legal-nav a {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .legal-main {
    padding: 1rem;
    padding-top: 80px;
  }
  
  .legal-content {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .legal-header-section h1 {
    font-size: 1.5rem;
  }
  
  .legal-header-section i {
    font-size: 2.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.1rem;
  }
  
  .legal-logo span {
    display: none;
  }
}

@media (max-width: 480px) {
  .legal-footer-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}
