/* Shared legal pages and cookie preferences. */
.privacy a { text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 16px 0; color: #b8253d; font-size: 13px; line-height: 1.6; }
.button-submit:disabled { cursor: wait; opacity: .7; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #b9c3cf;
  font-size: 12px;
  line-height: 1.6;
}
.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.footer-legal a:hover, .footer-legal button:hover { color: white; text-decoration: underline; }
.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 16px;
  padding: 12px 20px;
  background: white;
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.legal-main { padding-top: 48px; padding-bottom: 88px; }
.legal-back { display: inline-block; margin-bottom: 36px; font-size: 14px; font-weight: 650; }
.legal-back:hover { text-decoration: underline; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-layout-simple { grid-template-columns: minmax(0, 850px); justify-content: center; }
.legal-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; padding-right: 12px; }
.legal-toc summary { font-size: 17px; font-weight: 750; cursor: pointer; }
.legal-toc ol { padding: 0; margin: 20px 0 0; list-style: none; }
.legal-toc li { margin-bottom: 12px; }
.legal-toc a { color: #52606f; font-size: 12px; line-height: 1.5; display: block; }
.legal-toc a:hover { color: var(--coral-dark); text-decoration: underline; }
.legal-content { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.legal-content h1 { margin: 8px 0 28px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -1px; }
.legal-content h2 { margin: 48px 0 20px; font-size: 24px; line-height: 1.4; letter-spacing: -.4px; }
.legal-content h3 { margin: 28px 0 12px; font-size: 18px; line-height: 1.5; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul, .legal-content ol { padding-left: 26px; margin: 16px 0 24px; }
.legal-content li { margin: 8px 0; padding-left: 4px; }
.legal-content a { color: #b8253d; text-decoration: underline; text-underline-offset: 3px; }
.legal-content sup { font-size: 11px; line-height: 0; }
.legal-content sup a { margin-left: 3px; }
.legal-table-wrap { margin: 24px 0 40px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; background: #fff; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 18px; vertical-align: top; text-align: left; }
.legal-content th { width: 25%; background: #edece7; }
.legal-content td p:last-child, .legal-content th p:last-child { margin-bottom: 0; }
.legal-footnotes { margin-top: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.cookie-banner {
  position: fixed;
  z-index: 100;
  bottom: 20px;
  left: 20px;
  width: min(540px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 60px rgba(12, 29, 50, .22);
}
.cookie-banner h2, .cookie-dialog h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.3; letter-spacing: -.4px; }
.cookie-banner p, .cookie-dialog > p { margin: 0 0 18px; color: #52606f; font-size: 14px; line-height: 1.65; }
.cookie-banner a, .cookie-dialog a { color: #b8253d; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-actions button, .cookie-settings-link {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #c6cdd2;
  border-radius: 6px;
  background: #f6f4ef;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.cookie-actions button { flex: 1 1 180px; }
.cookie-actions button:hover { background: #e9e6df; }
.cookie-settings-link { margin-top: 12px; width: 100%; background: white; }
.cookie-actions .cookie-save { border-color: var(--ink); background: var(--ink); color: white; }
.cookie-actions .cookie-save:hover { background: var(--ink-2); }
.cookie-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 80px rgba(12, 29, 50, .3);
}
.cookie-dialog::backdrop { background: rgba(12, 29, 50, .5); }
.cookie-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cookie-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 25px; cursor: pointer; }
.cookie-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-category label, .cookie-category strong { font-size: 15px; font-weight: 750; }
.cookie-category input { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; margin: 4px 0; accent-color: var(--ink); cursor: pointer; }
.cookie-category p { margin: 6px 0 0; font-size: 13px; color: #52606f; line-height: 1.6; }
.cookie-category span { grid-column: 2; grid-row: 1 / span 2; max-width: 84px; font-size: 12px; line-height: 1.5; color: #52606f; }
.cookie-storage-note { font-size: 12px; line-height: 1.6; color: #52606f; }
.cookie-status { min-height: 1.6em; margin: 12px 0 0; font-size: 12px; color: #52606f; }
:is(.cookie-banner, .cookie-dialog, .footer-legal, .legal-page) :focus-visible { outline: 3px solid #b8253d; outline-offset: 4px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-toc { position: static; max-height: none; padding-right: 0; }
  .legal-toc nav { max-height: 260px; overflow: auto; }
}
@media (max-width: 560px) {
  .legal-main { padding-top: 28px; padding-bottom: 56px; }
  .legal-content { font-size: 15px; }
  .legal-content h2 { font-size: 21px; }
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content th, .legal-content td { display: block; width: 100%; }
  .legal-content th, .legal-content td { padding: 16px; }
  .legal-content td { border-top: 0; }
  .legal-content tr + tr th { border-top: 0; }
  .cookie-banner { bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 20px; }
  .cookie-dialog { padding: 20px; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  .legal-page .site-header, .skip-link, .legal-toc, .legal-back, .footer, .cookie-banner, .cookie-dialog { display: none !important; }
  .legal-main { width: 100%; padding: 0; }
  .legal-layout { display: block; }
  .legal-content { font-size: 11pt; line-height: 1.5; }
  .legal-content h2, .legal-content h3 { break-after: avoid; }
  .legal-content tr { break-inside: avoid; }
  .legal-footnotes { margin-top: 16px; font-size: 10pt; }
  .legal-footnotes li { margin: 2px 0; }
}
