/*
 * The Cybersecurity page (card 28). Figma V12: desktop 3596:18597, mobile 3596:33402.
 * Four sections: header, Certification (navy), How we protect you, Security contact.
 * Mobile under 768 px and desktop from 1280 px as drawn; tablet (768 to 1279) composed for
 * this card, each choice noted below. Every value from tokens.css.
 */

/* --- 01 Header: 104 px from the top at 390, 200 at 1512 ------------------------------------- */

.cyber-header {
  padding: var(--space-24) 0 var(--space-64);
  background: var(--color-white);
}

/* Card 52 (4004:5845 / 4004:5891): the text, then the photo 32 below it, full width (350 x 273
   on a phone); text left and photo right from 1024 px. */
.cyber-header__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.cyber-header__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cyber-header__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 564 / 440;
  object-fit: cover;
  border-radius: 20px;
}

@media (min-width: 1024px) {
  .cyber-header__row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-40);
  }

  .cyber-header__body,
  .cyber-header__photo {
    flex: 1 1 0;
    min-width: 0;
  }
}

.cyber-header__title {
  color: var(--color-petrol-900);
}

.cyber-header__subtitle {
  max-width: 720px;
  color: var(--color-slate-500);
}

/* --- 02 Certification ----------------------------------------------------------------------- */

.certification {
  padding-block: var(--space-64);
  background: var(--color-navy-900);
  color: var(--color-white);
}

.certification__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.certification__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.certification__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.certification__subtitle,
.certification__text {
  color: var(--color-slate-300);
}

/* Under 1280 px the link is a 48 px tall tap area (Figma "tap area 44"). */
.certification__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-24);
}

.certification__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--button-height);
  color: var(--color-teal-400);
  font-weight: var(--weight-semibold);
}

@media (hover: hover) {
  .certification__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.certificate {
  margin: 0;
  padding: var(--space-32);
  border-radius: var(--space-16);
  background: var(--color-navy-800);
}

/* Mobile: the label above its value; a line between rows. */
.certificate__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-on-navy-rule);
}

.certificate__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.certificate__row:last-child {
  padding-bottom: 0;
}

.certificate__label {
  flex: none;
  color: var(--color-slate-300);
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
}

.certificate__value {
  margin: 0;
  min-width: 0;
  color: var(--color-white);
  font-weight: var(--weight-semibold);
}

/* --- 03 How we protect you ------------------------------------------------------------------ */

.protection {
  padding-block: var(--space-64);
  background: var(--color-white);
}

.protection__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.protection__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.protection-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-navy-900-8);
}

.protection-row__title {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  color: var(--color-petrol-900);
}

.protection-row__title .icon {
  color: var(--color-teal-400);
}

.protection-row__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  color: var(--color-slate-500);
}

/* --- 04 Security contact -------------------------------------------------------------------- */

.security-contact {
  padding-bottom: var(--space-64);
  background: var(--color-white);
}

.security-contact__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.security-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-24);
  border-radius: var(--space-16);
  background: var(--color-grey-100);
}

.security-card__title {
  color: var(--color-petrol-900);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
}

/* The whole line is the link, as drawn; at least 44 px tall under 1280 px. Card 40: the
   sentence and the address side by side when they fit, else the address on its own line under
   the sentence, at its start; the address (with its full stop) never breaks. */
.security-card__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--color-slate-500);
}

.security-card__end {
  white-space: nowrap;
}

.security-card__email {
  color: var(--color-petrol-900);
  text-decoration: underline;
}

.security-contact__source {
  color: var(--color-slate-500);
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
}

/*
 * --- Tablet (768 to 1279): chosen for this card ----------------------------------------------
 * Header: the desktop copy, 144 px from the top. Certification: copy above the card (the two
 * columns would leave the card 300 px wide), the card's rows as on desktop (label column 140).
 * How we protect you: each row stacked as on mobile, at the tablet type sizes (a 384 px title
 * column would leave the text under 300 px at 768). Security contact: the desktop card.
 */

@media (min-width: 768px) {
  .cyber-header {
    padding: var(--space-64) 0 var(--space-80);
  }

  .certification,
  .protection {
    padding-block: var(--space-80);
  }

  .certification__text {
    max-width: 792px; /* the desktop text column of How we protect you */
  }

  .certificate__row {
    flex-direction: row;
    gap: var(--space-24);
  }

  .certificate__label {
    width: 140px;
  }

  .certificate__value {
    flex: 1;
  }

  .security-contact {
    padding-bottom: var(--space-80);
  }

  .security-card {
    padding: var(--space-40);
  }
}

/* --- Desktop: as drawn at 1512 -------------------------------------------------------------- */

@media (min-width: 1280px) {
  /* Card 52: the row (text column 564, photo 564 x 440, 72 apart) 160 from the page's top as
     drawn (96 of header room + 64), 120 below: the section ends at 720 (104 above before). */
  .cyber-header {
    padding: 64px 0 120px;
  }

  .cyber-header__row {
    gap: 72px;
  }

  .certification,
  .protection {
    padding-block: 120px;
  }

  .certification__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 126px;
  }

  .certification__copy {
    flex: none;
    width: 588px;
  }

  .certificate {
    flex: none;
    width: 486px;
  }

  .certification__link {
    min-height: 0;
  }

  .protection__body {
    gap: 56px;
  }

  .protection-row {
    display: grid;
    grid-template-columns: 384px 1fr;
    gap: var(--space-24);
    padding-top: var(--space-32);
  }

  .security-contact {
    padding-bottom: 120px;
  }

  .security-card__link {
    display: block;
    min-height: 0;
  }
}
