/* Rep Tally - Privacy Policy Modern CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0b0f17;
  --bg-secondary: #121824;
  --bg-card: rgba(22, 30, 46, 0.7);
  --bg-card-hover: rgba(30, 41, 62, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(0, 230, 118, 0.4);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accent Colors - Vibrant Fitness Lime & Electric Cyan */
  --accent-lime: #00e676;
  --accent-cyan: #00e5ff;
  --accent-orange: #ff9100;
  --accent-gradient: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
  --accent-glow: rgba(0, 230, 118, 0.25);
  --card-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --sidebar-width: 280px;
  --header-height: 72px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(241, 245, 249, 1);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 200, 83, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-glow: rgba(0, 230, 118, 0.15);
  --card-glow: 0 8px 24px 0 rgba(149, 157, 165, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Background Glow */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-lime);
  top: -100px;
  right: -100px;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-name span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Box */
.search-wrapper {
  position: relative;
  width: 260px;
}

.search-wrapper input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.search-wrapper input:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Header Buttons */
.btn-icon-nav {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-nav:hover {
  background: var(--accent-lime);
  color: #0b0f17;
  border-color: var(--accent-lime);
  transform: translateY(-2px);
}

/* Main Layout Grid */
.layout-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Sticky Sidebar Table of Contents */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-glow);
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.toc-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--accent-lime);
  background: rgba(0, 230, 118, 0.06);
}

.toc-link.active {
  color: var(--accent-lime);
  background: rgba(0, 230, 118, 0.1);
  border-left-color: var(--accent-lime);
  font-weight: 600;
}

.toc-number {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.toc-link.active .toc-number {
  background: var(--accent-lime);
  color: #0b0f17;
}

/* Main Content Area */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Document Header Banner */
.doc-header-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-glow);
  position: relative;
  overflow: hidden;
}

.doc-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-lime);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.doc-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.doc-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin-bottom: 1.5rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.doc-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-meta-item strong {
  color: var(--text-primary);
}

/* Policy Section Card */
.policy-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-glow);
  transition: var(--transition);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.policy-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.policy-card.highlight {
  border-color: var(--accent-lime);
  box-shadow: 0 0 20px var(--accent-glow);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Cards & Grid Utilities */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.info-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.info-item-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.info-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.info-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.info-item-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* List Style Clean */
.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.custom-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.custom-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-lime);
  font-weight: 800;
}

/* Account Deletion Special Box */
.deletion-box {
  background: linear-gradient(135deg, rgba(30, 41, 62, 0.6) 0%, rgba(18, 24, 36, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.deletion-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.deletion-method:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.method-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-primary);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
}

/* Email Action Card */
.email-copy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--accent-lime);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.email-address {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-lime);
  letter-spacing: 0.05em;
}

.btn-action-group {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0f17;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Children Privacy Alert Banner */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 145, 0, 0.1);
  border: 1px solid rgba(255, 145, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--text-primary);
}

.alert-icon {
  font-size: 1.8rem;
  color: var(--accent-orange);
}

/* Contact Footer Box */
.contact-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 225, 255, 0.05) 100%);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

footer a {
  color: var(--accent-lime);
  text-decoration: none;
}

/* Toast Feedback */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-lime);
  color: #0b0f17;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .layout-container {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 1rem;
  }
  
  .search-wrapper {
    width: 180px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .search-wrapper {
    display: none;
  }
  
  .doc-header-card {
    padding: 1.5rem;
  }
  
  .doc-title {
    font-size: 1.75rem;
  }
  
  .policy-card {
    padding: 1.25rem;
  }
  
  .email-copy-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-action-group {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-action-group button, .btn-action-group a {
    width: 100%;
    justify-content: center;
  }
}

/* Print CSS */
@media print {
  .ambient-bg, .navbar, .sidebar, .btn-action-group, .btn-icon-nav, .toast {
    display: none !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .layout-container {
    display: block;
    padding: 0;
  }
  
  .policy-card, .doc-header-card {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
  
  .section-title, .doc-title {
    color: #000000 !important;
  }
}
