/* =========================================================
   ContainerBooking — legal footer block (every page) and the
   legal pages (terms / privacy / cookies, NL + EN).
   Uses the site's colour tokens (--paper, --ink, --line …),
   which theme.css switches for dark mode.
   ========================================================= */

/* ---------- Company details + legal links, at the bottom of every page ---------- */
.cb-legal {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 20px;
  font-size: .78rem; line-height: 1.55; color: var(--ink-soft, #566360);
}
.cb-legal__company { margin: 0; max-width: 72ch; }
.cb-legal__company a, .cb-legal__links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cb-legal__company a:hover, .cb-legal__links a:hover { color: var(--ink, #16211f); }
.cb-legal__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
/* a value still to be filled in by the owner: impossible to miss while reviewing */
.cb-legal__todo, .legal-todo {
  background: #fff1b8; color: #5c4400; border-radius: 4px; padding: 0 4px; font-weight: 600;
}
html[data-theme="dark"] .cb-legal__todo, html[data-theme="dark"] .legal-todo { background: #4a3b05; color: #ffe08a; }

/* ---------- Legal pages ---------- */
.legal-page {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif; line-height: 1.65;
}
.legal-page * { box-sizing: border-box; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding-inline: 20px; }
.legal-head {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; }
.legal-brand img { width: 26px; height: 26px; }
html[data-theme="dark"] .legal-brand img { filter: brightness(0) invert(.93); }
.legal-lang { display: flex; gap: 6px; font-size: .85rem; margin-left: auto; }
.legal-lang > a, .legal-lang > span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); }
.legal-lang > span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal-lang .short { display: none; }
@media (max-width: 520px) {
  .legal-wrap { padding-inline: 16px; }
  .legal-lang .full { display: none; }
  .legal-lang .short { display: inline; }
  .legal-brand { font-size: .95rem; gap: 8px; }
}
.legal-main { padding-block: 34px 48px; display: grid; gap: 22px; }
.legal-main h1 { font-family: "Space Grotesk", system-ui, sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.legal-main h2 { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.3rem; margin: 18px 0 0; text-wrap: balance; }
.legal-main h3 { font-size: 1.02rem; margin: 6px 0 0; }
.legal-main p, .legal-main li { max-width: 72ch; margin: 0; }
.legal-main ul, .legal-main ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal-main a { color: var(--accent-d, #c8451f); }
.legal-meta { color: var(--ink-soft); font-size: .9rem; }
.legal-draft {
  border: 1px solid #e0b100; background: #fff7d6; color: #4d3a00;
  border-radius: 10px; padding: 12px 16px; font-size: .95rem;
}
html[data-theme="dark"] .legal-draft { background: #2e2605; border-color: #8a6d00; color: #ffe08a; }
.legal-draft strong { text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.legal-main table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal-main th, .legal-main td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.legal-main th { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.legal-main tr:last-child td { border-bottom: 0; }
.legal-main code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .86em; background: rgba(var(--ink-rgb, 22,33,31), .06); padding: 1px 5px; border-radius: 4px; }
.legal-foot { border-top: 1px solid var(--line); }

/* ---------- Cookie choice (consent.js) ---------- */
.cb-consent {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000;
  width: min(720px, calc(100% - 24px));
  background: var(--paper-2, #fffdf9); color: var(--ink, #16211f);
  border: 1px solid var(--line, #e5e0d4); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 42, 46, .22);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif; font-size: .92rem; line-height: 1.55;
}
.cb-consent[hidden] { display: none; }
.cb-consent__inner { padding: 18px 20px; display: grid; gap: 12px; }
.cb-consent__title { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.1rem; line-height: 1.2; }
.cb-consent__text { margin: 0; color: var(--ink-soft, #566360); }
.cb-consent__text a { color: var(--accent-d, #c8451f); }
.cb-consent__panel { display: grid; gap: 4px; border-top: 1px solid var(--line, #e5e0d4); padding-top: 10px; }
.cb-consent__panel[hidden] { display: none; }
.cb-consent__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; cursor: pointer; }
.cb-consent__label { display: grid; gap: 2px; }
.cb-consent__label span { color: var(--ink-soft, #566360); font-size: .84rem; }
.cb-consent__always { font-size: .8rem; color: var(--ink-soft, #566360); white-space: nowrap; }
.cb-consent__switch { width: 20px; height: 20px; flex: none; accent-color: var(--accent, #e2552b); cursor: pointer; }
.cb-consent__switch:disabled { cursor: not-allowed; opacity: .5; }
.cb-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Accept and Reject: the same size and weight, on purpose */
.cb-consent__btn {
  flex: 1 1 140px; max-width: 220px; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  font: 600 .95rem "Space Grotesk", system-ui, sans-serif;
  border: 1.5px solid var(--ink, #16211f); background: var(--ink, #16211f); color: var(--paper, #f8f6f0);
}
.cb-consent__btn[hidden] { display: none; }
.cb-consent__btn:hover { opacity: .9; }
.cb-consent__link { background: none; border: 0; padding: 6px 4px; cursor: pointer; font: 500 .9rem "IBM Plex Sans", system-ui, sans-serif; color: var(--ink-soft, #566360); text-decoration: underline; }
.cb-consent :focus-visible { outline: 2px solid var(--accent, #e2552b); outline-offset: 2px; }
@media (max-width: 520px) {
  .cb-consent__inner { padding: 16px; }
  .cb-consent__btn { max-width: none; }
}
