/**
 * CY Colombia - Policy Widget Styles
 * High-readability editorial layout, structured certification pillars, and animated badge shield.
 */

.cy-policy-section {
  background-color: var(--cy-policy-bg, #f6f5f1);
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.cy-policy-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 32px;
  box-sizing: border-box;
}

.cy-policy-grid {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 72px;
  display: grid;
  box-sizing: border-box;
}

/* Left Column: Sticky Image with Floating Shield */
.cy-policy__image-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 116px;
  position: relative;
}

.cy-policy__image-wrap img {
  border-radius: var(--radius, 24px);
  object-fit: cover;
  width: 100%;
  height: 720px;
  display: block;
  box-shadow: 0 20px 50px rgba(21, 21, 21, 0.1);
  transition: transform 0.6s ease;
}

.cy-policy__image-wrap:hover img {
  transform: scale(1.015);
}

/* Floating Shield Badge with SVG or Custom Icon */
.cy-policy-shield {
  border: 8px solid var(--paper, #f6f5f1);
  background: var(--red, #d00618);
  color: #ffffff;
  border-radius: 50%;
  place-items: center;
  width: 104px;
  height: 104px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 40px;
  right: -30px;
  box-shadow: 0 10px 30px rgba(208, 6, 24, 0.3);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cy-policy-shield svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
  display: block;
}

.cy-policy-shield i {
  font-size: 38px;
  line-height: 1;
}

.cy-policy-shield:hover {
  transform: scale(1.08);
}

/* Right Column: Copy */
.cy-policy__copy {
  box-sizing: border-box;
}

.cy-policy__label {
  color: inherit;
  font-family: var(--font-geist-mono, monospace);
  letter-spacing: 0.13em;
  opacity: 0.68;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(21, 21, 21, 0.2);
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  font-size: 11px;
  display: flex;
  width: 100%;
}

.cy-policy__label-number {
  opacity: 0.75;
}

.cy-policy__title {
  letter-spacing: -0.06em;
  margin: 44px 0 28px;
  font-size: clamp(44px, 4.8vw, 68px);
  font-weight: 560;
  line-height: 1;
  color: var(--ink, #151515);
}

/* Editorial Lead Paragraph */
.cy-policy__lead {
  font-size: 19px;
  line-height: 1.8;
  color: #1e1e1e;
  margin: 0 0 32px;
  font-weight: 420;
}

/* 4 Structured Pillars Grid for Enhanced Readability */
.cy-policy__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 34px 0 38px;
}

.cy-policy__pillar-card {
  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 16px;
  padding: 22px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.cy-policy__pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(21, 21, 21, 0.08);
  border-color: rgba(208, 6, 24, 0.35);
}

.cy-policy__pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cy-policy__pillar-badge {
  background: rgba(208, 6, 24, 0.09);
  color: var(--red, #d00618);
  font-family: var(--font-geist-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
}

.cy-policy__pillar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #151515);
  letter-spacing: -0.02em;
}

.cy-policy__pillar-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #5a5a58;
}

/* Closing / Regulatory Text */
.cy-policy__closing {
  border-top: 1px solid rgba(21, 21, 21, 0.12);
  padding-top: 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #484846;
}

.cy-policy__closing p {
  margin: 0;
}

/* Custom WYSIWYG Content Fallback Styling */
.cy-policy__wysiwyg {
  color: #414140;
  font-size: 17px;
  line-height: 1.77;
}

.cy-policy__wysiwyg p {
  margin: 0 0 24px;
  line-height: 1.77;
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .cy-policy-inner {
    padding: 100px 32px;
  }

  .cy-policy-grid {
    gap: 48px;
  }

  .cy-policy__image-wrap img {
    height: 640px;
  }

  .cy-policy__lead {
    font-size: 18px;
  }
}

@media (max-width: 820px) {
  .cy-policy-inner {
    padding: 84px 24px;
  }

  .cy-policy-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .cy-policy__image-wrap {
    position: relative;
    top: auto;
  }

  .cy-policy__image-wrap img {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .cy-policy-shield {
    right: 18px;
    bottom: -18px;
    width: 84px;
    height: 84px;
    border-width: 6px;
  }

  .cy-policy__title {
    margin: 36px 0 20px;
  }

  .cy-policy__pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .cy-policy-inner {
    padding: 56px 20px;
  }

  .cy-policy__image-wrap img {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 260px;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
  }

  .cy-policy-shield {
    width: 72px;
    height: 72px;
    border-width: 5px;
    right: 14px;
    bottom: -16px;
  }

  .cy-policy-shield svg {
    width: 30px;
    height: 30px;
  }

  .cy-policy__title {
    font-size: 42px;
    margin: 28px 0 18px;
  }

  .cy-policy__lead {
    font-size: 16.5px;
    line-height: 1.7;
  }

  .cy-policy__closing {
    font-size: 14.5px;
  }
}
