/* ============================================================
   Privacy Policy — Facility Maintenance Task Manager
   Standalone stylesheet (no Tailwind dependency)
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---------- Header ---------- */
.site-header {
  background: #1e3a5f;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #7dd3fc;
}

.back-link {
  font-size: 0.85rem;
  color: #bae6fd;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.back-link:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 680px;
}

/* ---------- Summary bar ---------- */
.summary-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.summary-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.summary-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-card.good {
  background: #f0fdf4;
  border-color: #86efac;
}

.card-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.summary-card strong {
  font-size: 0.92rem;
  color: #166534;
}

.summary-card p {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.5;
}

/* ---------- Policy sections ---------- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.policy-section {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #dbeafe;
  display: inline-block;
}

.policy-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin: 1.25rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy-section p {
  color: #374151;
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}

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

.policy-section ul,
.policy-section ol {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  color: #374151;
  font-size: 0.97rem;
}

.policy-section li {
  margin-bottom: 0.4rem;
}

/* Checklist with coloured ticks */
.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
}

.check-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.85rem;
  top: 0.05em;
}

/* ---------- Links ---------- */
a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
a:hover { color: #1d4ed8; }

/* ---------- Code ---------- */
code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #0f172a;
}

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.data-table thead {
  background: #1e3a5f;
  color: #fff;
}

.data-table th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:nth-child(even) td { background: #f9fafb; }

.data-table td.no {
  color: #16a34a;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1e3a5f;
  color: #9ca3af;
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
}

.site-footer a {
  color: #93c5fd;
}
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 380px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  body {
    background: #111827;
    color: #e5e7eb;
  }

  .hero-title { color: #93c5fd; }
  .hero { border-bottom-color: #374151; }
  .hero-lead { color: #9ca3af; }

  .badge {
    background: #1e3a5f;
    color: #93c5fd;
  }

  .summary-bar {
    background: #1f2937;
    border-color: #374151;
  }

  .summary-card.good {
    background: #052e16;
    border-color: #166534;
  }

  .summary-card strong { color: #4ade80; }
  .summary-card p { color: #9ca3af; }

  .policy-section { border-bottom-color: #374151; }

  .policy-section h2 {
    color: #93c5fd;
    border-bottom-color: #1e3a5f;
  }

  .policy-section h3 { color: #d1d5db; }
  .policy-section p,
  .policy-section li { color: #d1d5db; }

  code {
    background: #1e2d3d;
    border-color: #374151;
    color: #e2e8f0;
  }

  .data-table {
    box-shadow: 0 0 0 1px #374151;
  }

  .data-table thead { background: #1e3a5f; }

  .data-table td {
    border-bottom-color: #374151;
    color: #d1d5db;
  }

  .data-table tr:nth-child(even) td { background: #1a2332; }

  .check-list li::before { color: #f87171; }

  a { color: #60a5fa; }
  a:hover { color: #93c5fd; }
}
