/* Easybooker legal page and takeaway modal - 2026-10-30.6
   Component-scoped selectors keep the rest of the public website unchanged. */
.eb-policy-page,
.eb-legal,
.tw-legal-dialog {
    --eb-legal-ink: #193a3d;
    --eb-legal-muted: #5c7076;
    --eb-legal-border: #dce9e7;
    --eb-legal-accent: #078b76;
    --eb-legal-accent-dark: #087260;
    --eb-legal-soft: #edf7f3;
    --eb-legal-white: #ffffff;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    color: var(--eb-legal-ink);
}

/* Entire /privacy page: a coherent, independent layout. */
.eb-policy-page {
    padding-top: clamp(105px, 11vw, 158px);
    padding-bottom: clamp(58px, 8vw, 102px);
    background: linear-gradient(180deg, #f6faf9 0%, #fbfdfc 36%, #ffffff 100%);
}
.eb-policy-page .eb-policy-shell { box-sizing: border-box; width: 100%; max-width: 1188px; margin: 0 auto; padding: 0 24px; }
.eb-policy-page .eb-policy-hero { margin: 0 0 22px; max-width: 950px; }
.eb-policy-page .eb-policy-hero h1 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    letter-spacing: -1.2px;
    font-weight: 780;
    margin: 12px 0 14px;
    color: var(--eb-legal-ink);
}
.eb-policy-page .eb-policy-hero > p {
    max-width: 810px;
    margin: 0;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.76;
    color: var(--eb-legal-muted);
}
.eb-policy-page .eb-policy-hero > .eb-policy-meta {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12px;
    color: #78908b;
}
.eb-policy-page .eb-policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    padding: 13px;
    background: #ffffff;
    border: 1px solid var(--eb-legal-border);
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(15, 55, 47, .04);
}
.eb-policy-page .eb-policy-nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dce9e7;
    border-radius: 10px;
    padding: 9px 15px;
    min-height: 42px;
    color: #436961;
    background: #f9fcfa;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.eb-policy-page .eb-policy-nav a:hover {
    background: #e8f5ef;
    border-color: #b6ddd0;
    color: var(--eb-legal-accent-dark);
}
.eb-policy-page .eb-policy-content { display: grid; gap: 24px; }

