/**
 * Legal Pages Styles
 * Privacy Policy, Cookies, Disclaimer, Terms
 */

/* Enable normal scrolling on standalone pages.
   variables.css locks the body to 100vh + overflow hidden for the SPA.
   These pages use <body class="legal-page"> and should scroll normally. */
html,
body {
  height: auto;
}

body.legal-page {
  width: auto;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Page container */
.legal-page {
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  padding: 40px 20px;
  line-height: 1.7;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

/* Header */
.legal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--stroke);
}

.legal-back-btn {
  margin-bottom: 20px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--neon-cyan);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

body[data-theme="light"] .legal-title {
  color: #0369a1;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

body[data-theme="light"] .legal-updated {
  color: rgba(15, 23, 42, 0.65);
}

/* Content */
.legal-section {
  margin: 32px 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--neon-pink);
  margin: 24px 0 16px;
  letter-spacing: 0.5px;
}

body[data-theme="light"] .legal-section h2 {
  color: #be185d;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--neon-purple);
  margin: 20px 0 12px;
  font-weight: 600;
}

body[data-theme="light"] .legal-section h3 {
  color: #581c87;
}

.legal-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 12px 0;
}

body[data-theme="light"] .legal-section p {
  color: rgba(15, 23, 42, 0.85);
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0;
  padding-left: 28px;
}

.legal-section li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 8px 0;
}

body[data-theme="light"] .legal-section li {
  color: rgba(15, 23, 42, 0.85);
}

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

body[data-theme="light"] .legal-section strong {
  color: #0369a1;
}

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

.legal-section a:hover {
  color: var(--neon-pink);
}

body[data-theme="light"] .legal-section a {
  color: #0369a1;
}

body[data-theme="light"] .legal-section a:hover {
  color: #be185d;
}

/* Contact section */
.legal-contact {
  background: rgba(60, 255, 250, 0.05);
  border-left: 4px solid var(--neon-cyan);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}

body[data-theme="light"] .legal-contact {
  background: rgba(79, 70, 229, 0.05);
  border-left-color: #0369a1;
}

/* Footer on legal pages */
.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
  .legal-container {
    padding: 28px 20px;
  }

  .legal-title {
    font-size: 1.8rem;
  }

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

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