/* Additional Styles for Content Pages (Privacy, Terms, etc.) */

/* Page Container */
.page-container {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
}

/* Header Navigation */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 27, 73, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 99, 255, 0.1);
  animation: header-slide 0.5s ease-out;
}

@keyframes header-slide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(147, 197, 253, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-inverse);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-nav-primary {
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: var(--text-inverse) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-nav-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 99, 255, 0.3);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Content Container */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  animation: content-fade 0.6s ease-out 0.2s both;
}

@keyframes content-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Card */
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #60a5fa, var(--primary));
  background-size: 200% 100%;
  animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
  to {
    background-position: -200% 0;
  }
}

/* Page Title Section */
.page-title-section {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Table of Contents */
.toc-container {
  background: color-mix(in oklab, var(--primary) 5%, white);
  border: 1px solid color-mix(in oklab, var(--primary) 15%, white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.toc-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.toc-list li {
  counter-increment: toc-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.toc-list li::before {
  content: counter(toc-counter) ".";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.toc-list a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Content Body */
.content-body {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px; /* For smooth scroll with sticky header */
}

.content-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--primary);
  border-radius: 2px;
}

.content-section p {
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.7;
}

/* Contact Info */
.contact-info {
  background: color-mix(in oklab, var(--success) 5%, white);
  border-left: 4px solid var(--success);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.contact-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 50;
  box-shadow: 0 4px 12px rgba(30, 99, 255, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 99, 255, 0.4);
}

/* Footer */
.page-footer {
  background: rgba(2, 6, 23, 0.5);
  border-top: 1px solid rgba(30, 99, 255, 0.1);
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(147, 197, 253, 0.7);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 99, 255, 0.1);
  color: rgba(147, 197, 253, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 27, 73, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  
  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .toc-container {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Lists in content */
.content-body ul,
.content-body ol {
  margin: 1rem 0 1rem 2rem;
}

.content-body ul li,
.content-body ol li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Links in content */
.content-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.content-body a:hover {
  border-bottom-color: var(--primary);
}