/* Warranty policy page (/warranty/) — same text as bdfix.net/warranty-policy/
   (master: bdfix-website/docs/WARRANTY-POLICY.md). Uses tokens.css + portal.css. */

.pol-hero { padding: 40px 0 32px; }
.pol-hero-in { max-width: 860px; margin: 0 auto; }
.pol-h1 { font: 700 32px/1.25 var(--bf-font-head); letter-spacing: -0.5px; color: #FFFFFF; }
.pol-h1 .bn { font-family: var(--bf-font-bn); font-weight: 700; line-height: 1.5; }
.pol-hero-sub { margin-top: 8px; color: #CBD5E1; font-size: 15px; }
.pol-hero-sub a { color: #A7F3D0; text-decoration: underline; text-underline-offset: 3px; }

.pol-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* বাংলা | English switch (hidden until policy.js runs; both languages show without JS). */
.lang-toggle[hidden], .pol-panel[hidden] { display: none !important; }
.lang-toggle { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border: 1px solid var(--bf-line); border-radius: 10px; background: var(--bf-frame); }
.lang-btn { min-width: 96px; min-height: 40px; padding: 0 16px; border-radius: 7px; color: var(--bf-gray); font-size: 15px; font-weight: 600; line-height: 1; transition: background-color var(--bf-ease), color var(--bf-ease), box-shadow var(--bf-ease); }
.lang-btn[lang="bn"] { font-family: var(--bf-font-bn); }
.lang-btn:hover { color: var(--bf-pcb-green); }
.lang-btn[aria-pressed="true"] { background: var(--bf-white); color: var(--bf-pcb-green); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.pol-panel { display: flex; flex-direction: column; gap: 16px; }

.pol-summary { padding: 28px 32px; border: 1px solid var(--bf-pcb-dark-line); border-radius: 16px; background: var(--bf-pcb-dark); }
.pol-title { font: 700 22px/1.3 var(--bf-font-head); color: #FFFFFF; }
.pol-panel[lang="bn"] .pol-title { font-family: var(--bf-font-bn); line-height: 1.5; }
.pol-lead { margin-top: 8px; color: #FFFFFF; font-size: 16.5px; font-weight: 500; line-height: 1.65; }
.pol-glance-title { margin-top: 14px; color: #A7F3D0; font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }
.pol-updated { margin-top: 12px; color: #A7F3D0; font-size: 12px; font-weight: 600; }

.pol-card { padding: 24px 28px; border: 1px solid var(--bf-line); border-radius: 12px; background: var(--bf-white); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); scroll-margin-top: 90px; }
.pol-h { margin-bottom: 14px; font: 700 20px/1.3 var(--bf-font-head); letter-spacing: -0.2px; color: var(--bf-ink); }
.pol-panel[lang="bn"] .pol-h { font-family: var(--bf-font-bn); line-height: 1.5; letter-spacing: 0; }

.pol-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pol-list > li { position: relative; padding-left: 34px; color: var(--bf-gray); font-size: 15px; line-height: 1.7; }
.pol-panel[lang="bn"] .pol-list > li { line-height: 1.75; }
.pol-list strong { color: var(--bf-ink); }
.pol-list a { color: var(--bf-pcb-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Check marks (default), mint check on the dark summary. */
.pol-list > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; background: var(--bf-pcb-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pol-glance { margin-top: 8px; }
.pol-glance > li { color: #E2E8F0; }
.pol-glance strong { color: #FFFFFF; }
.pol-glance > li::before { background: #A7F3D0; }

/* Numbered rules (Bengali digits in the Bengali panel) and claim steps. */
.pol-num, .pol-steps { counter-reset: pol; gap: 12px; }
.pol-num > li, .pol-steps > li { counter-increment: pol; }
.pol-num > li::before, .pol-steps > li::before { content: counter(pol); -webkit-mask: none; mask: none; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--bf-pcb-tint); color: var(--bf-pcb-tint-text);
  display: flex; align-items: center; justify-content: center; font: 700 12.5px/1 var(--bf-font-body); }
.pol-panel[lang="bn"] .pol-num > li::before, .pol-panel[lang="bn"] .pol-steps > li::before { content: counter(pol, bengali); font: 700 13px/1 var(--bf-font-bn); }
.pol-steps > li::before { background: var(--bf-pcb-green); color: #FFFFFF; }

/* Not covered: copper cross. */
.pol-x { gap: 12px; }
.pol-x > li::before { background: var(--bf-copper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

/* Claim notes: grey boxes, no icon. */
.pol-notes { margin-top: 14px; gap: 8px; }
.pol-notes > li { padding: 12px 14px; border: 1px solid var(--bf-line); border-radius: 8px; background: #F8FAFC; }
.pol-notes > li::before { display: none; }

.pol-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Repair risk notice: amber box before the repair section (same look as bdfix.net). */
.pol-risk { position: relative; padding: 24px 28px 24px 64px; border: 1px solid #FCD34D; border-left: 5px solid #F59E0B; border-radius: 12px; background: #FFFBEB; scroll-margin-top: 90px; }
.pol-risk::before { content: ""; position: absolute; top: 24px; left: 22px; width: 26px; height: 26px; background: #B45309;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z M12 10v5 M12 18h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z M12 10v5 M12 18h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.pol-risk-title { font: 700 19px/1.35 var(--bf-font-head); color: #92400E; }
.pol-panel[lang="bn"] .pol-risk-title { font-family: var(--bf-font-bn); line-height: 1.55; }
.pol-risk-intro, .pol-risk-footer { margin-top: 10px; color: #78350F; font-size: 15px; font-weight: 600; line-height: 1.65; }
.pol-risk-footer { padding-top: 10px; border-top: 1px dashed #FCD34D; font-weight: 500; }
.pol-risk-list { margin-top: 10px; }
.pol-risk-list > li { color: #78350F; }
.pol-risk-list strong { color: #7C2D12; }
.pol-risk .pol-num > li::before { background: #FDE68A; color: #92400E; }

@media (max-width: 767px) {
  .pol-hero { padding: 28px 0 24px; }
  .pol-h1 { font-size: 24px; }
  .lang-toggle { align-self: stretch; }
  .lang-btn { flex: 1 1 0; min-height: 44px; }
  .pol-summary { padding: 20px 18px; }
  .pol-lead { font-size: 15.5px; }
  .pol-card { padding: 18px 16px; }
  .pol-h { font-size: 18px; }
  .pol-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .pol-risk { padding: 18px 16px; border-left-width: 4px; }
  .pol-risk::before { top: 20px; left: 16px; width: 22px; height: 22px; }
  .pol-risk-title { padding-left: 32px; font-size: 17px; }
}
