/* ============================================================
   Carheel Platform — Legal / Privacy / Consent styling
   ------------------------------------------------------------
   Styles for the shared legal verbiage injected by legal.js:
   inline consent / privacy / AI / upload notices, the standard
   portal legal footer, the development notice, and the
   first-time-login acknowledgment modal.

   Operational draft styling only — pairs with operational draft
   language that must be reviewed by legal counsel before launch.
   ============================================================ */

/* ---------- Inline notices ---------- */
.carheel-notice {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #3c424a;
  background: #f6f7f8;
  border: 1px solid #e1e4e8;
  border-left: 4px solid #e8420a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.carheel-notice strong { color: #2a2f36; }
.carheel-notice p { margin: 0 0 8px; }
.carheel-notice p:last-child { margin-bottom: 0; }
.carheel-notice .carheel-notice-title {
  display: block;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #e8420a;
  margin-bottom: 6px;
}
.carheel-notice--muted { border-left-color: #5a6370; }
.carheel-notice--muted .carheel-notice-title { color: #5a6370; }

/* Compact variant for tight form contexts */
.carheel-notice--sm { font-size: 12px; padding: 10px 12px; margin: 10px 0; }

/* Role-based access list */
.carheel-roles { list-style: none; margin: 8px 0 0; padding: 0; }
.carheel-roles li { margin: 0 0 8px; }
.carheel-roles strong { display: block; color: #2a2f36; }

/* ---------- Development notice ---------- */
.carheel-devnotice {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #7a4a00;
  background: #fff7e6;
  border: 1px dashed #e0a106;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
}
.carheel-devnotice strong { color: #5a3700; }

/* ---------- Standard portal legal footer ---------- */
.carheel-legal-footer {
  font-family: "Barlow", system-ui, sans-serif;
  background: #1e2530;
  color: rgba(255, 255, 255, 0.62);
  padding: 30px 24px 38px;
  border-top: 3px solid #e8420a;
}
.carheel-legal-footer .clf-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.carheel-legal-footer .clf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 16px;
}
.carheel-legal-footer .clf-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
}
.carheel-legal-footer .clf-links a:hover { color: #ff7a4d; text-decoration: underline; }
.carheel-legal-footer .clf-dev {
  font-size: 12px;
  color: #ffcf8f;
  background: rgba(224, 161, 6, 0.12);
  border: 1px dashed rgba(224, 161, 6, 0.55);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.carheel-legal-footer .clf-copy {
  font-size: 12.5px;
  line-height: 1.65;
}
.carheel-legal-footer .clf-copy .clf-mark {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* ---------- First-time acknowledgment modal ---------- */
.carheel-ack-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 19, 26, 0.78);
  backdrop-filter: blur(3px);
  font-family: "Barlow", system-ui, sans-serif;
}
.carheel-ack-card {
  background: #fff;
  color: #2a2f36;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 30px 24px;
}
.carheel-ack-card h2 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.5px;
  font-size: 26px;
  margin: 0 0 6px;
  color: #1e2530;
}
.carheel-ack-card .carheel-ack-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #5a6370;
  margin: 0 0 18px;
}
.carheel-ack-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 9px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.carheel-ack-item:hover { border-color: #c7ccd2; background: #fafbfc; }
.carheel-ack-item input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: #e8420a; cursor: pointer; }
.carheel-ack-item span { font-size: 13.5px; line-height: 1.5; }
.carheel-ack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.carheel-ack-btn {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 15px;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: #e8420a;
  color: #fff;
  cursor: pointer;
}
.carheel-ack-btn:disabled { background: #c7ccd2; cursor: not-allowed; }
.carheel-ack-signout {
  background: none;
  border: none;
  color: #5a6370;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.carheel-ack-links { margin-top: 14px; font-size: 12px; color: #7a818b; }
.carheel-ack-links a { color: #e8420a; }
.carheel-ack-version { margin-top: 8px; font-size: 11px; color: #9aa1a9; }
