/* ========================================
   VexoFX Legal Pages Styles
   Privacy Policy | Terms & Conditions | Risk Disclaimer
   ======================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #0f1117;
  --card-bg: rgba(18, 22, 30, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e6;
  --text-muted: #8b9ab0;
  --border-color: rgba(48, 54, 68, 0.6);
  --blue-primary: #58a6ff;
  --blue-secondary: #1f6feb;
  --cyan: #79c0ff;
  --green: #3fb950;
  --red: #f85149;
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.25s ease;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Legal Section ===== */
.legal-section {
  padding: 60px 0 100px;
  min-height: calc(100vh - 400px);
}

/* Header Styles */
.legal-header {
  text-align: center;
  margin-bottom: 56px;
}

.legal-header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-primary) 60%, #79c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-header .subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 166, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-primary);
  margin-top: 20px;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

/* Legal Cards */
.legal-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 32px;
  transition: var(--transition);
}

.legal-card:hover {
  border-color: rgba(88, 166, 255, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.legal-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--blue-primary);
  padding-left: 20px;
  color: var(--text-primary);
}

.legal-card h2 i {
  color: var(--blue-primary);
  font-size: 1.7rem;
}

.legal-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--cyan);
}

.legal-card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-card ul,
.legal-card ol {
  margin: 16px 0 20px 28px;
  color: var(--text-secondary);
}

.legal-card li {
  margin: 10px 0;
  line-height: 1.6;
}

.legal-card li strong {
  color: var(--blue-primary);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), rgba(31, 111, 235, 0.05));
  border-left: 3px solid var(--green);
  padding: 20px 28px;
  border-radius: 20px;
  margin: 28px 0;
  font-weight: 500;
}

.highlight-box i {
  color: var(--green);
  margin-right: 8px;
}

/* Grid Layout for Info Cards */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.grid-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.grid-item:hover {
  border-color: rgba(88, 166, 255, 0.3);
  background: rgba(88, 166, 255, 0.03);
}

.grid-item strong {
  color: var(--blue-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Contact Email */
.contact-email {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--green);
  transition: var(--transition);
}

.contact-email:hover {
  color: #6fcf97;
  border-bottom-style: solid;
}

/* Badges & Icons */
.badge {
  display: inline-block;
  background: rgba(88, 166, 255, 0.15);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-right: 8px;
}

/* Cookie Consent Bar (optional) */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(12, 15, 22, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transform: translateY(120%);
  transition: transform 0.4s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
}

.cookie-consent .btn-cookie {
  background: var(--blue-primary);
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-consent .btn-cookie:hover {
  background: var(--blue-secondary);
  transform: scale(1.02);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top:hover {
  background: var(--blue-secondary);
  transform: scale(1.05);
}

/* Print Styles */
@media print {
  .legal-card {
    break-inside: avoid;
    box-shadow: none;
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
  .cookie-consent,
  .back-to-top,
  .mobile-nav,
  .menu-btn {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .legal-header h1 {
    color: black;
    background: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .legal-section {
    padding: 40px 0 60px;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .legal-header h1 {
    font-size: 2.2rem;
  }
  .legal-card h2 {
    font-size: 1.4rem;
    padding-left: 14px;
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .legal-card {
    padding: 20px 16px;
  }
  .legal-header h1 {
    font-size: 1.8rem;
  }
  .highlight-box {
    padding: 16px;
  }
}