/* ===========================================================================
   IMAGE OF HOPE — LEGAL PAGES (Privacy Policy, Terms & Conditions)
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #ed154e; --dark: #0f0919; --white: #ffffff;
  --lavender: #c0b6d1; --off-white: #f2f2f2; --side: 15%;
  --red-text: #c70f3f; /* pink darkened for small text on white */
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* Hero */
.legal-hero { background: var(--dark); padding-top: 78px; position: relative; overflow: hidden; }
.legal-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(237,21,78,0.10) 0%, transparent 55%); pointer-events: none; }
.legal-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.breadcrumb { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 20px; }
.breadcrumb a { color: var(--lavender); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--red); margin: 0 8px; }
.legal-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; color: var(--white); line-height: 1.06; margin-bottom: 18px; }
.legal-hero h1 .accent { color: var(--red); }
.legal-updated { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 22px; }
.legal-intro p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 640px; margin-bottom: 10px; }
.legal-intro p em { font-style: italic; }

/* Layout */
.legal-main { background: var(--white); }
.legal-main .wrap { padding-top: 80px; padding-bottom: 96px; display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }

/* Contents */
.legal-toc { position: sticky; top: 110px; }
.legal-toc .label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-text); margin-bottom: 14px; }
.legal-toc ol { list-style: none; border-left: 2px solid #eee; }
.legal-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 12px; font-weight: 600; color: #666; text-decoration: none; line-height: 1.45; transition: color 0.2s, border-color 0.2s; }
.legal-toc a:hover { color: var(--dark); }
.legal-toc a.is-current { color: var(--dark); border-left-color: var(--red); }
.legal-toc details summary { display: none; }

/* Article */
.legal-body { max-width: 760px; }
.legal-body section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid #f0ecec; }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-body h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .num { font-size: 13px; font-weight: 800; color: var(--red-text); letter-spacing: 0.06em; min-width: 26px; }
.legal-body p { font-size: 15px; line-height: 1.85; color: #444; margin-bottom: 14px; }
.legal-body ul { list-style: none; margin: 4px 0 18px; }
.legal-body ul li { position: relative; padding: 7px 0 7px 22px; font-size: 15px; line-height: 1.7; color: #444; border-bottom: 1px solid #f6f3f3; }
.legal-body ul li:last-child { border-bottom: 0; }
.legal-body ul li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.legal-body strong { color: var(--dark); font-weight: 700; }
.legal-body a { color: var(--red-text); text-underline-offset: 3px; }
.legal-body a:hover { color: var(--dark); }

/* Contact card (last section) */
.legal-contact { background: var(--off-white); border-left: 3px solid var(--red); padding: 26px 30px; margin-top: 8px; }
.legal-contact p { margin-bottom: 6px; }
.legal-contact p:last-child { margin-bottom: 0; }

/* Closing CTA */
.legal-cta { background: var(--off-white); }
.legal-cta .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.legal-cta h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--dark); line-height: 1.2; }
.legal-cta p { font-size: 14px; color: #555; margin-top: 8px; }
.legal-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  :root { --side: 6%; }
  .legal-main .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .legal-toc { position: static; background: var(--off-white); padding: 4px 20px; }
  .legal-toc .label { display: none; }
  .legal-toc details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 14px 0; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark); }
  .legal-toc details summary::-webkit-details-marker { display: none; }
  .legal-toc details summary::after { content: '+'; font-size: 18px; color: var(--red); }
  .legal-toc details[open] summary::after { content: '–'; }
  .legal-toc ol { padding-bottom: 12px; }
}
@media (max-width: 640px) {
  :root { --side: 5%; }
  .legal-hero .wrap { padding-top: 52px; padding-bottom: 52px; }
  .legal-body h2 { flex-direction: column; gap: 4px; }
}
@media print {
  #mainNav, footer, .legal-toc, .legal-cta { display: none !important; }
  .legal-hero { background: none; padding-top: 0; }
  .legal-hero h1, .legal-intro p { color: #000; }
  .legal-main .wrap { display: block; padding: 0; }
}
