/* Privacy Policy Page Styles */

/* TL;DR Box Enhancement */
.tldr-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 3px solid #3b82f6;
  border-radius: 12px;
  padding: 0;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.tldr-box summary {
  padding: 1.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: #1e40af;
  list-style: none;
}

.tldr-box summary::-webkit-details-marker {
  display: none;
}

.tldr-box[open] summary {
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.tldr-content {
  padding: 0 1.5rem 1.5rem;
}

.tldr-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #3b82f6;
  transition: all 0.2s ease;
}

.tldr-item:last-child {
  margin-bottom: 0;
}

.tldr-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tldr-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tldr-item strong {
  color: #1e40af;
}

/* Guarantee Hero */
.guarantee-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0 1.5rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.guarantee-hero h3 {
  margin: 0 0 1rem;
  color: white;
  font-size: 1.75rem;
}

.guarantee-hero p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Guarantee Grid */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guarantee-card {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: currentColor;
}

.guarantee-card.ownership {
  color: #10b981;
}

.guarantee-card.local-first {
  color: #0066CC;
}

.guarantee-card.cloud-control {
  color: #8b5cf6;
}

.guarantee-card.no-tracking {
  color: #ef4444;
}

.guarantee-card.security {
  color: #f59e0b;
}

.guarantee-card.verifiable {
  color: #0891b2;
}

.guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: currentColor;
}

.guarantee-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.guarantee-card h4 {
  margin: 0 0 0.75rem;
  color: #333;
  font-size: 1.15rem;
}

.guarantee-card p {
  margin: 0;
  line-height: 1.6;
  color: #666;
  font-size: 0.95rem;
  text-align: left;
}

/* Implementation Cards */
.implementation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.implementation-card {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #0066CC;
  transition: all 0.2s ease;
}

.implementation-card:hover {
  border-left-width: 6px;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.implementation-card h5 {
  margin: 0 0 0.5rem;
  color: #0066CC;
  font-size: 1.05rem;
}

.implementation-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  text-align: left;
}

/* Privacy Link */
.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0066CC 0%, #4DB8FF 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.privacy-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.summary-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.summary-card:hover {
  border-color: #0066CC;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.summary-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.summary-card strong {
  color: #0066CC;
  font-size: 1.05rem;
}

.summary-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  text-align: left;
}

/* Alternative Formats */
.alternative-formats {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  border: 3px solid #f59e0b;
}

.alternative-formats p {
  margin: 0.5rem 0;
}

.format-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.25rem;
  transition: all 0.2s ease;
  border: 2px solid #f59e0b;
}

.format-link:hover {
  background-color: #fef3c7;
  transform: translateY(-2px);
}

/* Crisis Resources Banner */
.crisis-resources {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 3px solid #ef4444;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.crisis-resources strong {
  color: #991b1b;
}

.crisis-resources a {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

.crisis-resources a:hover {
  text-decoration: none;
}

/* Page Feedback */
.page-feedback {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  border: 2px solid #e5e7eb;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.25rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.feedback-yes {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.feedback-no {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.feedback-suggest {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-meta {
  margin: 1rem 0 0;
  color: #6b7280;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tldr-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #3b82f6;
  }

  .tldr-box summary {
    color: #dbeafe;
  }

  .tldr-item {
    background-color: #2d2d2d;
    border-left-color: #4DB8FF;
  }

  .tldr-item strong {
    color: #93c5fd;
  }

  .guarantee-card,
  .summary-card {
    background-color: #2d2d2d;
    border-color: #444;
  }

  .guarantee-card h4,
  .summary-card strong {
    color: #e0e0e0;
  }

  .guarantee-card p,
  .summary-card p {
    color: #aaa;
  }

  .implementation-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-left-color: #4DB8FF;
  }

  .implementation-card h5 {
    color: #93c5fd;
  }

  .implementation-card p {
    color: #d1d5db;
  }

  .alternative-formats {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
  }

  .format-link {
    background-color: #2d2d2d;
    color: #fde68a;
    border-color: #f59e0b;
  }

  .crisis-resources {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #ef4444;
  }

  .crisis-resources strong,
  .crisis-resources a {
    color: #fecaca;
  }

  .page-feedback {
    background-color: #1f2937;
    border-color: #374151;
  }

  .feedback-yes {
    background-color: #14532d;
    color: #d1fae5;
  }

  .feedback-no {
    background-color: #7f1d1d;
    color: #fecaca;
  }

  .feedback-suggest {
    background-color: #1e3a8a;
    color: #dbeafe;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tldr-item:hover,
  .guarantee-card:hover,
  .implementation-card:hover,
  .summary-card:hover,
  .privacy-link:hover,
  .format-link:hover,
  .feedback-btn:hover {
    transform: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .guarantee-grid,
  .implementation-cards,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .tldr-content {
    padding: 0 1rem 1rem;
  }

  .guarantee-hero {
    padding: 1.5rem;
  }

  .guarantee-hero h3 {
    font-size: 1.5rem;
  }

  .alternative-formats {
    padding: 1rem;
  }

  .format-link {
    display: flex;
    margin: 0.5rem 0;
  }
}

/* Print Styles */
@media print {
  .guarantee-hero,
  .tldr-box,
  .alternative-formats,
  .crisis-resources {
    background: white !important;
    color: black !important;
    border: 2px solid black;
  }

  .guarantee-card,
  .summary-card {
    break-inside: avoid;
    border: 1px solid black;
  }

  .feedback-btn,
  .privacy-link {
    display: none;
  }
}
