/* Privacy Policy Page Styles */

/* CSS Variables for consistent theming */
:root {
  --primary-red: #dc2626;
  --primary-red-dark: #b91c1c;
  --primary-red-light: #fef2f2;
  --secondary-red: #ef4444;
  --accent-red: #fca5a5;
  --text-dark: #333333;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Base styles */
body {
  background: var(--bg-light);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Content styling */
.prose {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.7;
}

.prose h2 {
  color: var(--primary-red);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
  border-radius: 1px;
}

.prose h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  text-align: justify;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.prose strong {
  color: var(--text-dark);
  font-weight: 600;
}

.prose a {
  color: var(--primary-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--primary-red-dark);
  border-bottom-color: var(--primary-red-dark);
}

/* Table of Contents */
.toc {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.toc h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.toc nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.toc nav a:hover {
  color: var(--primary-red);
  border-left-color: var(--primary-red);
  background-color: var(--primary-red-light);
  padding-left: 1rem;
  margin-left: -1rem;
}

/* Content container */
.content-container {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 2rem 0;
}

/* Header styles */
#main-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

/* Navigation link hover effects */
nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-red-dark) 0%, #991b1b 100%);
  box-shadow: var(--shadow-heavy);
  transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 1024px) {
  .toc {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .prose {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .content-container {
    margin: 0 1rem;
  }
}

/* Print styles */
@media print {
  .toc,
  #main-header,
  footer {
    display: none !important;
  }
  
  .content-container {
    box-shadow: none;
    border: none;
  }
  
  .prose {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .prose h2 {
    border-bottom-color: var(--text-dark);
  }
  
  .toc nav a:hover {
    background-color: var(--text-dark);
    color: var(--white);
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f3f4f6;
    --text-light: #9ca3af;
    --bg-light: #111827;
    --white: #1f2937;
  }
  
  body {
    background: var(--bg-light);
    color: var(--text-dark);
  }
  
  .content-container,
  .toc {
    background: var(--white);
    border-color: #374151;
  }
}
