/* ==========================================================================
   Legal pages — Terms & Conditions, Privacy Policy (templates/legal.php)
   Enqueued only for that template (inc/css-frontend.php, handle wiize-legal).
   ========================================================================== */

.legal-page {
  --legal-ink: #211a15;
  --legal-text: #3a332d;
  --legal-accent: #8c0335;
  --legal-line: #e4ddd4;
  --legal-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --legal-sans: 'Work Sans', Arial, sans-serif;

  background: #fff;
  color: var(--legal-text);
  padding: 56px 16px 96px;
}

.legal-page__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Title ---------- */

.legal-hero {
  margin-bottom: 40px;
  text-align: left;
}

.legal-page .legal-hero__title {
  margin: 0;
  font-family: var(--legal-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: none;
  color: var(--legal-ink);
}

/* ---------- Content (post_content) ---------- */

.legal-content {
  font-family: var(--legal-serif);
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal-page .legal-content p {
  margin: 0 0 1.1em;
  font: inherit;
  color: inherit;
}

/* Section headings: <h2> or a bold-only paragraph (.legal-heading) */
.legal-page .legal-content h2,
.legal-page .legal-content .legal-heading {
  margin: 2em 0 0.6em;
  font-family: var(--legal-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  color: var(--legal-ink);
}

.legal-page .legal-content > :first-child {
  margin-top: 0;
}

.legal-page .legal-content .legal-heading strong,
.legal-page .legal-content .legal-heading b {
  font-weight: inherit;
}

.legal-page .legal-content a {
  color: var(--legal-accent);
  text-underline-offset: 3px;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.legal-page .legal-content ul { list-style: disc; }
.legal-page .legal-content ol { list-style: decimal; }

/* ---------- Print button ---------- */

.legal-page__footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--legal-line);
  font-family: var(--legal-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-print {
  padding: 10px 18px;
  border: 1px solid var(--legal-ink);
  border-radius: 4px;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--legal-ink);
  cursor: pointer;
}

.legal-print:hover {
  background: var(--legal-ink);
  color: #fff;
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  .legal-page { padding: 32px 16px 64px; }
  .legal-hero { margin-bottom: 28px; }
  .legal-content { font-size: 17px; }
  .legal-page .legal-content h2,
  .legal-page .legal-content .legal-heading { font-size: 22px; }
  .legal-page__footer { margin-top: 40px; }
}

/* ---------- Print: text only ---------- */

@media print {
  header, footer, nav, .legal-page__footer { display: none !important; }
  .legal-page { padding: 0; }
  .legal-content { font-size: 12pt; color: #000; }
}
