/* Shared privacy notice and editorial legal panels. */
.legal-is-open { overflow: hidden; }
.legal-dialog {
  --legal-line: #dce6f5;
  padding: 0;
  width: min(940px, calc(100% - 48px));
  max-width: none;
  max-height: min(830px, calc(100svh - 64px));
  color: #153257;
  background: #fff;
  border: 1px solid #d6e3f8;
  border-radius: 28px;
  box-shadow: 0 40px 120px #0b24444a, 0 4px 20px #0b24441a;
  overflow: hidden;
}
.legal-dialog[open] { display: flex; flex-direction: column; animation: legal-enter 240ms ease-out both; }
.legal-dialog::backdrop { background: #10274480; backdrop-filter: blur(10px); }
.legal-header { position: relative; flex-shrink: 0; padding: 32px 44px 27px; background: radial-gradient(ellipse at 95% 0%, #dceaff 0, transparent 68%), #f7faff; border-bottom: 1px solid var(--legal-line); }
.legal-dialog .legal-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 50px 15px 0; color: #4a6590; font-size: .625rem; font-weight: 650; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.legal-eyebrow strong { color: #1868ef; letter-spacing: .15em; }
.legal-eyebrow > span { width: 1px; height: 11px; background: #b9cce9; }
.legal-dialog h2 { margin: 0 38px 8px 0; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.22; font-weight: 600; letter-spacing: -.055em; outline: none; }
.legal-dialog .legal-description { margin: 0; max-width: 620px; color: #577092; font-size: .875rem; line-height: 1.6; }
.legal-dialog .dialog-close { position: absolute; right: 23px; top: 23px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d3e0f5; border-radius: 50%; background: #ffffffd9; color: #3d608c; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.legal-dialog .dialog-close:hover { background: #fff; color: #1260dc; transform: rotate(90deg); }
.legal-body { display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: 0; flex: 1; }
.legal-nav { padding: 26px 14px; background: #f8faff; border-right: 1px solid var(--legal-line); }
.legal-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 12px; min-height: 46px; border: 1px solid transparent; border-radius: 11px; margin: 0 0 7px; color: #577092; background: transparent; font: inherit; font-size: .75rem; line-height: 1.5; text-align: left; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.legal-nav button > span { font-size: .625rem; color: #6b84a6; font-variant-numeric: tabular-nums; }
.legal-nav button:hover { background: #edf3ff; color: #185ec1; }
.legal-nav button[aria-current] { color: #135ac9; background: #fff; border-color: #d1dff8; box-shadow: 0 4px 12px #15345a05; font-weight: 650; }
.legal-nav button[aria-current] > span { color: #176bff; }
.legal-content { padding: 28px 32px 34px; min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3d3ed transparent; }
.legal-highlight { display: flex; gap: 12px; padding: 18px 19px; margin-bottom: 27px; border: 1px solid #dce8fc; border-radius: 14px; background: linear-gradient(120deg, #f3f7ff, #fbfdff); }
.legal-status-dot { margin-top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #216df3; box-shadow: 0 0 0 4px #216df310; flex-shrink: 0; }
.legal-highlight strong { display: block; color: #234d85; font-size: .875rem; line-height: 1.65; font-weight: 600; }
.legal-dialog .legal-highlight p { margin: 5px 0 0; font-size: .8125rem; line-height: 1.75; color: #536d91; }
.legal-section { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding: 0 0 25px; margin: 0 0 25px; border-bottom: 1px solid #e6edf7; }
.legal-section:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.legal-section-number { padding-top: 3px; color: #286fe0; font-size: .6875rem; line-height: 1.8; font-variant-numeric: tabular-nums; }
.legal-dialog .legal-section h3 { margin: 0 0 10px; color: #18395f; font-size: .9375rem; line-height: 1.6; font-weight: 650; letter-spacing: -.02em; }
.legal-dialog .legal-section p { margin: 0 0 12px; color: #577092; font-size: .8125rem; line-height: 1.85; }
.legal-dialog .legal-section p:last-child { margin-bottom: 0; }
.legal-content a { color: #2161bb; text-decoration-color: #b5cce9; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-content a:hover { color: #064bbb; text-decoration-color: currentColor; }
.legal-facts { margin: 0; }
.legal-facts > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f9; font-size: .8125rem; line-height: 1.65; }
.legal-facts > div:first-child { padding-top: 0; }
.legal-facts > div:last-child { padding-bottom: 0; border: 0; }
.legal-facts dt { color: #6a7e98; }
.legal-facts dd { margin: 0; color: #274465; font-weight: 550; font-variant-numeric: tabular-nums; }
.legal-contact-line { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin: 0 0 19px; font-size: .8125rem; }
.legal-contact-line > a { font-size: 1rem; font-weight: 550; }
.legal-contact-line > span { color: #6a7e98; font-size: .75rem; }
.legal-contact-line > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal-addresses > div { padding: 15px; border: 1px solid #e1e9f6; border-radius: 12px; }
.legal-dialog .legal-addresses h4 { margin: 0 0 3px; font-size: .75rem; font-weight: 650; color: #2d4b73; }
.legal-dialog .legal-addresses p { font-size: .625rem; line-height: 1.6; margin: 0 0 12px; }
.legal-addresses address { font-style: normal; font-size: .75rem; line-height: 1.8; color: #536d91; }
.legal-source-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: .8125rem; }
.legal-source-links a { display: inline-flex; align-items: center; gap: 14px; }
.legal-inline-link { border: 0; background: transparent; padding: 4px 0; color: #2161bb; font: inherit; font-size: .8125rem; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #b5cce9; text-underline-offset: 4px; }
.legal-inline-link > span { display: inline-block; margin-left: 6px; }
.legal-storage-note { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px 18px; margin-top: 18px; padding: 16px 18px; background: #f7f9fd; border-radius: 12px; font-size: .75rem; line-height: 1.7; }
.legal-storage-note > span { color: #6a7e98; }
.legal-storage-note strong { font-weight: 550; color: #31527c; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 17px 28px 17px 32px; border-top: 1px solid var(--legal-line); background: #fff; }
.legal-footer > a { display: inline-flex; align-items: center; gap: 8px; color: #5b7394; font-size: .75rem; text-decoration: none; }
.legal-footer > a:hover { color: #165dda; }
.legal-primary-button, .legal-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 21px; border-radius: 10px; font: inherit; font-size: .8125rem; font-weight: 550; line-height: 1.5; cursor: pointer; transition: background .18s, box-shadow .18s, transform .18s; }
.legal-primary-button { background: #175be2; color: #fff; border: 1px solid #175be2; box-shadow: 0 3px 9px #1451c520, inset 0 1px 0 #ffffff26; }
.legal-primary-button:hover { background: #104ac5; box-shadow: 0 5px 14px #1451c52e; transform: translateY(-1px); }
.legal-secondary-button { background: #fff; color: #315681; border: 1px solid #ceddf3; }
.legal-secondary-button:hover { background: #f3f7ff; border-color: #a8c5ed; }
.legal-dialog :is(button, a):focus-visible, .cookie-notice :is(button, a):focus-visible { outline: 2px solid #176bff; outline-offset: 4px; }
.cookie-notice { position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 440px; max-width: calc(100% - 32px); padding: 25px 27px 23px; border: 1px solid #ccdef9; border-radius: 22px; background: linear-gradient(125deg, #fff 50%, #f1f6ff); color: #16365e; box-shadow: 0 16px 60px #163e7126, 0 2px 6px #163e7108; animation: legal-enter 300ms ease-out both; }
.cookie-notice-top { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; color: #2268d6; font-size: .625rem; font-weight: 650; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; }
.cookie-notice-top svg { width: 19px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cookie-notice h2 { margin: 0 0 9px; font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.045em; }
.cookie-notice > p { margin: 0; color: #526b8c; font-size: .8125rem; line-height: 1.8; }
.cookie-notice .cookie-preference-note { margin-top: 8px; color: #6a7e98; font-size: .6875rem; line-height: 1.7; }
.cookie-notice-actions { display: flex; gap: 10px; margin-top: 20px; }
.cookie-notice-actions > button { flex: 1; padding-inline: 12px; }
.cookie-notice { max-height: calc(100svh - 32px); overflow-y: auto; }
@keyframes legal-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 700px) {
  .legal-dialog { width: calc(100% - 24px); max-height: calc(100svh - 28px); border-radius: 22px; }
  .legal-header { padding: 25px 24px 21px; }
  .legal-dialog .legal-eyebrow { font-size: .5625rem; gap: 8px; max-width: 220px; margin-bottom: 13px; }
  .legal-dialog h2 { font-size: 1.65rem; }
  .legal-dialog .legal-description { font-size: .8125rem; }
  .legal-dialog .dialog-close { top: 17px; right: 15px; width: 40px; height: 40px; }
  .legal-body { display: flex; flex-direction: column; }
  .legal-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; flex-shrink: 0; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--legal-line); }
  .legal-nav button { justify-content: center; margin: 0; min-height: 42px; padding: 8px 5px; font-size: .6875rem; }
  .legal-nav button > span { display: none; }
  .legal-content { padding: 21px 22px 27px; }
  .legal-highlight { padding: 14px; margin-bottom: 23px; }
  .legal-highlight strong { font-size: .8125rem; }
  .legal-dialog .legal-highlight p { font-size: .75rem; }
  .legal-section { grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding-bottom: 22px; margin-bottom: 22px; }
  .legal-dialog .legal-section h3 { font-size: .875rem; }
  .legal-facts > div { grid-template-columns: 1fr; gap: 3px; font-size: .8125rem; }
  .legal-facts dt { font-size: .6875rem; }
  .legal-addresses { grid-template-columns: 1fr; }
  .legal-storage-note { grid-template-columns: 1fr; gap: 3px; padding: 13px; }
  .legal-storage-note strong + span { margin-top: 8px; }
  .legal-footer { padding: 14px 19px; }
  .legal-footer > a { font-size: .6875rem; }
  .legal-footer .legal-primary-button { min-width: 94px; }
  .cookie-notice { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 21px 22px 19px; border-radius: 20px; }
  .cookie-notice h2 { font-size: 1.25rem; }
  .cookie-notice-actions { margin-top: 16px; }
}
@media(max-width: 360px) { .legal-header { padding-inline: 20px; } .legal-dialog h2 { font-size: 1.45rem; } .legal-content { padding-inline: 17px; } .legal-footer > a { font-size: .625rem; } }
@media(max-height: 520px) {
  .legal-dialog { max-height: calc(100svh - 20px); }
  .legal-header { padding: 18px 25px; }
  .legal-dialog .legal-eyebrow, .legal-dialog .legal-description { display: none; }
  .legal-dialog h2 { font-size: 1.5rem; margin-bottom: 0; }
  .legal-dialog .dialog-close { top: 10px; right: 15px; }
  .legal-footer { padding-block: 10px; }
}
@media(prefers-reduced-motion: reduce) { .legal-dialog[open], .cookie-notice { animation: none; } .legal-dialog *, .cookie-notice * { transition: none; } }
@media print { .cookie-notice { display: none !important; } }
