/* =====================================================================
   FILE PATH: app/static/mapcare/dpdp-legal-gateway.css
   PURPOSE  : Stylesheet for DPDP 2023 Statutory Legal Gateway & Grievance Redressal (SCR-041 to SCR-047)
   TOKENS   : Primary: #0e2b5d, Accent: #0083ff, Surface: #edf8ff, Radius: 22px
   RULES    : Fluid 360px-430px Portrait 100dvh, 100% Zero-Emoji Parity
   ===================================================================== */

:root {
  --mc-primary: #0e2b5d;
  --mc-accent: #0083ff;
  --mc-surface: #edf8ff;
  --mc-border: #e2e8f0;
  --mc-radius-card: 22px;
  --mc-radius-btn: 14px;
  --mc-radius-pill: 9999px;
  --mc-text-main: #0f172a;
  --mc-text-muted: #64748b;
  --mc-success: #10b981;
  --mc-danger: #ef4444;
}

body.mc-legal-mobile-body {
  margin: 0;
  padding: 0;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mc-text-main);
  min-height: 100vh;
}

.mc-legal-canvas {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

.mc-legal-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mc-border);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
}

.mc-legal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--mc-primary);
  margin: 0;
}

.mc-legal-content {
  flex: 1;
  padding: 20px 16px;
}

/* Statutory DPDP Banner */
.mc-dpdp-statutory-banner {
  background: linear-gradient(135deg, var(--mc-primary) 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--mc-radius-card);
  padding: 20px;
  margin-bottom: 20px;
}

.mc-dpdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--mc-radius-pill);
  margin-bottom: 8px;
}

.mc-dpdp-banner-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.mc-dpdp-banner-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

/* Clauses Accordion & Legal Text Blocks */
.mc-legal-clause-card {
  border: 1.5px solid var(--mc-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
}

.mc-clause-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--mc-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mc-clause-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-primary);
  margin: 0 0 8px;
}

.mc-clause-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mc-text-muted);
  margin: 0;
}

/* Consent Toggle Card (SCR-044 & SCR-046) */
.mc-consent-card {
  border: 1.5px solid var(--mc-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-consent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mc-consent-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-primary);
  margin: 0 0 4px;
}

.mc-consent-basis {
  font-size: 10px;
  font-weight: 700;
  color: var(--mc-accent);
  background: var(--mc-surface);
  padding: 2px 8px;
  border-radius: var(--mc-radius-pill);
  display: inline-block;
  margin-bottom: 6px;
}

.mc-consent-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mc-text-muted);
  margin: 0;
}

/* Switch UI */
.mc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.mc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.mc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .mc-slider {
  background-color: var(--mc-accent);
}

input:checked + .mc-slider:before {
  transform: translateX(20px);
}

input:disabled + .mc-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Grievance Timeline (SCR-047) */
.mc-grievance-item {
  border: 1.5px solid var(--mc-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
}

.mc-token-badge {
  font-size: 11px;
  font-family: monospace;
  font-weight: 800;
  color: var(--mc-primary);
  background: var(--mc-surface);
  padding: 3px 8px;
  border-radius: 6px;
}

/* =========================================================================
   FIGMA 1:1 PARITY OVERRIDES — BATCH 3A (SCR-030 TO SCR-040)
   ========================================================================= */
body.mc-legal-mobile-body {
  background: #f8fafc;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
}
.mc-legal-canvas {
  max-width: 390px;
  min-height: 844px;
  margin: 0 auto;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.mc-legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.mc-legal-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.mc-help-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0076ff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.mc-legal-content {
  padding: 14px 16px 24px;
  flex: 1;
}
.mc-b3-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.mc-b3-hero-text {
  flex: 1;
}
.mc-b3-h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px;
}
.mc-b3-blue {
  color: #0076ff;
}
.mc-b3-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}
.mc-b3-hero-img {
  height: auto;
  flex-shrink: 0;
  display: block;
}
.mc-b3-field-group {
  margin-bottom: 12px;
}
.mc-b3-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}
.mc-b3-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1.2px solid #93c5fd;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}
.mc-b3-in-icon {
  font-size: 13px;
  color: #0076ff;
  flex-shrink: 0;
}
.mc-b3-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  flex: 1;
  font-size: 13px !important;
  color: #1e293b !important;
  height: 100% !important;
  padding: 0 !important;
}
.mc-b3-in-right {
  font-size: 13px;
  color: #64748b;
}
.mc-b3-btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: #0076ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.mc-b3-btn-outline {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.2px solid #cbd5e1;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.mc-b3-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}
.mc-b3-or-divider::before, .mc-b3-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.mc-b3-or-divider span {
  padding: 0 10px;
}
.mc-b3-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  margin: 12px 0;
}
.mc-b3-info-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0076ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.mc-b3-info-banner strong {
  display: block;
  font-size: 12px;
  color: #0076ff;
}
.mc-b3-info-banner p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #475569;
}
.mc-b3-sec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 14px 0 8px;
}
.mc-b3-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-b3-list-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
}
.mc-b3-lc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.mc-b3-lc-body {
  flex: 1;
  min-width: 0;
}
.mc-b3-lc-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}
.mc-b3-lc-body p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.mc-b3-lc-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.mc-b3-lc-dots {
  color: #94a3b8;
  font-weight: 700;
}
.mc-b3-urgent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  margin-top: 12px;
}
.mc-b3-urgent-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-b3-urgent-left strong {
  display: block;
  font-size: 12px;
  color: #be123c;
}
.mc-b3-urgent-left p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #e11d48;
}
.mc-b3-urgent-btn {
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid #f43f5e;
  background: #ffffff;
  color: #e11d48;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.mc-b3-icon-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}
.mc-b3-ig-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #334155;
}
.mc-b3-ig-item span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mc-b3-ig-item small {
  font-size: 10px;
  font-weight: 600;
}
.mc-b3-faq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}
.mc-b3-box-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mc-b3-issue-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
}
.mc-b3-ib-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mc-b3-badge-green {
  padding: 4px 8px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mc-b3-pill-outline {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #0076ff;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mc-b3-pill-muted {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.mc-b3-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
}
.mc-b3-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.mc-b3-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-b3-step.active .mc-b3-step-circle {
  background: #0076ff;
}
.mc-b3-step span {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.mc-b3-step.active span {
  color: #0076ff;
}
.mc-b3-step-line {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  margin: 0 4px 14px;
}
.mc-b3-step-line.active {
  background: #0076ff;
}
.mc-b3-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mc-b3-toggle-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.mc-b3-toggle-btn.active {
  border-color: #0076ff;
  background: #eff6ff;
  color: #0076ff;
}
.mc-b3-check-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 14px;
}
.mc-b3-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.mc-b3-otp-box {
  width: 100%;
  height: 46px;
  border: 1.2px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}
.mc-b3-why-trust-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 14px;
}
.mc-b3-check-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}
.mc-b3-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #334155;
}
.mc-b3-trust-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}
.mc-b3-trust-line {
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
}
.mc-b3-terms-line a {
  color: #0076ff;
  text-decoration: none;
}

.mc-b3-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #eff6ff;
  color: #0076ff;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mc-b3-warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin: 10px 0;
}
.mc-b3-warn-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d97706;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.mc-b3-warn-banner strong {
  display: block;
  font-size: 12px;
  color: #d97706;
}
.mc-b3-warn-banner p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #78350f;
  line-height: 1.35;
}
.mc-b3-badge-red {
  padding: 4px 8px;
  border-radius: 99px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
