/* ethics-principles — Figma 243:760: one text block of numbered principles, a
   heading ("כותרות משנה", Regular 40) over a paragraph ("טקסט רץ", Light 32),
   an empty 32px line between principles. The 1375px column ≈ .container.

   Figma trims only the OUTER edges of the text block (cap height at the top,
   the baseline of the trailing empty line at the bottom); inside, every line
   keeps its full line box. So the global text-box trim is switched off here
   and re-applied to the first heading's top and the last paragraph's bottom. */

.ethics-principles {
	font-size: var(--fs-400); /* 1lh below = one empty line of body text */
	padding-block: var(--space-page-block) calc(var(--space-page-block) + 1lh); /* + Figma's trailing empty line */
}

.ethics-principles__list {
	display: flex;
	flex-direction: column;
	gap: 1lh; /* the empty line between principles */
}

.ethics-principles__title,
.ethics-principles__text {
	text-box: normal;
}

.ethics-principles__title {
	font-size: var(--fs-600);
	font-weight: var(--fw-regular);
}

.ethics-principles__item:first-child .ethics-principles__title {
	text-box: trim-start cap alphabetic;
}

.ethics-principles__item:last-child .ethics-principles__text {
	text-box: trim-end cap alphabetic;
}
