/* Privacy Policy Page Styles - Location Lens */

:root {
  /* Location Lens Brand Colors */
  --brand-primary: #60a5fa;
  --brand-secondary: #f472b6;
  --brand-gradient: linear-gradient(90deg, #60a5fa, #f472b6);
  --bg-dark-primary: #0f172a;
  --bg-dark-secondary: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --card-bg: #1e293b;
  --card-bg-light: #334155;
  --border-color: #475569;
  --card-radius: 16px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  background: linear-gradient(to bottom right, var(--bg-dark-primary), var(--bg-dark-secondary));
  color: var(--text-primary);
  min-height: 100vh;
}

/* Header styling */
.privacy-header {
  text-align: center;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .privacy-header {
    grid-column: 1 / -1;
  }
}

.privacy-header h1 {
  font-size: 3rem;
  font-weight: bold;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.privacy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

@media (min-width: 900px) {
  .privacy-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--brand-primary);
  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;
  border: 1px solid var(--border-color);
}

@media (min-width: 900px) {
  .back-link {
    grid-column: 1 / -1;
  }
}

.back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  background: var(--card-bg-light);
}

/* 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;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  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-secondary);
  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: var(--card-bg-light);
  color: var(--brand-primary);
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.toc-list a[aria-current="true"] {
  background: rgba(96, 165, 250, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
  border-left-color: var(--brand-primary);
}

/* 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;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.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;
  width: 100%;
  min-width: 0;
}

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

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

.privacy-section summary:hover {
  background: var(--card-bg-light);
}

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

.privacy-section h2 {
  margin: 0;
  scroll-margin-top: 6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-number {
  background: var(--brand-gradient);
  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;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.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;
  color: var(--text-secondary);
}

.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;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(244, 114, 182, 0.1));
  border: 2px solid var(--brand-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

.highlight-box a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: var(--brand-gradient);
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: 0 0.25rem;
}

.highlight-box a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.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-secondary);
  font-size: 1rem;
  border: 1px solid var(--border-color);
}

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

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

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