/* Privacy Policy Page Styles */

:root {
  --brand-purple: #7c3aed;
  --brand-lilac: #a78bfa;
  --brand-pink: #FF7AC8;
  --brand-blue: #6EC1FF;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --body-bg: #f9f9fb;
  --card-radius: 16px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  /* Keep the original gradient background from main site */
  background: linear-gradient(135deg, var(--brand-lilac) 0%, var(--brand-pink) 45%, var(--brand-blue) 100%);
  min-height: 100vh;
}

/* Header styling fixes - ensure white text on gradient */
header {
  background: transparent !important;
}

header h1,
header p {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

header h1 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

header h1 a:hover {
  opacity: 0.8;
}

.privacy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--body-bg);
  min-height: 100vh;
}

.privacy-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.privacy-header h1 {
  color: var(--brand-purple);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: none;
}

.effective-date {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--brand-purple);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  grid-column: 1 / -1;
}

.back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Table of Contents */
.toc {
  position: sticky;
  top: 2rem;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.toc h3 {
  margin: 0 0 1rem 0;
  color: var(--brand-purple);
  font-size: 1.1rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a:focus {
  background: #f3f4f6;
  color: var(--brand-purple);
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.toc-list a[aria-current="true"] {
  background: #f3e8ff;
  color: var(--brand-purple);
  font-weight: 600;
  border-left-color: var(--brand-purple);
}

/* Mobile TOC */
.toc-mobile {
  display: none;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.toc-mobile summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-mobile summary:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.toc-mobile .toc-list {
  padding: 0 1.5rem 1rem;
}

/* Content Area */
.privacy-content {
  min-width: 0;
}

.privacy-section {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.privacy-section summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  border-radius: var(--card-radius);
  transition: background-color 0.2s ease;
}

.privacy-section summary::-webkit-details-marker {
  display: none;
}

.privacy-section summary:hover {
  background: #f9fafb;
}

.privacy-section summary:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.privacy-section h2 {
  margin: 0;
  scroll-margin-top: 6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-number {
  background: var(--brand-purple);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chevron {
  transition: transform 0.2s ease;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.privacy-section[open] .chevron {
  transform: rotate(180deg);
}

.section-content {
  padding: 0 2rem 2rem;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  padding: 0.25rem 0;
}

.privacy-list li:last-child {
  margin-bottom: 0;
}

.icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.privacy-list li span:last-child {
  flex: 1;
  display: flex;
  align-items: center;
}

.highlight-box {
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  border: 2px solid var(--brand-purple);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-contact {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-contact a {
  color: var(--brand-purple);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive Design */
@media (max-width: 900px) {
  .privacy-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .toc {
    display: none;
  }
  
  .toc-mobile {
    display: block;
  }
  
  .privacy-header {
    padding: 1.5rem;
  }
  
  .privacy-header h1 {
    font-size: 2rem;
  }
  
  .privacy-section summary {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .section-content {
    padding: 0 1.5rem 1.5rem;
  }
}