/* Same card, heading, article and label styling throughout all legal sections. */
.eb-legal { text-align: left; line-height: 1.8; }
.eb-legal-card {
    padding: clamp(22px, 4.1vw, 47px);
    border: 1px solid var(--eb-legal-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 13px 36px rgba(21, 69, 57, .045);
    scroll-margin-top: 118px;
    min-width: 0;
}
.eb-policy-page .eb-policy-block { margin: 0; }
.eb-legal .eb-legal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 23px;
}
.eb-legal-kicker,
.eb-legal .eb-legal-kicker {
    display: block;
    color: var(--eb-legal-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.45px;
    text-transform: uppercase;
    line-height: 1.5;
}
.eb-legal .eb-legal-kicker { margin-bottom: 9px; }
.eb-legal h2.eb-legal-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -.65px;
    line-height: 1.22;
    color: var(--eb-legal-ink);
}
.eb-legal .eb-legal-intro {
    max-width: 780px;
    margin: 11px 0 0;
    color: var(--eb-legal-muted);
    font-size: 15px;
    line-height: 1.7;
}
.eb-legal .eb-legal-version {
    display: inline-block;
    flex: none;
    white-space: nowrap;
    padding: 6px 11px;
    border: 1px solid #d8e7e2;
    border-radius: 999px;
    background: #f7fbf9;
    color: #59766c;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}
.eb-legal .eb-legal-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
}
.eb-legal .eb-legal-languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    min-height: 42px;
    border: 1px solid var(--eb-legal-border);
    border-radius: 10px;
    background: #fff;
    color: #4b7068;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.eb-legal .eb-legal-languages a[aria-current="page"] {
    color: #fff;
    background: var(--eb-legal-accent-dark);
    border-color: var(--eb-legal-accent-dark);
}
.eb-legal .eb-legal-languages a:not([aria-current="page"]):hover { background: var(--eb-legal-soft); }
.eb-legal .eb-legal-article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    margin: 0;
    border-top: 1px solid var(--eb-legal-border);
    background: transparent;
    min-width: 0;
}
.eb-legal .eb-legal-article:last-child { padding-bottom: 0; }
.eb-legal .eb-legal-number {
    display: grid;
    place-items: center;
    height: 34px;
    width: 34px;
    border-radius: 10px;
    background: #e7f5ee;
    color: #16826d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.eb-legal .eb-legal-copy { min-width: 0; }
.eb-legal .eb-legal-article h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 750;
    color: var(--eb-legal-ink);
    letter-spacing: -.2px;
    line-height: 1.45;
}
.eb-legal .eb-legal-article p {
    margin: 0;
    font-size: 14.5px;
    color: var(--eb-legal-muted);
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.eb-legal .eb-legal-article p + p { margin-top: 12px; }
.eb-legal .eb-legal-article a {
    color: var(--eb-legal-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}
.eb-policy-page a:focus-visible,
.eb-legal a:focus-visible,
.tw-legal-dialog button:focus-visible,
.tw-legal-dialog a:focus-visible {
    outline: 3px solid #6dc5ac;
    outline-offset: 3px;
}

/* Contact at the bottom of the page. */
.eb-policy-page .eb-policy-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px clamp(22px, 4vw, 42px);
    border-radius: 19px;
    border: 1px solid var(--eb-legal-border);
    background: linear-gradient(135deg, #edf8f3 0%, #f9fcfa 70%);
}
.eb-policy-page .eb-policy-contact h2 {
    color: var(--eb-legal-ink);
    margin: 6px 0 5px;
    font-size: 20px;
    line-height: 1.35;
}
.eb-policy-page .eb-policy-contact p { margin: 0; color: var(--eb-legal-muted); font-size: 13px; line-height: 1.8; }
.eb-policy-page .eb-policy-contact-links { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.eb-policy-page .eb-policy-contact-links a { color: var(--eb-legal-accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.eb-policy-page .eb-policy-contact-links a:hover { text-decoration: underline; }

/* Compatible with existing takeaway native <dialog> markup. */
.tw-legal-dialog {
    width: min(880px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 1px solid var(--eb-legal-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 25px 90px rgba(0, 0, 0, .22);
    color: var(--eb-legal-ink);
    overflow: hidden;
    overscroll-behavior: contain;
}
.tw-legal-dialog[open] { display: flex; flex-direction: column; }
.tw-legal-dialog::backdrop { background: rgba(20, 35, 31, .54); }
.tw-legal-dialog .tw-legal-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: none;
    gap: 18px;
    padding: 24px 30px 20px;
    border-bottom: 1px solid var(--eb-legal-border);
    background: #f5faf8;
}
.tw-legal-dialog h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.45px; color: var(--eb-legal-ink); margin: 12px 0 7px; font-weight: 750; }
.tw-legal-dialog .tw-legal-dialog-logo { display: block; width: 155px; max-width: 100%; height: auto; }
.tw-legal-dialog .tw-legal-dialog-version { font-size: 12px; color: #658077; }
.tw-legal-dialog .tw-legal-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce8e5;
    border-radius: 11px;
    background: #fff;
    color: #527269;
    font: inherit;
    font-size: 26px;
    cursor: pointer;
}
.tw-legal-dialog .tw-legal-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 30px 28px; }
.tw-legal-dialog .eb-legal-article:first-child { border-top: 0; }
.tw-legal-dialog .tw-legal-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 14px;
    padding: 16px 30px;
    background: #fff;
    border-top: 1px solid var(--eb-legal-border);
}
.tw-legal-dialog .tw-legal-dialog-foot a { color: var(--eb-legal-accent-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.tw-legal-dialog .tw-legal-dialog-done {
    min-height: 44px;
    padding: 11px 24px;
    border: 0;
    border-radius: 10px;
    background: #0c9f87;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}
.tw-legal-dialog .tw-legal-dialog-done:hover { background: var(--eb-legal-accent-dark); }
.tw-legal-dialog .tw-legal-dialog-body:focus-visible { outline: 2px solid #72cdb7; outline-offset: -4px; }
.tw-legal-modal-open { overflow: hidden; }
.tw-legal-dialog--embedded { margin: 16px auto; }

@media (max-width: 760px) {
    .eb-policy-page .eb-policy-contact { flex-direction: column; align-items: flex-start; }
    .eb-policy-page .eb-policy-contact-links { align-items: flex-start; }
    .eb-policy-page .eb-policy-nav { gap: 8px; padding: 11px; }
    .eb-policy-page .eb-policy-nav a { flex: 1 1 auto; }
}
@media (max-width: 600px) {
    .eb-policy-page { padding-top: 96px; padding-bottom: 52px; }
    .eb-policy-page .eb-policy-shell { padding-left: 16px; padding-right: 16px; }
    .eb-policy-page .eb-policy-hero h1 { letter-spacing: -.7px; }
    .eb-policy-page .eb-policy-nav { border-radius: 13px; margin-bottom: 14px; }
    .eb-policy-page .eb-policy-nav a { font-size: 12px; padding: 9px 11px; }
    .eb-policy-page .eb-policy-content { gap: 16px; }
    .eb-legal-card { padding: 23px 19px; border-radius: 17px; scroll-margin-top: 92px; }
    .eb-legal .eb-legal-heading { display: block; margin-bottom: 19px; }
    .eb-legal h2.eb-legal-title { font-size: 25px; }
    .eb-legal .eb-legal-intro { font-size: 14px; }
    .eb-legal .eb-legal-version { margin-top: 13px; }
    .eb-legal .eb-legal-languages { gap: 6px; margin-bottom: 19px; }
    .eb-legal .eb-legal-languages a { font-size: 12px; min-height: 39px; padding: 8px 10px; }
    .eb-legal .eb-legal-article { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
    .eb-legal .eb-legal-number { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
    .eb-legal .eb-legal-article h3 { font-size: 16px; margin-bottom: 8px; }
    .eb-legal .eb-legal-article p { font-size: 13.7px; line-height: 1.8; }
    .eb-policy-page .eb-policy-contact { padding: 23px 19px; border-radius: 16px; }
    .tw-legal-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); border-radius: 17px; }
    .tw-legal-dialog .tw-legal-dialog-head { padding: 19px 18px 17px; }
    .tw-legal-dialog h2 { font-size: 20px; }
    .tw-legal-dialog .tw-legal-dialog-body { padding: 5px 18px 22px; }
    .tw-legal-dialog .tw-legal-dialog-foot { padding: 13px 18px; align-items: flex-start; }
    .tw-legal-dialog .tw-legal-dialog-foot a { max-width: 190px; line-height: 1.5; }
    .tw-legal-dialog .tw-legal-dialog-done { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .eb-policy-page .eb-policy-nav a { transition: none; }
}
@media print {
    .eb-policy-page { background: #fff; padding: 0; }
    .eb-policy-page .eb-policy-nav { display: none; }
    .eb-legal-card { box-shadow: none; break-inside: auto; }
    .eb-legal .eb-legal-article { break-inside: avoid; }
}

/* Three global legal tabs and one shared NL/FR language switch. */
.eb-policy-page .eb-policy-hero-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.eb-policy-page .eb-policy-global-languages{display:inline-flex;align-items:center;gap:5px;padding:4px;border:1px solid var(--eb-legal-border);background:#fff;border-radius:11px}
.eb-policy-page .eb-policy-global-languages a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 14px;color:#476a62;border-radius:8px;font-size:13px;font-weight:750;text-decoration:none;transition:background .15s ease,color .15s ease}
.eb-policy-page .eb-policy-global-languages a[aria-current="page"]{background:var(--eb-legal-accent-dark);color:#fff}
.eb-policy-page .eb-policy-global-languages a:not([aria-current="page"]):hover{background:var(--eb-legal-soft)}
.eb-policy-page .eb-policy-nav{scroll-margin-top:120px;gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px}
.eb-policy-page .eb-policy-nav [role="tab"]{width:100%;padding:12px 15px;text-align:center;min-width:0}
.eb-policy-page .eb-policy-nav [role="tab"][aria-selected="true"]{color:#fff;border-color:var(--eb-legal-accent-dark);background:var(--eb-legal-accent-dark);box-shadow:0 3px 12px #0a64451a}
.eb-policy-page .eb-policy-nav [role="tab"][aria-selected="true"]:hover{color:#fff;background:var(--eb-legal-accent-dark)}
.eb-policy-page .eb-policy-panel{display:grid;gap:24px;min-width:0}
.eb-policy-page .eb-policy-panel[hidden]{display:none!important}
.eb-policy-page .eb-policy-contact{margin-top:24px}
.eb-policy-page .eb-policy-panel section[id]{scroll-margin-top:118px}
@media(max-width:600px){
  .eb-policy-page .eb-policy-hero-top{align-items:flex-start}
  .eb-policy-page .eb-policy-nav{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:4px}
  .eb-policy-page .eb-policy-nav [role="tab"]{font-size:11.5px;line-height:1.35;padding:11px 5px;min-height:46px;overflow-wrap:anywhere}
  .eb-policy-page .eb-policy-global-languages a{min-height:35px;padding:6px 11px;font-size:12px}
  .eb-policy-page .eb-policy-panel{gap:16px}
  .eb-policy-page .eb-policy-contact{margin-top:16px}
}
@media print{.eb-policy-page .eb-policy-global-languages{display:none}.eb-policy-page .eb-policy-panel[hidden]{display:grid!important}}
