/*
 * Live-UAE looks for the section type `section_termsandconditions_terms`
 * (deriv.com/ae/terms-and-conditions: grey link cards, one per Terms and
 * Conditions item; on live a Webflow CMS list, here a static snapshot).
 * Scoped to UAE recipe slots whose key ends in `:terms-list`, so ROW and EU
 * never match. Built on the design-system FeatureCards (card-secondary).
 *
 * Measured on live 2026-11-07 (EN and AR, 1440/1024/768/390): padding 112/112
 * (768-991: 80/80; <=767: 56/48); 1280px content (1328 with 24px gutters,
 * 16px on phones); no heading; equal columns, 3 from 992, 2 at 768-991, 1 on
 * phones, 16px gaps, a short last row keeps the column width. Cards #f6f7f8,
 * radius 24, padding 32, min-height 288 (768-991: 312; phones: 224), 8px
 * between title and copy, link at the bottom (24px clear above). Title 28/36
 * (<=991: 20/28) weight 800, -0.16px; copy 16/24; link 16/24 weight 600.
 */
[data-raven-slot$=":terms-list"].raven-section-pad {
  --raven-pad-top: 56px;
  --raven-pad-bottom: 48px;
}
[data-raven-slot$=":terms-list"] .fci-container {
  max-width: 1328px;
  gap: 0;
}
[data-raven-slot$=":terms-list"] .fci-header {
  display: none;
}
[data-raven-slot$=":terms-list"] .fci-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
/* globals' `.fci-grid--3` halves a trailing pair (span 3 of 6); live keeps thirds. */
[data-raven-slot$=":terms-list"] .fci-grid.fci-grid > :nth-child(n) {
  grid-column: auto;
}
/* globals paints `.fci-section .card-secondary` white at (0,4,0); beat it. */
[data-raven-slot$=":terms-list"] .fci-section .card-secondary.card-secondary.card-secondary {
  background-color: #f6f7f8;
}
[data-raven-slot$=":terms-list"] .card-secondary {
  border-radius: 24px;
  padding: 32px;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-raven-slot$=":terms-list"] .card-secondary .cs-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: -0.16px;
}
[data-raven-slot$=":terms-list"] .card-secondary .cs-description {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
[data-raven-slot$=":terms-list"] .card-secondary > a {
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  line-height: 24px;
  align-self: flex-start;
}
[data-raven-slot$=":terms-list"] .card-secondary .cs-description {
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  [data-raven-slot$=":terms-list"].raven-section-pad {
    --raven-pad-top: 80px;
    --raven-pad-bottom: 80px;
  }
  [data-raven-slot$=":terms-list"] .fci-container {
    padding-inline: 24px;
  }
  [data-raven-slot$=":terms-list"] .fci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-raven-slot$=":terms-list"] .card-secondary {
    min-height: 312px;
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":terms-list"].raven-section-pad {
    --raven-pad-top: 112px;
    --raven-pad-bottom: 112px;
  }
  [data-raven-slot$=":terms-list"] .fci-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-raven-slot$=":terms-list"] .card-secondary {
    min-height: 288px;
  }
  [data-raven-slot$=":terms-list"] .card-secondary .cs-title {
    font-size: 28px;
    line-height: 36px;
  }
}
/* The arrow sits on the text's centre line (it was 8px down, ~4px low). */
[data-raven-slot$=":terms-list"] .card-secondary > a {
  align-items: center;
}
[data-raven-slot$=":terms-list"] .card-secondary > a .chevron {
  align-self: center;
  margin-block: 0;
}
[dir="rtl"] [data-raven-slot$=":terms-list"] .card-secondary > a .chevron {
  display: none;
}
