/* ============================================================
   EnterCannected — Legal pages (Privacy Policy, Notice at
   Collection, Privacy Request) + sitewide privacy footer links +
   cookie banner / preference center.
   Namespaced with "lp-" (legal page) and "cc-" (cookie consent)
   prefixes to avoid collision with the rest of the design system.
   Reuses --green/--black/--white/--gray/--serif/--sans tokens
   already defined in ec-styles.css :root.
   ============================================================ */

.lp-body { background: var(--black); color: var(--white); }

.lp-main { padding-top: 140px; padding-bottom: 120px; }

.lp-header { margin-bottom: 48px; }

.lp-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 18px;
}

.lp-dates {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.lp-intro-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 680px;
  line-height: 1.6;
  margin: 20px 0 0;
}

/* ---- Table of contents ---- */
.lp-toc {
  margin: 40px 0 56px;
  padding: 24px 28px;
  border: 1px solid var(--gray-soft);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.lp-toc-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 14px;
}
.lp-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
}
.lp-toc li.lp-toc-lvl3 { margin-left: 18px; font-size: 0.9em; }
.lp-toc a {
  color: var(--white);
  opacity: 0.82;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: opacity 0.2s, color 0.2s;
}
.lp-toc a:hover { opacity: 1; color: var(--green); text-decoration: underline; }
@media (max-width: 720px) {
  .lp-toc ol { grid-template-columns: 1fr; }
}

/* ---- Arbitration notice callout (Website Terms of Use page) ---- */
.lp-arb-box {
  border: 1px solid var(--gray-soft);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  padding: 24px 28px;
  margin: 0 0 40px;
}
.lp-arb-box .lp-arb-heading {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin: 0 0 14px;
  scroll-margin-top: 110px;
}
.lp-arb-box p {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin: 0 0 10px;
}
.lp-arb-box p:last-child { margin-bottom: 0; }

/* ---- Discreet "Back to Top" links inside long legal content ---- */
.lp-backtotop { margin: 8px 0 28px; }
.lp-backtotop a {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px dotted var(--gray-soft);
}
.lp-backtotop a:hover { color: var(--green); }

/* ---- Body content ---- */
.lp-content { max-width: 760px; }
.lp-anchor-target { display: block; position: relative; scroll-margin-top: 110px; }
.lp-content .lp-h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  color: var(--white);
  margin: 56px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 110px;
}
.lp-content .lp-h2:first-of-type { margin-top: 8px; }
.lp-content .lp-h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin: 30px 0 12px;
  scroll-margin-top: 110px;
}
.lp-content p {
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 14px;
}
.lp-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.lp-content ul li {
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 6px;
}
.lp-content a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.lp-content a:hover { color: var(--white); }

/* ---- Privacy Request form ---- */
.lp-form { max-width: 640px; margin-top: 8px; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lp-form-row.lp-form-row-1 { grid-template-columns: 1fr; }
@media (max-width: 640px) { .lp-form-row { grid-template-columns: 1fr; } }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field label {
  font-family: var(--sans); font-size: 0.8rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lp-field input,
.lp-field select,
.lp-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-soft);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.lp-field textarea { resize: vertical; min-height: 100px; }
.lp-field input:focus-visible,
.lp-field select:focus-visible,
.lp-field textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.lp-field-hint { font-size: 0.78rem; color: var(--gray); }
.lp-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0; font-family: var(--sans); font-size: 0.9rem; color: rgba(255,255,255,0.8);
}
.lp-checkbox-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.lp-notice-box {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gray);
  border-top: 1px solid var(--gray-soft);
  padding-top: 16px;
  margin: 20px 0 22px;
}
.lp-notice-box a { color: var(--green); text-decoration: underline; }
.lp-form-status { font-family: var(--sans); font-size: 0.9rem; margin-top: 14px; min-height: 1.4em; }
.lp-form-status.is-success { color: var(--green); }
.lp-form-status.is-error { color: #ff6b6b; }
.lp-form-confirmation {
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 28px;
  background: var(--green-soft);
  font-family: var(--sans);
}
.lp-form-confirmation h2 { font-family: var(--serif); font-weight: 400; color: var(--white); margin: 0 0 12px; }
.lp-form-confirmation ul { margin: 12px 0 0; padding-left: 20px; color: rgba(255,255,255,0.85); }

/* ============================================================
   Sitewide short privacy notices (used at Health Check identity
   fields, start buttons, final submission, contact/CTA forms,
   Calendly, email-results modal, etc.)
   ============================================================ */
.priv-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 560px;
}
.priv-note a { color: var(--green); text-decoration: underline; }
.priv-note a:hover { color: var(--white); }
.priv-note-ack { margin-top: 10px; margin-bottom: 2px; }

