/* =========================================================
   Policy Pages – shared styles
   Figma tokens mapped directly from design spec.
   ========================================================= */

/* ── Variables (scoped) ─────────────────────────────────── */
.lc-policy {
  --p-navy: #202A4D;
  --p-navy-005: rgba(32, 42, 77, 0.05);
  --p-text: #0A0A09;
  --p-brown: #724031;
  --p-gold: #FBD784;
  --p-icon-bg: #F0F4F8;
  --p-icon-muted: #999FB2;
  --p-white: #FFFFFF;
  --p-radius: 10px;
  --p-tab-w: 280px;
}

/* ── Hero ───────────────────────────────────────────────── */
.lc-policy__hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 48px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lc-policy__hero .lc-pageHero__overlay {
  display: none;
  /* we use the gradient above instead */
}

.lc-policy__heroLabel {
  display: block;
  font-family: 'Red Rose', serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.19;
  color: #fff;
  text-transform: capitalize;
}

.lc-policy__heroLabel--light {
  display: inline-block;
  vertical-align: baseline;
  font-family: 'Encode Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.78;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, rgba(255, 255, 254, .56), #fff 41%, rgba(255, 255, 255, .81) 97%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lc-policy__heroAccent {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 4px;
  background: var(--p-gold);
  /* restore fill so the bar is visible (parent clips text) */
  -webkit-text-fill-color: initial;
}

/* Per-page hero images – override if each page gets a unique banner later
   For now all three share the same hero. Just add a rule like:
   .lc-warranty-policy .lc-policy__hero { background-image: …; } */

/* ── Body container ─────────────────────────────────────── */
.lc-policy__body {
  padding: 30px 0 50px;
}

.lc-policy__wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ── Sidebar tabs ───────────────────────────────────────── */
.lc-policy__tabs {
  flex: 0 0 var(--p-tab-w);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--p-white);
  border-radius: var(--p-radius);
  position: sticky;
  top: 110px;
}

.lc-policy__tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  min-height: 60px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.lc-policy__tab.is-active {
  background: var(--p-navy-005);
  border-left-color: var(--p-navy);
}

.lc-policy__tabIcon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--p-icon-bg);
}

.lc-policy__tabIcon svg {
  width: 24px;
  height: 24px;
  color: var(--p-icon-muted);
}

.lc-policy__tab.is-active .lc-policy__tabIcon svg {
  color: var(--p-navy);
}

.lc-policy__tabLabel {
  font-family: 'Red Rose', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 2.3125;
  text-transform: capitalize;
  color: var(--p-navy);
  opacity: 0.8;
}

.lc-policy__tab.is-active .lc-policy__tabLabel {
  color: var(--p-navy);
  opacity: 0.8;
}

/* ── Content panel ──────────────────────────────────────── */
.lc-policy__content {
  flex: 1;
  min-width: 0;
  background: var(--p-navy-005);
  border-radius: var(--p-radius);
  padding: 24px;
}

.lc-policy__title {
  margin: 0 0 4px;
  font-family: 'Red Rose', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
  text-align: center;
  color: var(--p-text);
}

/* Content area – style the hardcoded output */
.lc-policy__text {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 24px;
}

/* Section wrapper */
.lc-policy__section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Section headings (H2 inside editor content) */
.lc-policy__text h2 {
  margin: 0;
  font-family: 'Encode Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.19;
  color: var(--p-text);
}

/* Sub-headings (H3 inside editor) */
.lc-policy__text h3 {
  margin: 0;
  font-family: 'Encode Sans Expanded', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--p-text);
}

/* Paragraphs */
.lc-policy__text p {
  margin: 0;
  font-family: 'Encode Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.375;
  text-align: justify;
  color: var(--p-text);
}

/* Bold text & strong */
.lc-policy__text strong,
.lc-policy__text b {
  font-weight: 700;
}

/* Notice / important paragraphs */
.lc-policy__notice {
  font-weight: 600;
}

/* Lists */
.lc-policy__text ul,
.lc-policy__text ol {
  margin: 0;
  padding-left: 24px;
  font-family: 'Encode Sans Expanded', sans-serif;
  font-size: 16px;
  line-height: 1.375;
  color: var(--p-text);
}

.lc-policy__text li {
  margin-bottom: 8px;
}

.lc-policy__text li:last-child {
  margin-bottom: 0;
}

/* Separator */
.lc-policy__text hr {
  border: none;
  border-top: 1px solid rgba(32, 42, 77, 0.1);
  margin: 12px 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .lc-policy__wrap {
    flex-direction: column;
  }

  .lc-policy__tabs {
    flex: none;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    position: static;
    padding: 8px;
    background: var(--p-white);
    border-radius: var(--p-radius);
    -webkit-overflow-scrolling: touch;
  }

  .lc-policy__tab {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .lc-policy__tab.is-active {
    border-left-color: transparent;
    border-bottom: 3px solid var(--p-navy);
  }

  .lc-policy__tabIcon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .lc-policy__tabIcon svg {
    width: 18px;
    height: 18px;
  }

  .lc-policy__tabLabel {
    font-size: 14px;
    line-height: 1.4;
  }

  .lc-policy__content {
    padding: 20px 16px;
  }

  .lc-policy__title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .lc-policy__hero {
    min-height: 320px;
    padding-bottom: 32px;
  }

  .lc-policy__body {
    padding: 20px 0 40px;
  }

  .lc-policy__text {
    gap: 28px;
  }

  .lc-policy__text h2 {
    font-size: 18px;
  }

  .lc-policy__text p,
  .lc-policy__text ul,
  .lc-policy__text ol {
    font-size: 15px;
  }
}