/* ============================================================
   pptstudio.lol — Legal Pages Stylesheet (privacy + terms)
   ============================================================ */

:root {
  --legal-bg: #FEFDFB;
  --legal-text: #1A1A1E;
  --legal-text-mid: #55555C;
  --legal-border: #E2E0DA;
  --legal-accent: #8B5EBC;
  --legal-heading: #0C0B12;
  --legal-white: #FFFFFF;
  --legal-card-bg: #F5F3F0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--legal-text);
  background-color: var(--legal-bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCOPE ISOLATION — legal pages must not be polluted by
   homepage section styling that uses bare ID selectors
   ============================================================ */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL PAGE HEADER (div or header, NEVER section)
   ============================================================ */
.legal-header {
  background: linear-gradient(135deg, #0C0B12 0%, #1C1B26 100%);
  padding: 100px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 94, 188, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--legal-white);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.legal-header p {
  color: #A09EB0;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--legal-border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--legal-text-mid);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content strong {
  color: var(--legal-text);
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--legal-text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc {
  background-color: var(--legal-card-bg);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.toc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin-bottom: 1rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
  color: var(--legal-accent);
  font-size: 0.9rem;
}

.toc a {
  color: var(--legal-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.toc a:hover {
  text-decoration: underline;
  color: #6B3FA0;
}

/* ============================================================
   BACK TO HOME LINK
   ============================================================ */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--legal-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.back-home:hover {
  color: #6B3FA0;
}

/* ============================================================
   LEGAL PAGE FOOTER
   ============================================================ */
.legal-footer {
  background-color: #0C0B12;
  padding: 2rem;
  text-align: center;
  color: #605E70;
  font-size: 0.85rem;
}

.legal-footer a {
  color: #A09EB0;
  text-decoration: none;
  transition: color 0.25s;
}

.legal-footer a:hover {
  color: #00BFA5;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .legal-header {
    padding: 80px 1.5rem 40px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 2rem 1.25rem 3rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .toc {
    padding: 1.25rem;
  }
}
