/* Accessibility, legal and consent additions. Loaded after each page's own styles. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Skip link */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10001; background: #091428; color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; }
[id] { scroll-margin-top: 96px; }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #1558d6; outline-offset: 3px; }
.footer a:focus-visible, .footer button:focus-visible, .hero a:focus-visible, .page-hero a:focus-visible, .cta a:focus-visible, .cta-section a:focus-visible, .cookie-banner a:focus-visible, .cookie-banner button:focus-visible { outline-color: #ffffff; }
.nav-cta:focus-visible { outline-color: #091428; }
.hamburger:focus-visible { outline-offset: 2px; }

/* Form controls: 3:1 boundary contrast and clear focus */
.form-group input, .form-group textarea { border: 1px solid #6b7a8f; }
.form-group input:focus, .form-group textarea:focus { outline: 3px solid #1558d6; outline-offset: 1px; border-color: #1558d6; }
.form-group .field-hint { display: block; font-size: 13px; color: #556377; margin-top: 4px; }
.consent-group { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; }
.consent-group input[type="checkbox"] { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; accent-color: #1558d6; cursor: pointer; }
.consent-group label { font-size: 14px; line-height: 1.6; color: #334155; cursor: pointer; }
.consent-group a, .form-note a, .contact-privacy a { color: #1558d6; text-decoration: underline; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: #556377; text-align: center; margin-top: 12px; }
.contact-privacy { margin-top: 28px; padding: 16px 20px; background: #f8faff; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 13px; color: #556377; }
.contact-privacy i { color: #1558d6; margin-right: 8px; }

/* Footer additions */
.footer-contact p a { color: inherit; }
.footer-contact p a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 14px; }
.footer-legal a, .cookie-settings-link { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.cookie-settings-link:hover { text-decoration: underline; }

/* Legal pages */
.legal-content { padding: 70px 0 20px; background: #fff; }
.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-wrap .legal-meta { font-size: 14px; color: #556377; margin-bottom: 32px; }
.legal-wrap h2 { font-size: 24px; font-weight: 800; color: #091428; margin: 40px 0 12px; letter-spacing: -0.3px; }
.legal-wrap h3 { font-size: 18px; font-weight: 700; color: #091428; margin: 24px 0 8px; }
.legal-wrap p { font-size: 16px; color: #334155; margin-bottom: 14px; line-height: 1.8; }
.legal-wrap ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-wrap li { font-size: 16px; color: #334155; margin-bottom: 8px; line-height: 1.7; }
.legal-wrap a { color: #1558d6; text-decoration: underline; }
.legal-wrap table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 15px; }
.legal-wrap th, .legal-wrap td { text-align: left; padding: 12px 14px; border: 1px solid #cbd5e1; vertical-align: top; color: #334155; }
.legal-wrap th { background: #f0f3f9; color: #091428; }
.legal-wrap .table-scroll { overflow-x: auto; }
.legal-wrap .legal-box { background: #f8faff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 20px 24px; margin: 16px 0 24px; }
.legal-wrap .legal-box p:last-child { margin-bottom: 0; }
.legal-footer-space { height: 70px; }
.page-hero.legal-hero { min-height: 36vh; }
.page-hero.legal-hero h1 { font-size: 48px; letter-spacing: -1px; }
@media (max-width: 768px) { .page-hero.legal-hero h1 { font-size: 32px; } .legal-wrap h2 { font-size: 21px; } }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000; max-width: 920px; margin: 0 auto; background: #091428; color: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(255,255,255,0.15); }
.cookie-banner[hidden] { display: none; }
.cookie-banner .cookie-text { flex: 1 1 380px; font-size: 14px; line-height: 1.6; }
.cookie-banner .cookie-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.cookie-banner .cookie-text a { color: #fff; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner button { font: inherit; font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 8px; cursor: pointer; border: 2px solid #fff; min-height: 44px; }
.cookie-banner .cookie-accept { background: #fff; color: #091428; }
.cookie-banner .cookie-reject { background: transparent; color: #fff; }
.cookie-banner .cookie-accept:hover { background: #e2e8f0; }
.cookie-banner .cookie-reject:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 600px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; } .cookie-banner .cookie-actions { width: 100%; } .cookie-banner button { flex: 1 1 140px; } }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.contact-detail span a { color: inherit; }
.contact-detail span a:hover { text-decoration: underline; }
.alert-error span { display: block; }

/* Button used inside legal pages */
.legal-wrap .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-weight: 600; font-size: 15px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; }
.legal-wrap .btn-primary { background: #1558d6; color: #fff; }
.legal-wrap .btn-primary:hover { background: #091428; }

/* Logo has a white background: show it on a white plate in the dark footer */
.footer-brand .logo img { background: #ffffff; padding: 4px 10px; border-radius: 6px; }
