/* Legal pages and long text (design legal-pages v1). Text Editor widgets with the class hdf-legal; contents = PRO Table of Contents.
   One URL holds the Croatian and the English text: html[lang=en] shows the English block, anything else the Croatian one. */
html:not([lang='en']) body .legal-en, html:not([lang='en']) body .toc-en, html[lang='en'] body .legal-hr, html[lang='en'] body .toc-hr { display: none; }

html body .hdf-legal-grid.wrap, html body .hdf-legal-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0 80px; align-items: start; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
html body .hdf-pg .hdf-legal-grid.wrap { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
html body .hdf-legal-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
html body .hdf-legal-toc { position: sticky; top: 112px; min-width: 0; }
html body .hdf-legal-text { min-width: 0; }
@media (max-width: 1239px) {
	html body .hdf-legal-grid, html body .hdf-legal-grid.wrap, html body .hdf-pg .hdf-legal-grid.wrap { grid-template-columns: minmax(0, 1fr); }
	html body .hdf-legal-toc { position: static; margin-bottom: 40px; }
}

/* contents */
html body .hdf-toc .elementor-toc__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; border-top: 1px solid #142940; }
html body .hdf-toc .elementor-toc__header-title { margin: 0; font: 500 12px/1 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #5a6b7d; }
html body .hdf-toc .elementor-toc__toggle-button { min-width: 44px; min-height: 44px; color: #142940; background: transparent; border: 0; }
html body .hdf-toc .elementor-toc__body { padding: 16px 0 0; }
html body .hdf-toc .elementor-toc__list-wrapper { margin: 0; padding: 0; list-style: none; }
html body .hdf-toc .elementor-toc__list-item { margin: 0; padding: 0; }
html body .hdf-toc .elementor-toc__list-item a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #dce6ee; font: 500 14px/1.4 'Manrope', system-ui, sans-serif; color: #3d4f63; text-decoration: none; }
html body .hdf-toc .elementor-toc__list-item a:hover { color: #142940; border-left-color: #142940; }
html body .hdf-toc .elementor-toc__list-item-text-wrapper, html body .hdf-toc .elementor-toc__list-item-text { color: inherit; font: inherit; text-decoration: none; }
html body .hdf-toc a[aria-current='true'], html body .hdf-toc a[aria-current='true'] .elementor-toc__list-item-text { color: #142940; font-weight: 700; }
html body .hdf-toc a[aria-current='true'] { border-left-color: #c6353b; }
@media (max-width: 1239px) {
	html body .elementor-widget.hdf-toc.hdf-toc { border: 1px solid #dce6ee; background: #f5f8fb; border-radius: 2px; }
	html body .hdf-toc .elementor-toc__header { position: relative; min-height: 52px; padding: 0 8px 0 20px; border-top: 0; }
	/* the whole header row is the button: the real toggle (role=button) is stretched over it, so one tap anywhere on the row opens or closes the list;
	   the label and the chevron sit on one centred line */
	html body .hdf-toc .elementor-toc__toggle-button { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; min-width: 0; min-height: 52px; padding: 0 20px 0 0; box-sizing: border-box; align-items: center; justify-content: flex-end; cursor: pointer; z-index: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
	html body .hdf-toc .elementor-toc__toggle-button svg { width: 14px; height: 14px; display: block; flex: none; }
	html body .hdf-toc .elementor-toc__toggle-button:focus-visible { outline: 3px solid #142940; outline-offset: -3px; }
	html body .hdf-toc .elementor-toc__body { padding: 4px 20px 16px; border-top: 1px solid #dce6ee; }
	html body .hdf-toc .elementor-toc__list-wrapper { columns: 2; column-gap: 32px; }
	html body .hdf-toc .elementor-toc__list-item { break-inside: avoid; }
	html body .hdf-toc .elementor-toc__list-item a { min-height: 44px; display: flex; align-items: center; padding: 6px 0 6px 12px; }
}
@media (max-width: 767px) { html body .hdf-toc .elementor-toc__list-wrapper { columns: 1; } }

/* running text */
html body .hdf-legal { --lb: 17px; --llh: 1.75; --lh2t: 72px; --lh2b: 24px; --lh3t: 40px; --lblock: 32px; font: 400 var(--lb)/var(--llh) 'Manrope', system-ui, sans-serif; color: #3d4f63; }
@media (max-width: 1239px) { html body .hdf-legal { --lh2t: 56px; } }
@media (max-width: 639px) { html body .hdf-legal { --lb: 16px; --llh: 1.7; --lh2t: 48px; --lh2b: 20px; --lh3t: 32px; --lblock: 28px; } }
html body .hdf-legal > * { max-width: 720px; }
html body .hdf-pg .elementor-widget.hdf-legal > * + * { margin-top: 20px; margin-bottom: 0; }
html body .hdf-pg .elementor-widget.hdf-legal > :first-child { margin-top: 0; }
html body .hdf-pg .elementor-widget.hdf-legal p, html body .hdf-pg .elementor-widget.hdf-legal ul, html body .hdf-pg .elementor-widget.hdf-legal ol { margin-bottom: 0; text-wrap: pretty; overflow-wrap: break-word; }
html body .hdf-pg .elementor-widget.hdf-legal h2 { margin: var(--lh2t) 0 var(--lh2b); padding-top: 20px; border-top: 1px solid #142940; font: 400 clamp(28px, 2.6vw, 36px)/1.15 'Newsreader', Georgia, serif; letter-spacing: -.3px; color: #142940; scroll-margin-top: 112px; }
html body .hdf-pg .elementor-widget.hdf-legal > h2:first-child { margin-top: 0; }
html body .hdf-pg .elementor-widget.hdf-legal h3 { margin: var(--lh3t) 0 12px; font: 700 18px/1.35 'Manrope', system-ui, sans-serif; color: #142940; }
html body .hdf-pg .elementor-widget.hdf-legal h2 + *, html body .hdf-pg .elementor-widget.hdf-legal h3 + * { margin-top: 0; }
html body .hdf-legal strong { font-weight: 700; color: #2a3b4f; }
html body .hdf-legal ul, html body .hdf-legal ol { padding-left: 26px; }
html body .hdf-legal li + li { margin-top: 10px; }
html body .hdf-legal ul { list-style: none; }
html body .hdf-legal ul li { position: relative; }
html body .hdf-legal ul li::before { content: ""; position: absolute; left: -20px; top: calc(var(--llh) * .5em - 3px); width: 6px; height: 6px; background: #c6353b; }
html body .hdf-legal ol li::marker { font: 500 .8em 'IBM Plex Mono', monospace; color: #5a6b7d; }
html body .hdf-legal code { font: 500 .82em/1.4 'IBM Plex Mono', monospace; color: #142940; background: #edf2f6; padding: 2px 6px; border-radius: 2px; overflow-wrap: anywhere; }
html body .hdf-legal a { color: #285d98; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
html body .hdf-legal a:hover { color: #142940; text-decoration-thickness: 2px; }
html body .hdf-legal a:focus-visible { outline: 3px solid #142940; outline-offset: 2px; border-radius: 2px; }
html body .hdf-legal a[href^='mailto:'], html body .hdf-legal a[href^='tel:'] { font-weight: 600; white-space: nowrap; }
html body .hdf-legal a[href^='mailto:']::before, html body .hdf-legal a[href^='tel:']::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
html body .hdf-legal a[href^='mailto:'] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
html body .hdf-legal a[href^='tel:'] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
html body .hdf-legal a[href^='/'] { white-space: nowrap; }
html body .hdf-legal .meta { color: #5a6b7d; }
html body .hdf-legal .meta-k { font: 500 11.5px/1.4 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #5a6b7d; margin-right: 6px; }

/* callout (a quote in the source text) */
html body .hdf-legal .callout { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; padding: 20px 24px; background: #f5f8fb; border-left: 3px solid #285d98; font: 400 16px/1.65 'Manrope', system-ui, sans-serif; color: #2a3b4f; margin-top: var(--lblock); margin-bottom: var(--lblock); }
html body .hdf-legal .callout::before { content: "i"; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: #285d98; color: #fff; font: italic 700 12px/1 'Newsreader', Georgia, serif; }
html body .hdf-legal .callout p { margin: 0; }
html body .hdf-legal .callout + * { margin-top: 0; }
@media (max-width: 639px) { html body .hdf-legal .callout { padding: 16px 18px; gap: 12px; font-size: 15.5px; } }

/* imprint: card with a definition list */
html body .hdf-legal .card { border: 1px solid #dce6ee; border-top: 3px solid #142940; background: #fff; padding: 28px 32px 12px; margin-bottom: var(--lblock); }
html body .hdf-legal .org { margin: 0; font: 400 clamp(30px, 3vw, 40px)/1.15 'Newsreader', Georgia, serif; color: #142940; }
html body .hdf-legal .org-sub { margin: 8px 0 0; font: 500 11.5px/1.3 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #5a6b7d; }
html body .hdf-legal .facts { margin: 24px 0 0; border-top: 1px solid #dce6ee; }
html body .hdf-legal .facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid #edf2f6; }
html body .hdf-legal .facts > div:last-child { border-bottom: 0; }
html body .hdf-legal .facts dt { padding-top: 4px; font: 500 11.5px/1.5 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #5a6b7d; }
html body .hdf-legal .facts dd { margin: 0; font: 400 17px/1.55 'Manrope', system-ui, sans-serif; color: #2a3b4f; }
html body .hdf-legal .facts dd.id { font: 500 16px/1.6 'IBM Plex Mono', monospace; letter-spacing: .04em; color: #142940; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { html body .hdf-legal .card { padding: 22px 20px 8px; } html body .hdf-legal .org { font-size: 26px; } html body .hdf-legal .facts > div { grid-template-columns: minmax(0, 1fr); padding: 12px 0; } html body .hdf-legal .facts dt { padding-top: 0; } }

/* tables: real table from 1024 px, cards below; without JavaScript they scroll sideways inside their frame with a hint */
html body .hdf-legal .tbl { margin: var(--lblock) 0; max-width: none; }
html body .hdf-legal > .tbl { max-width: none; }
html body .hdf-legal .tbl table { width: 100%; border-collapse: collapse; font: 400 15px/1.55 'Manrope', system-ui, sans-serif; color: #3d4f63; font-variant-numeric: tabular-nums; }
html body .hdf-legal .tbl th { text-align: left; vertical-align: bottom; padding: 12px 16px; background: #f5f8fb; border-bottom: 1px solid #142940; font: 500 11.5px/1.4 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #5a6b7d; }
html body .hdf-legal .tbl td { vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #dce6ee; overflow-wrap: break-word; hyphens: manual; }
html body .hdf-legal .tbl tbody tr:nth-child(even) td { background: #fbfaf7; }
html body .hdf-legal .tbl td:first-child { color: #142940; font-weight: 600; }
html body .hdf-legal .tbl td.r, html body .hdf-legal .tbl th.r { text-align: right; }
html body .hdf-legal .tbl code { font: 500 12.5px/1.5 'IBM Plex Mono', monospace; }
html body .hdf-legal .tbl.scroll { overflow-x: auto; border: 1px solid #dce6ee; }
html body .hdf-legal .tbl.scroll table { min-width: 1040px; }
html body .hdf-legal .scroll-hint { display: flex; align-items: center; gap: 8px; margin: var(--lblock) 0 8px; font: 500 11.5px/1.4 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: #5a6b7d; }
html body .hdf-legal .scroll-hint + .tbl { margin-top: 0; }
html.hdf-js body .hdf-legal .scroll-hint { display: none; }
html.hdf-js body .hdf-legal .tbl.scroll { overflow: visible; border: 0; }
html.hdf-js body .hdf-legal .tbl.scroll table { min-width: 0; }
@media (max-width: 1023px) {
	html.hdf-js body .hdf-legal .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	html.hdf-js body .hdf-legal .tbl table, html.hdf-js body .hdf-legal .tbl tbody, html.hdf-js body .hdf-legal .tbl tr, html.hdf-js body .hdf-legal .tbl td { display: block; width: 100%; }
	html.hdf-js body .hdf-legal .tbl tr { border: 1px solid #dce6ee; border-top: 2px solid #142940; border-radius: 2px; padding: 0 20px; background: #fff; }
	html.hdf-js body .hdf-legal .tbl tr + tr { margin-top: 12px; }
	html.hdf-js body .hdf-legal .tbl tbody tr:nth-child(even) td { background: none; }
	html.hdf-js body .hdf-legal .tbl td { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf2f6; }
	html.hdf-js body .hdf-legal .tbl td:last-child { border-bottom: 0; }
	html.hdf-js body .hdf-legal .tbl td::before { content: attr(data-label); padding-top: 3px; font: 500 11px/1.45 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #5a6b7d; }
	html.hdf-js body .hdf-legal .tbl td:first-child { display: block; padding: 16px 0 12px; font-size: 16px; border-bottom: 1px solid #dce6ee; }
	html.hdf-js body .hdf-legal .tbl td:first-child::before { display: none; }
	html.hdf-js body .hdf-legal .tbl td.r { text-align: left; }
}
@media (max-width: 639px) {
	html.hdf-js body .hdf-legal .tbl tr { padding: 0 16px; }
	html.hdf-js body .hdf-legal .tbl td { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
	html.hdf-js body .hdf-legal .tbl td::before { padding-top: 0; }
}

/* contents on desktop: no box, no toggle (the box and the toggle belong to tablet and phone) */
@media (min-width: 1240px) {
	html body .elementor-widget.hdf-toc.hdf-toc { border: 0; background: none; box-shadow: none; }
	html body .hdf-toc .elementor-toc__toggle-button { display: none; }
	html body .hdf-toc .elementor-toc__body { display: block; }
	html body .hdf-toc .elementor-toc__header { padding-left: 0; min-height: 0; }
}

/* the parent theme's table borders and stripes must not show through */
html body .hdf-pg .hdf-legal .tbl th, html body .hdf-pg .hdf-legal .tbl td { border-top: 0; border-left: 0; border-right: 0; }
html body .hdf-pg .hdf-legal .tbl tbody tr:nth-child(odd) > td { background-color: transparent; }
html body .hdf-pg .hdf-legal .tbl tbody tr:nth-child(even) > td { background-color: #fbfaf7; }
@media (max-width: 1023px) { html.hdf-js body .hdf-pg .hdf-legal .tbl tbody tr:nth-child(even) > td { background-color: transparent; } }

/* contents: the headings already carry their numbers, so no list marker; one 2px rule at a fixed x on every entry, hanging indent for wrapped entries */
html body .hdf-toc .elementor-toc__list-wrapper, html body .hdf-toc .elementor-toc__list-wrapper ol, html body .hdf-toc .elementor-toc__list-item { list-style: none; padding-left: 0; margin-left: 0; }
html body .hdf-toc .elementor-toc__list-item::marker { content: none; font-size: 0; }
html body .hdf-toc .elementor-toc__list-item-text-wrapper::before, html body .hdf-toc .elementor-toc__list-item::before { content: none; display: none; }
html body .hdf-toc .elementor-toc__list-item a { display: block; box-sizing: border-box; padding: 7px 0 7px 14px; border-left: 2px solid #dce6ee; }
html body .hdf-toc .elementor-toc__list-item-text { display: block; }
html body .hdf-toc a.elementor-toc__list-item-text.toc-hang { position: relative; padding-left: calc(14px + 2.4em); }
html body .hdf-toc a.elementor-toc__list-item-text.toc-hang .toc-num { position: absolute; left: 14px; font: 500 12px/1.4 'IBM Plex Mono', monospace; color: #5a6b7d; font-variant-numeric: tabular-nums; }
html body .hdf-toc .elementor-toc__list-item a:hover { border-left-color: #142940; }
html body .hdf-toc .elementor-toc__list-item a[aria-current='true'] { border-left-color: #c6353b; }
html body .hdf-toc .elementor-toc__header { border-bottom: 0; }
@media (max-width: 1239px) { html body .hdf-toc .elementor-toc__list-item a { padding: 6px 0 6px 12px; } html body .hdf-toc a.elementor-toc__list-item-text.toc-hang { padding-left: calc(12px + 2.4em); } html body .hdf-toc a.elementor-toc__list-item-text.toc-hang .toc-num { left: 12px; } }

/* never show the widget's own (English) empty-state text */
html body .hdf-toc .elementor-toc__no-headings { display: none; }

/* page head band: lead and the effective-date row */
html body .hdf-pg .page-head-in .elementor-widget.hdf-legal-lead { width: min(100%, 62ch); margin: 28px 0 0; font: 400 clamp(18px, 1.6vw, 22px)/1.55 'Manrope', system-ui, sans-serif; color: #2a3b4f; }
html body .hdf-pg .elementor-widget.hdf-legal-lead p { margin: 0; font: inherit; text-wrap: pretty; }
html body .hdf-pg .page-head-in .elementor-widget.hdf-legal-meta { width: min(100%, 960px); margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #142940; }
html body .hdf-pg .elementor-widget.hdf-legal-meta p { margin: 0; font: 400 15px/1.5 'Manrope', system-ui, sans-serif; color: #5a6b7d; }
html body .hdf-pg .elementor-widget.hdf-legal-meta .meta-k { font: 500 11.5px/1.4 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #5a6b7d; margin-right: 8px; }
/* breadcrumb link in blue (design) */
html body .hdf-pg .hdf-crumbs .elementor-heading-title a { color: #285d98; text-decoration: none; }
html body .hdf-pg .elementor-widget.hdf-legal > .elementor-menu-anchor:first-child + h2, html body .hdf-pg .elementor-widget.hdf-legal > h2:first-child { margin-top: 0; }

html body .hdf-pg .hdf-legal .tbl td code { overflow-wrap: anywhere; }
html body .hdf-pg .hdf-legal .tbl td { white-space: normal; }
