/* ============================================
   TrExOra — Legal Pages Stylesheet
   Privacy Policy, Terms of Service, Cookie Policy
   ============================================ */

/* ---------- Page Layout ---------- */
.legal-page {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.75;
}

.legal-header {
  background: rgba(0, 71, 255, 0.03);
  border-bottom: 1px solid rgba(0, 71, 255, 0.08);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-header .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: 80px;
  justify-content: center;
  text-decoration: none;
}

.legal-logo-img {
  height: 70px;
  width: 70px;
  object-fit: contain;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 14px rgba(0, 71, 255, 0.45), 0 0 30px rgba(0, 71, 255, 0.15);
  background: transparent;
  padding: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: logo-breath 4s ease-in-out infinite;
}

.legal-logo-img:hover {
  box-shadow: 0 0 22px rgba(0, 71, 255, 0.7), 0 0 44px rgba(0, 140, 255, 0.25);
  transform: scale(1.08);
  animation-play-state: paused;
}

@keyframes logo-breath {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 71, 255, 0.35), 0 0 25px rgba(0, 71, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 71, 255, 0.65), 0 0 45px rgba(0, 71, 255, 0.25);
  }
}

.legal-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-back:hover {
  color: var(--accent);
}

/* ---------- Content Area ---------- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-meta .date {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Section Blocks ---------- */
.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 71, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.legal-section li::marker {
  color: var(--accent);
}

/* ---------- Data Table ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.legal-table thead {
  background: rgba(0, 71, 255, 0.06);
}

.legal-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 71, 255, 0.1);
}

.legal-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.legal-table tr:hover td {
  background: rgba(0, 71, 255, 0.02);
}

/* ---------- Highlight Box ---------- */
.legal-highlight {
  background: rgba(0, 71, 255, 0.05);
  border: 1px solid rgba(0, 71, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.legal-highlight.warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}

.legal-highlight.success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

.legal-highlight p {
  margin: 0;
  font-size: 0.88rem;
}

.legal-highlight strong {
  color: var(--text-primary);
}

/* ---------- Internal Links ---------- */
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-content a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Quick Nav (Table of Contents) ---------- */
.legal-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-toc h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.legal-toc ol {
  padding-left: 1.25rem;
  margin: 0;
}

.legal-toc li {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.legal-toc a {
  color: var(--accent);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* ---------- Page Nav (Between Legal Pages) ---------- */
.legal-page-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.legal-page-nav a {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-page-nav a:hover {
  background: rgba(0, 71, 255, 0.05);
  border-color: rgba(0, 71, 255, 0.15);
}

.legal-page-nav .nav-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-page-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */
.legal-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .legal-content {
    padding: 2rem 1.25rem 3rem;
  }

  .legal-title {
    font-size: 1.8rem;
  }

  .legal-section h2 {
    font-size: 1.15rem;
  }

  .legal-table {
    font-size: 0.78rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem 0.6rem;
  }

  .legal-header .container {
    padding: 0 1.25rem;
  }

  .legal-meta {
    gap: 0.75rem;
  }

  .legal-page-nav a {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-title {
    font-size: 1.5rem;
  }

  .legal-content {
    padding: 1.5rem 1rem 3rem;
  }
}
