/* ============================================
   diagnostic.eurooptica.md — Privacy policy page
   Standalone typography for the legal document.
   Not built with Tailwind utilities on purpose:
   css/tailwind.css is a purged landing-page build
   and has no .prose / .table-auto / .border-collapse.
   Everything is scoped under .policy-doc.
   ============================================ */

.policy-doc {
  --pd-navy: #1B2A5B;
  --pd-navy-soft: #243766;
  --pd-coral: #E8574A;
  --pd-text: #4B5563;
  --pd-line: #E5E7EB;
  --pd-zebra: #F5F7FA;

  max-width: 860px;
  margin: 0 auto;
  padding: 104px 16px 64px;
  color: var(--pd-text);
  font-family: Onest, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
  .policy-doc { padding: 128px 24px 80px; }
}

/* ---------- Headings ---------- */

.policy-doc h1 {
  margin: 0 0 8px;
  color: var(--pd-navy);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .policy-doc h1 { font-size: 36px; }
}

.policy-doc h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--pd-line);
  color: var(--pd-navy);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

@media (min-width: 768px) {
  .policy-doc h2 { font-size: 22px; }
}

.policy-doc h2:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- Text blocks ---------- */

.policy-doc p { margin: 0 0 16px; }

.policy-doc strong { color: var(--pd-navy-soft); font-weight: 600; }

.policy-doc a {
  color: var(--pd-coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-doc a:hover { color: var(--pd-navy); }

.policy-doc ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.policy-doc li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
}

.policy-doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-coral);
}

/* Intro paragraph right under H1 */
.policy-doc .policy-lead {
  margin-bottom: 32px;
  font-size: 17px;
  color: var(--pd-navy-soft);
}

/* Operator card (section 1) */
.policy-doc .policy-card {
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: #fff;
}

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

/* ---------- Table (section 3) ---------- */

.policy-doc .policy-table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.policy-doc th,
.policy-doc td {
  padding: 12px 14px;
  border: 1px solid var(--pd-line);
  text-align: left;
  vertical-align: top;
}

.policy-doc thead th {
  background: var(--pd-navy);
  color: #fff;
  font-weight: 600;
  border-color: var(--pd-navy);
}

.policy-doc tbody tr:nth-child(even) td { background: var(--pd-zebra); }

/* Stacked table on narrow screens */
@media (max-width: 640px) {
  .policy-doc table,
  .policy-doc tbody,
  .policy-doc tr,
  .policy-doc td { display: block; width: 100%; }

  .policy-doc thead { display: none; }

  .policy-doc tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    overflow: hidden;
  }

  .policy-doc tbody td {
    border: 0;
    border-bottom: 1px solid var(--pd-line);
    padding: 12px 14px;
  }

  .policy-doc tbody tr td:last-child { border-bottom: 0; }

  .policy-doc tbody td::before {
    display: block;
    margin-bottom: 4px;
    content: attr(data-label);
    color: var(--pd-navy);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .policy-doc tbody tr:nth-child(even) td { background: #fff; }
}

/* ---------- Version footer ---------- */

.policy-doc .policy-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--pd-line);
  font-size: 14px;
  color: #9CA3AF;
}

.policy-doc .policy-meta p { margin: 0 0 4px; }
