/**
 * privacy.scoped.css
 * Bot4Trade — Privacy Policy Styles
 * Version: 2.2.0
 * 
 * FIXES:
 * ✓ Dark background on iPhone fixed
 * ✓ Proper left/right padding on all mobile devices
 * ✓ White background forced across all devices
 * ✓ Dark mode disabled completely
 */

/* ==========================
   Scoped Reset
   ========================== */
.bt4-privacy,
.bt4-privacy *,
.bt4-privacy *::before,
.bt4-privacy *::after {
  box-sizing: border-box;
}

/* ==========================
   Main Container - FORCE WHITE
   ========================== */
.bt4-privacy {
  /* CRITICAL: Force white background on ALL devices including iPhone */
  background: #ffffff !important;
  color: #222222 !important;
  
  /* Typography */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  
  /* MOBILE FIX: Add padding to wrapper for left/right spacing */
  padding-left: clamp(20px, 5vw, 32px);
  padding-right: clamp(20px, 5vw, 32px);
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
  
  /* Font smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force white on container too */
.bt4-privacy .terms-privacy-container {
  background: #ffffff !important;
  color: #222222 !important;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

/* ==========================
   Accessibility
   ========================== */
.bt4-privacy .skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  padding: 0.75rem 1rem;
  background: #0b6b3a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 10000;
  transition: top 150ms ease;
}

.bt4-privacy .skip-link:focus {
  top: 0;
  outline: 3px solid rgba(11, 107, 58, 0.3);
  outline-offset: 2px;
}

.bt4-privacy .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================
   Breadcrumbs
   ========================== */
.bt4-privacy .privacy-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.bt4-privacy .privacy-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt4-privacy .privacy-breadcrumb li {
  display: flex;
  align-items: center;
  color: #7a7a7a;
}

.bt4-privacy .privacy-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #cccccc;
}

.bt4-privacy .privacy-breadcrumb a {
  color: #7a7a7a;
  text-decoration: none;
  transition: color 150ms ease;
}

.bt4-privacy .privacy-breadcrumb a:hover {
  color: #0b6b3a;
  text-decoration: underline;
}

/* ==========================
   Page Header
   ========================== */
.bt4-privacy .entry-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8e8e8;
}

.bt4-privacy .entry-title {
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #0b6b3a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bt4-privacy .last-updated {
  margin: 0;
  font-size: 0.875rem;
  color: #7a7a7a;
  font-style: italic;
}

/* ==========================
   Table of Contents
   ========================== */
.bt4-privacy .privacy-toc {
  margin: 0 0 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f5f7fa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 20, 30, 0.04);
}

.bt4-privacy .toc-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0e3529;
}

.bt4-privacy .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.bt4-privacy .toc-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 150ms ease;
}

.bt4-privacy .toc-list a:hover,
.bt4-privacy .toc-list a:focus {
  background: rgba(11, 107, 58, 0.1);
  color: #0b6b3a;
  transform: translateX(4px);
}

/* ==========================
   Content Sections
   ========================== */
.bt4-privacy .entry-content {
  color: #333333;
}

.bt4-privacy .privacy-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
}

.bt4-privacy .privacy-section h2 {
  margin: 1.5rem 0 1rem 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #0e3529;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #0b6b3a;
}

.bt4-privacy .privacy-section h3 {
  margin: 1.25rem 0 0.75rem 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 700;
  color: #0b6b3a;
}

.bt4-privacy .privacy-section p {
  margin: 1rem 0;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.7;
  color: #4a4a4a;
}

.bt4-privacy .privacy-section ul,
.bt4-privacy .privacy-section ol {
  margin: 1rem 0 1.25rem 1.5rem;
  padding-left: 0.5rem;
}

.bt4-privacy .privacy-section li {
  margin: 0.5rem 0;
  line-height: 1.7;
  color: #4a4a4a;
}

.bt4-privacy .privacy-section li strong {
  color: #222222;
  font-weight: 700;
}

/* Data list special style */
.bt4-privacy .data-list {
  list-style: none;
  padding-left: 0;
}

.bt4-privacy .data-list li {
  padding-left: 1.5rem;
  position: relative;
}

.bt4-privacy .data-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0b6b3a;
  font-weight: 700;
}

/* ==========================
   Links
   ========================== */
.bt4-privacy .entry-content a {
  color: #0b6b3a;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 150ms ease;
}

.bt4-privacy .entry-content a:hover,
.bt4-privacy .entry-content a:focus {
  color: #148a49;
  border-bottom-color: currentColor;
}

.bt4-privacy .external-link::after {
  content: '↗';
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.85em;
  opacity: 0.7;
}

