.legal-page { margin: 0; color: #292b33; background: #fcf3f1; font: 17px/1.65 Arial, sans-serif; }
.legal-page header, .legal-page main, .legal-page footer { max-width: 900px; margin: auto; padding: 24px; }
.legal-page h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.legal-page p { overflow-wrap: anywhere; }
.legal-page a { color: #353f61; }
.legal-page button { font: inherit; }
.legal-consent { display: flex !important; gap: 10px; align-items: flex-start; }
.legal-consent input[type="checkbox"] { appearance: auto !important; position: static !important; opacity: 1 !important; width: 19px !important; height: 19px !important; min-width: 19px; margin: 2px 0; padding: 0 !important; }
.legal-consent a { color: inherit; text-decoration: underline; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; font: 14px/1.5 Arial, sans-serif; }
.legal-links a, .legal-links button { color: inherit; text-decoration: underline; }
.legal-links button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.cookie-choice { position: fixed; z-index: 10000; inset: auto 16px 16px; max-width: 640px; padding: 20px; background: #fff; color: #292b33; box-shadow: 0 3px 24px #0003; border-radius: 8px; font: 15px/1.5 Arial, sans-serif; }
.cookie-choice[hidden] { display: none; }
.cookie-choice p { margin: 0 0 12px; }
.cookie-choice a { color: #353f61; text-decoration: underline; }
.cookie-choice button { margin: 4px 8px 0 0; padding: 10px 14px; border: 1px solid #42444d; border-radius: 4px; background: #42444d; color: #fff; cursor: pointer; font: inherit; }
.cookie-choice button[data-cookie-reject] { background: #fff; color: #292b33; }

.cookie-choice { padding-right: 42px; }
.cookie-choice button.cookie-close { position: absolute; top: 4px; right: 4px; margin: 0; padding: 6px 10px; border: 0; background: transparent; color: #292b33; font-size: 24px; line-height: 1; }

/* Keep legal content within its own row and form column. */
.footer > .legal-links { grid-column: 1 / -1; min-width: 0; width: 100%; }
.legal-links a, .legal-links button { overflow-wrap: anywhere; }
.legal-consent { min-width: 0; max-width: 100%; }
.legal-consent > span { min-width: 0; overflow-wrap: anywhere; }
@media screen and (max-width: 1200px) {
  .footer { flex-wrap: wrap; }
  .footer > .legal-links { flex: 0 0 100%; }
}

.legal-consent { font-size: 14px; line-height: 20px; }
@media screen and (min-width: 1201px) {
  .form { grid-template-columns: minmax(0, 39.17%) minmax(0, 1fr); row-gap: 24px; }
  .form > .form__info { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .form__inputs { grid-column: 2; grid-row: 1; min-width: 0; }
  .form__footer { grid-column: 2; grid-row: 2; align-items: flex-start; gap: 18px; }
  .form__content > [role="status"] { grid-column: 2; }
}

/* Keep all fields and the close control reachable in a short viewport. */
.modal-wrapper.short { overflow-y: auto; overscroll-behavior: contain; }
.form__content > [role="status"] { overflow-wrap: anywhere; }