/* ============================================================
   Sitewide compact "Legal" footer bar — used on pages that don't
   carry the full homepage footer (assessment pages, legal pages,
   Fit & Focus).
   ============================================================ */
.legal-footer-bar {
  border-top: 1px solid var(--gray-soft);
  padding: 22px 0 30px;
}
.legal-footer-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.legal-footer-links a,
.legal-footer-links button {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gray);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.legal-footer-links a:hover,
.legal-footer-links button:hover { color: var(--green); }
.legal-footer-copy { font-family: var(--sans); font-size: 0.78rem; color: var(--gray); }

/* ============================================================
   Cookie & Browser-Storage Banner
   ============================================================ */
.cc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9990;
  max-width: 640px;
  margin: 0 auto;
  background: #111;
  border: 1px solid var(--gray-soft);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-family: var(--sans);
}
.cc-banner[hidden] { display: none; }
.cc-banner-text {
  flex: 1 1 320px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.cc-banner-text a { color: var(--green); text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--gray-soft);
  background: transparent;
  color: var(--white);
  white-space: nowrap;
}
.cc-btn:hover { border-color: var(--green); color: var(--green); }
.cc-btn.cc-btn-primary { background: var(--green); border-color: var(--green); color: var(--black); }
.cc-btn.cc-btn-primary:hover { color: var(--black); opacity: 0.9; }

/* ---- Cookie Preference Center modal ---- */
.cc-modal-overlay {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cc-modal-overlay[hidden] { display: none; }
.cc-modal {
  background: #0c0c0c;
  border: 1px solid var(--gray-soft);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px;
  font-family: var(--sans);
  position: relative;
}
.cc-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--gray);
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.cc-modal-close:hover { color: var(--white); }
.cc-modal h2 { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: 1.5rem; margin: 0 0 12px; }
.cc-modal-intro { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin: 0 0 24px; }
.cc-category { border-top: 1px solid var(--gray-soft); padding: 16px 0; }
.cc-category:first-of-type { border-top: none; padding-top: 0; }
.cc-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-category-title { font-size: 0.92rem; font-weight: 600; color: var(--white); margin: 0; }
.cc-category-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.55; margin: 6px 0 0; }
.cc-category-required { font-size: 0.72rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; }

/* Toggle switch */
.cc-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--gray-soft); transition: background 0.2s;
}
.cc-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  transition: transform 0.2s;
}
.cc-toggle input:checked ~ .cc-toggle-track { background: var(--green); }
.cc-toggle input:checked ~ .cc-toggle-track::after { transform: translateX(18px); }
.cc-toggle input:disabled ~ .cc-toggle-track { background: var(--green); opacity: 0.5; cursor: not-allowed; }
.cc-toggle input:focus-visible ~ .cc-toggle-track { outline: 2px solid var(--green); outline-offset: 2px; }

.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cc-modal-footer-link { margin-top: 18px; font-size: 0.8rem; }
.cc-modal-footer-link a { color: var(--green); text-decoration: underline; }

@media (max-width: 480px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cc-modal { padding: 24px 20px; }
}
