.header-tools { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.language-form { display: flex; align-items: center; }
.language-form select { color: white; background: transparent; border: 1px solid #8091a6; border-radius: 6px; padding: .35rem .5rem; font: inherit; font-size: .9rem; max-width: 100%; }
.language-form option { color: #26394d; background: white; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; }
.legal-links a, .legal-links button, .text-action { font: inherit; color: var(--text-muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.legal-links a:hover, .legal-links button:hover, .text-action:hover { color: var(--primary); text-decoration: underline; }
.site-dialog { margin: auto; padding: 0; border: 1px solid #d0d7e2; border-radius: 8px; width: min(820px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); color: #33465b; background: white; box-shadow: 0 16px 60px #0a1a2f33; }
.site-dialog[open] { display: flex; flex-direction: column; }
.site-dialog::backdrop { background: #0a1a2f80; }
.site-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid #e1e7ec; flex: 0 0 auto; }
.site-dialog-header h2 { color: var(--text-main); font-size: 1.25rem; line-height: 1.35; font-weight: 600; }
.site-dialog-tools { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.site-dialog .language-form select, .cookie-notice .language-form select { color: #33465b; background: white; border-color: #d0d7e2; }
.dialog-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; background: none; color: #33465b; border: 0; border-radius: 4px; cursor: pointer; }
.dialog-close:hover { background: #e2e8f0; }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-close i { font: normal 1.5rem/1 sans-serif; }
.site-dialog-body { overflow: auto; overscroll-behavior: contain; padding: 1.5rem; min-height: 0; }
.site-dialog-body p, .legal-page p { margin-bottom: 1rem; }
.site-dialog-body h3, .legal-page h3 { font-size: 1.1rem; color: var(--text-main); margin: 1.5rem 0 .5rem; }
.site-dialog-body a, .legal-page a { color: var(--primary); overflow-wrap: anywhere; }
.legal-owner { margin-bottom: 1rem; }
.legal-owner dt { font-weight: 600; margin-top: .5rem; }
.legal-owner dd { overflow-wrap: anywhere; }
.legal-table-scroll { overflow-x: auto; }
.legal-cookie-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal-cookie-table th, .legal-cookie-table td { padding: .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid #d0d7e2; overflow-wrap: anywhere; }
.legal-cookie-table th { background: var(--bg-soft); }
.cookie-notice { position: fixed; z-index: 200; bottom: max(1rem, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 2rem)); max-height: calc(70dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 1rem; padding: 1.5rem 3.75rem 1.5rem 1.5rem; border: 1px solid #d0d7e2; border-radius: 8px; color: #33465b; background: white; box-shadow: 0 8px 36px #0a1a2f26; }
.cookie-notice[hidden] { display: none; }
.cookie-notice-mark { color: var(--text-main); padding-top: .15rem; }
.cookie-notice-mark svg { display: block; width: 28px; height: 28px; }
.cookie-notice-content { min-width: 0; }
.cookie-notice h2 { color: var(--text-main); font-size: 1.15rem; line-height: 1.35; font-weight: 600; margin-bottom: .5rem; }
.cookie-notice p { font-size: .95rem; line-height: 1.6; }
.cookie-notice .legal-links { justify-content: flex-start; font-size: .85rem; }
.cookie-notice .legal-links a { color: var(--primary); }
.cookie-notice-actions { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; padding-top: .1rem; }
.cookie-notice-actions .btn { border: 0; border-radius: 6px; padding: .65rem 1rem; font-size: .95rem; }
.cookie-notice-actions .language-form select { width: 100%; }
.cookie-notice-close { position: absolute; top: .5rem; right: .5rem; }
.cookie-language-reset { margin-top: .5rem; font-size: .8rem; }
.contact-privacy { font-size: .85rem; margin-bottom: 1rem; }
.section.legal-page { margin-inline: auto; max-width: 1000px; color: #33465b; }
.legal-page h1 { color: var(--text-main); margin-bottom: 1.5rem; }
body.site-dialog-open { overflow: hidden; }
@media (max-width: 900px) {
    .header-tools { width: 100%; flex-wrap: wrap; gap: .75rem; }
    .header-tools .main-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
    .header-tools .main-nav a { margin: 0; }
}
@media (max-width: 600px) {
    .site-dialog-header { padding: .75rem 1rem; }
    .site-dialog-body { padding: 1rem; }
    .site-dialog-header { flex-wrap: wrap; gap: .5rem; }
    .site-dialog-header h2 { font-size: 1.15rem; flex: 1 1 140px; }
    .site-dialog-tools { margin-left: auto; gap: .5rem; }
    .cookie-notice { grid-template-columns: 24px minmax(0, 1fr); padding: 1rem; gap: .75rem; }
    .cookie-notice-mark svg { width: 24px; height: 24px; }
    .cookie-notice h2 { padding-right: 1.75rem; }
    .cookie-notice-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .cookie-notice-actions .btn { margin-left: auto; }
    .main-footer .legal-links { gap: .75rem 1rem; }
    .main-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
}
