/* ==========================================================================
   Privacy Policy - Zouis corp (Zouis Pos M-connect)
   Clean Single-Page Document Layout (No Boxy Rectangles)
   ========================================================================== */

:root {
  /* Light Theme */
  --bg-body: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --text-main: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  --progress-gradient: linear-gradient(90deg, #2563eb, #0d9488);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-body: #0b0f19;
  --bg-nav: rgba(11, 15, 25, 0.92);
  --text-main: #cbd5e1;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.12);

  --border-color: #1e293b;
  --border-subtle: #151d2f;

  --progress-gradient: linear-gradient(90deg, #3b82f6, #14b8a6);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Document Wrapper */
.document-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.document {
  display: flex;
  flex-direction: column;
}

/* Document Header */
.doc-header {
  margin-bottom: 24px;
}

.doc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--text-heading);
}

/* Document Lead Paragraph */
.doc-lead p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 0;
}

.doc-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 36px 0;
}

/* Document Content Sections */
.doc-section {
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.doc-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 14px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

/* Lists */
.doc-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-list li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main);
}

.doc-list li strong {
  color: var(--text-heading);
}

/* Notice / Caution */
.doc-notice {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Contact Section Details */
.contact-section {
  margin-bottom: 48px;
}

.contact-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-line {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0 !important;
}

.contact-line strong {
  color: var(--text-heading);
  display: inline-block;
  min-width: 140px;
}

/* Quick Action Links */
.quick-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff !important;
  text-decoration: none !important;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-link-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.action-link-btn.outline-btn {
  background: transparent;
  color: var(--text-heading) !important;
  border-color: var(--border-color);
}

.action-link-btn.outline-btn:hover {
  border-color: var(--text-muted);
  background: var(--primary-light);
}

/* Document Footer */
.doc-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1002;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Print Styles */
@media print {
  .top-nav,
  .progress-bar-container,
  .quick-contact-actions,
  .toast {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .document-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  .doc-title {
    font-size: 20pt !important;
  }

  .section-title {
    font-size: 13pt !important;
  }

  .doc-section {
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .document-wrapper {
    padding: 28px 18px 60px;
  }

  .contact-line strong {
    min-width: unset;
    display: block;
    margin-bottom: 2px;
  }
}
