/* Security (security.html): after the yellow card (page.css), a black card with the world map
   (assets/security.js draws it), a cream card with six facts about the host, a lilac band of what
   protects a site, a black card with how we handle data, and the GDPR's terms in the FAQ's rows
   (faq.css). motion.js brings the sections in; this file is the resting state. */

.sc-sec {
  position: relative;
  padding: 16px 16px 0;
}

.sc-card {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 48px 32px 44px 40px;
}

.sc-card > .pg-fx {
  border-radius: inherit;
}

.sc-card--map,
.sc-card--black {
  background: #000000;
  color: #fffce1;
  box-shadow: inset 0 0 0 1px rgba(122, 119, 114, 0.45);
}

.sc-card--cream {
  background: #fffce1;
  color: #000000;
}

/* a title on the left, its text from the line of the homepage's headline (50.27%) */
.sc-split {
  position: relative;
  display: grid;
  grid-template-columns: calc(50.27% - 4px) minmax(0, 1fr);
  align-items: end;
  row-gap: 24px;
}

.sc-h2 {
  margin: 0;
  font-size: clamp(44px, 4.6vw, 96px);
  font-weight: 550;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.sc-h2 > span {
  display: block;
}

.sc-h2 > span + span {
  color: rgba(255, 252, 225, 0.5);
}

.sc-card--cream .sc-h2 > span + span {
  color: rgba(0, 0, 0, 0.45);
}

.sc-p {
  margin: 0;
  max-width: 32em;
  font-size: clamp(19px, 1.45vw, 26px);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: rgba(255, 252, 225, 0.82);
  text-wrap: pretty;
}

.sc-card--cream .sc-p {
  color: #6f6d60;
}

/* ------------------------------------------------------------ the map */

.sc-map {
  position: relative;
  margin: 48px 0 0;
  height: 0;
}

.sc-map__dots {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

.sc-pin {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
}

.sc-pin::before,
.sc-pin::after {
  content: '';
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.sc-pin::before {
  background: #c9b6f5;
  box-shadow: 0 0 0 3px #000000, 0 0 18px rgba(201, 182, 245, 0.9);
  transform: scale(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc-pin::after {
  border: 2px solid #c9b6f5;
  opacity: 0;
}

.sc-pin__label {
  position: absolute;
  left: 16px;
  top: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #c9b6f5;
  color: #252324;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-pin--west .sc-pin__label {
  left: auto;
  right: 16px;
  transform: translate(6px, -50%);
}

.sc-pin--up .sc-pin__label {
  left: 0;
  top: -16px;
  transform: translate(-50%, -100%) translateY(6px);
}

.sc-map.is-lit .sc-pin::before {
  transform: scale(1);
}

.sc-map.is-lit .sc-pin__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.sc-map.is-lit .sc-pin--up .sc-pin__label {
  transform: translate(-50%, -100%);
}

.sc-map.is-lit .sc-pin:nth-of-type(2)::before,
.sc-map.is-lit .sc-pin:nth-of-type(2) .sc-pin__label {
  transition-delay: 0.15s;
}

.sc-map.is-lit .sc-pin:nth-of-type(3)::before,
.sc-map.is-lit .sc-pin:nth-of-type(3) .sc-pin__label {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: no-preference) {
  .sc-map.is-lit .sc-pin::after {
    animation: sc-ping 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) 0.8s infinite;
  }

  .sc-map.is-lit .sc-pin:nth-of-type(2)::after {
    animation-delay: 1.6s;
  }

  .sc-map.is-lit .sc-pin:nth-of-type(3)::after {
    animation-delay: 2.4s;
  }
}

@keyframes sc-ping {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

.sc-legend {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: rgba(255, 252, 225, 0.75);
}

.sc-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-key {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sc-key--gdpr {
  background: #feeb8d;
  box-shadow: 0 0 10px rgba(254, 235, 141, 0.7);
}

.sc-key--pin {
  background: #c9b6f5;
  box-shadow: 0 0 0 2px #000000, 0 0 0 3.5px #c9b6f5;
}

/* ------------------------------------------------------------ six facts */

.sc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.sc-fact {
  padding: 26px 0 34px;
  border-top: 1px solid #d3d1bb;
}

.sc-no {
  display: block;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #6f6d60;
}

.sc-fact__title {
  margin: 18px 0 0;
  font-size: clamp(26px, 2vw, 40px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sc-fact__text {
  margin: 14px 0 0;
  max-width: 24em;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #6f6d60;
  text-wrap: pretty;
}

.sc-source {
  position: relative;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6f6d60;
}

.sc-source a {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ the band */

.sc-band {
  position: relative;
  margin: 16px 16px 0;
  padding: 36px 0 44px;
  overflow: hidden;
  border-radius: 40px;
  background: #c9b6f5;
  color: #252324;
}

.sc-band__title {
  margin: 0 0 26px;
  padding: 0 40px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(37, 35, 36, 0.7);
}

.sc-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.sc-marquee__row {
  display: flex;
  width: max-content;
}

.sc-marquee__list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(28px, 2.6vw, 52px);
  font-size: clamp(30px, 3.2vw, 64px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.sc-mark__ic {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .sc-marquee__row {
    animation: sc-marquee 46s linear infinite;
  }

  .sc-band:hover .sc-marquee__row {
    animation-play-state: paused;
  }
}

@keyframes sc-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* with reduced motion the band stands still: its marks wrap instead */
@media (prefers-reduced-motion: reduce) {
  .sc-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sc-marquee__row,
  .sc-marquee__list {
    width: auto;
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .sc-marquee__list[aria-hidden] {
    display: none;
  }
}

/* ------------------------------------------------------------ how we handle data */

.sc-rules {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.sc-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 252, 225, 0.16);
}

.sc-rule__ic {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: #feeb8d;
}

.sc-rule__title {
  margin: 0;
  font-size: clamp(24px, 1.8vw, 36px);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.sc-rule__text {
  margin: 10px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 252, 225, 0.7);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ the GDPR's terms */

.sc-terms {
  margin-top: 104px;
}

.sc-terms .pg-head {
  padding-left: 24px;
}

.sc-art {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1eed3;
  color: #6f6d60;
  font-size: 0.8em;
  white-space: nowrap;
}

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 1000px) {
  .sc-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-rules {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .sc-card {
    border-radius: 32px;
    padding: 32px 20px 30px;
  }

  .sc-band {
    border-radius: 32px;
    padding: 28px 0 32px;
  }

  .sc-band__title {
    padding: 0 20px;
  }

  .sc-map {
    margin-top: 32px;
  }

  .sc-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .sc-rules {
    margin-top: 32px;
  }

  .sc-legend {
    font-size: 15px;
  }

  .sc-terms {
    margin-top: 72px;
  }

  .sc-terms .pg-head {
    padding-left: 8px;
  }
}