.bt4-privacy .privacy-email {
  font-family: 'Courier New', monospace;
  font-size: 0.9375em;
  padding: 0.125em 0.375em;
  background: #f5f7fa;
  border-radius: 4px;
}

/* ==========================
   Callout Boxes
   ========================== */
.bt4-privacy .privacy-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f5f7fa, #ffffff);
  border-left: 4px solid #0b6b3a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(10, 20, 30, 0.06);
}

.bt4-privacy .privacy-callout p {
  margin: 0;
  font-weight: 600;
  color: #222222;
}

.bt4-privacy .privacy-callout p + p {
  margin-top: 0.75rem;
}

.bt4-privacy .legal-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fafafc, #f5f7fa);
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.08);
}

.bt4-privacy .legal-block h3 {
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: #0b6b3a;
}

.bt4-privacy .legal-block p {
  margin: 0 0 1rem 0;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.65;
  color: #4a4a4a;
}

.bt4-privacy .legal-block p:last-child {
  margin-bottom: 0;
}

/* ==========================
   Footer
   ========================== */
.bt4-privacy .entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

/* ==========================
   Focus States
   ========================== */
.bt4-privacy :focus-visible {
  outline: 3px solid rgba(11, 107, 58, 0.3);
  outline-offset: 3px;
  border-radius: 4px;
}

.bt4-privacy :focus:not(:focus-visible) {
  outline: none;
}

/* ==========================
   Responsive: Tablet
   ========================== */
@media (min-width: 768px) {
  .bt4-privacy .toc-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ==========================
   Responsive: Mobile
   ========================== */
@media (max-width: 767px) {
  .bt4-privacy {
    /* Ensure padding on mobile */
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  
  .bt4-privacy .terms-privacy-container {
    padding: 0;
    margin: 0;
  }
  
  .bt4-privacy .entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .bt4-privacy .entry-title {
    font-size: 1.75rem;
  }
  
  .bt4-privacy .privacy-toc {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .bt4-privacy .toc-list {
    grid-template-columns: 1fr;
  }
  
  .bt4-privacy .privacy-section {
    margin-bottom: 2rem;
    scroll-margin-top: 80px;
  }
  
  .bt4-privacy .privacy-section h2 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
  }
  
  .bt4-privacy .privacy-callout,
  .bt4-privacy .legal-block {
    padding: 1rem;
  }
}

/* ==========================
   Responsive: Very Small Mobile
   ========================== */
@media (max-width: 400px) {
  .bt4-privacy {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .bt4-privacy .entry-title {
    font-size: 1.5rem;
  }
  
  .bt4-privacy .privacy-section h2 {
    font-size: 1.125rem;
  }
}

/* ==========================
   High Contrast Mode
   ========================== */
@media (prefers-contrast: high) {
  .bt4-privacy {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .bt4-privacy .entry-content a {
    text-decoration: underline;
  }
  
  .bt4-privacy .privacy-callout,
  .bt4-privacy .legal-block {
    border-width: 2px;
  }
}

/* ==========================
   Reduced Motion
   ========================== */
@media (prefers-reduced-motion: reduce) {
  .bt4-privacy *,
  .bt4-privacy *::before,
  .bt4-privacy *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .bt4-privacy .toc-list a:hover {
    transform: none;
  }
}

/* ==========================
   CRITICAL: Disable Dark Mode
   ========================== */
@media (prefers-color-scheme: dark) {
  .bt4-privacy {
    /* FORCE white background even in dark mode */
    background: #ffffff !important;
    color: #222222 !important;
  }
  
  .bt4-privacy .terms-privacy-container {
    background: #ffffff !important;
    color: #222222 !important;
  }
  
  .bt4-privacy .entry-content,
  .bt4-privacy .privacy-section p,
  .bt4-privacy .privacy-section li,
  .bt4-privacy .legal-block p {
    color: #4a4a4a !important;
  }
  
  .bt4-privacy .entry-title {
    color: #0b6b3a !important;
  }
}

/* ==========================
   Print Styles
   ========================== */
@media print {
  .bt4-privacy {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  
  .bt4-privacy .skip-link,
  .bt4-privacy .privacy-breadcrumb,
  .bt4-privacy .privacy-toc,
  .bt4-privacy .entry-footer {
    display: none;
  }
  
  .bt4-privacy .entry-header {
    border-bottom: 2px solid #000000;
  }
  
  .bt4-privacy .privacy-section {
    page-break-inside: avoid;
  }
  
  .bt4-privacy .privacy-section h2 {
    page-break-after: avoid;
  }
  
  .bt4-privacy a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}