/* Legal suite, consent block, regional notice and cookie banner (2 Dec 2026). Theme variables from style.css. */

/* ---- Form consent block (views/form-consent.php) ---- */
.tp-consent { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; text-align: left; }
.tp-consent-row { display: flex !important; align-items: flex-start; gap: 10px; font-size: 0.86rem; line-height: 1.45; color: var(--text-dark); font-weight: 400 !important; cursor: pointer; margin: 0 !important; }
.tp-consent-row input[type="checkbox"] { width: 18px !important; height: 18px; min-width: 18px; margin: 2px 0 0 !important; padding: 0 !important; accent-color: var(--primary); flex: none; }
.tp-consent-row a { color: var(--primary); text-decoration: underline; }
.tp-consent-opt { color: var(--text-light); }
.tp-req { color: #b91c1c; font-style: normal; font-weight: 700; }
.tp-hint { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-light); }

/* ---- Legal pages ---- */
.legal-hero { background: var(--bg-light); border-bottom: 1px solid #dcfce7; padding: 40px 0 28px; }
.legal-hero h1 { font-family: var(--font-heading); color: var(--primary-dark); font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px; }
.legal-hero p { color: var(--text-light); max-width: 760px; }
.legal-crumbs { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.legal-crumbs a { color: var(--primary); }
.legal-lang-banner { background: #fffbeb; border: 1px solid #fcd34d; border-left: 5px solid var(--secondary); border-radius: 10px; padding: 12px 16px; margin: 22px 0 6px; font-size: 0.92rem; color: #78350f; line-height: 1.5; }
.legal-lang-banner i { margin-right: 6px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding: 10px 0 80px; }
.legal-toc { position: sticky; top: 100px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; font-size: 0.9rem; }
.legal-toc summary { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: "\25BE"; margin-left: 6px; }
.legal-toc[open] summary { margin-bottom: 10px; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: 0 0 6px; }
.legal-toc a { color: var(--text-dark); display: block; padding: 3px 6px; border-radius: 6px; }
.legal-toc a:hover, .legal-toc a.active { background: var(--bg-light); color: var(--primary-dark); }
.legal-body { max-width: 820px; min-width: 0; }
.legal-body .updated { color: var(--text-light); font-size: 0.92rem; margin-bottom: 14px; }
.legal-body h2 { font-size: 1.3rem; color: var(--primary); margin: 34px 0 10px; scroll-margin-top: 110px; }
.legal-body h3 { font-size: 1.05rem; color: var(--primary-dark); margin: 22px 0 8px; scroll-margin-top: 110px; }
.legal-body p, .legal-body li { line-height: 1.7; margin-bottom: 10px; color: var(--text-dark); }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 12px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.legal-body .legal-callout { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.legal-body .legal-callout-strong { background: #fef2f2; border-color: #fecaca; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 16px; -webkit-overflow-scrolling: touch; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.legal-body th, .legal-body td { border: 1px solid #e5e7eb; padding: 9px 10px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-body th { background: var(--bg-light); color: var(--primary-dark); }
.legal-body .legal-country { border-top: 1px dashed #d1d5db; padding-top: 6px; }
.legal-related { margin-top: 36px; padding-top: 18px; border-top: 1px solid #e5e7eb; font-size: 0.92rem; }
.legal-related a { margin-right: 14px; display: inline-block; }
.legal-cookie-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; text-decoration: none !important; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 0.95rem; }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 18px; }
    .legal-toc { position: static; }
}

/* ---- Regional notice card under the country enquiry form ---- */
.cty-legal { max-width: 760px; margin: 22px auto 0; background: #fff; border: 1px solid #e5e7eb; border-left: 5px solid var(--primary); border-radius: 12px; padding: 16px 18px; font-size: 0.9rem; }
.cty-legal h3 { font-size: 1rem; color: var(--primary-dark); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cty-legal ul { list-style: none; padding: 0; margin: 0 0 10px; }
.cty-legal li { line-height: 1.5; margin-bottom: 6px; padding-left: 18px; position: relative; color: var(--text-dark); }
.cty-legal li::before { content: "\2022"; position: absolute; left: 4px; color: var(--primary); }
.cty-legal-links a { color: var(--primary); font-weight: 700; text-decoration: underline; margin-right: 14px; display: inline-block; }

/* ---- Footer legal column ---- */
.footer-legal ul li { margin-bottom: 2px; }
.footer-cookie-link { background: none; border: 0; padding: 0; color: #9ca3af; font: inherit; cursor: pointer; text-decoration: underline; }
.footer-cookie-link:hover { color: var(--secondary); }

/* ---- Cookie banner + preferences modal (assets/js/consent.js) ---- */
.tp-cc-banner { position: fixed; z-index: 4000; left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin: 0 auto; background: #111827; color: #e5e7eb; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; font-size: 0.92rem; line-height: 1.5; }
.tp-cc-banner[hidden], .tp-cc-overlay[hidden] { display: none !important; }
.tp-cc-banner p { margin: 0; flex: 1 1 420px; }
.tp-cc-banner a { color: #fcd34d; text-decoration: underline; }
.tp-cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-cc-btn { border: 1px solid #9ca3af; background: transparent; color: inherit; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.tp-cc-btn:focus-visible, .tp-cc-close:focus-visible, .tp-cc-row input:focus-visible { outline: 3px solid #fcd34d; outline-offset: 2px; }
.tp-cc-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.tp-cc-link { border-color: transparent; text-decoration: underline; }
.tp-cc-overlay { position: fixed; inset: 0; z-index: 4100; background: rgba(17,24,39,0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tp-cc-modal { position: relative; background: #fff; color: var(--text-dark); border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px 22px 20px; box-shadow: var(--shadow-lg); }
.tp-cc-modal h2 { font-size: 1.3rem; color: var(--primary-dark); margin: 0 0 8px; }
.tp-cc-modal p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.tp-cc-modal a { color: var(--primary); text-decoration: underline; }
.tp-cc-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text-light); }
.tp-cc-row { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.tp-cc-row label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.tp-cc-row input { width: 20px; height: 20px; min-width: 20px; margin-top: 2px; accent-color: var(--primary); }
.tp-cc-row small { display: block; color: var(--text-light); font-size: 0.85rem; line-height: 1.45; margin-top: 2px; }
.tp-cc-modal .tp-cc-btn { color: var(--text-dark); border-color: #d1d5db; }
.tp-cc-modal .tp-cc-primary { color: #fff; border-color: var(--primary); }
html.tp-cc-open { overflow: hidden; }
@media (max-width: 600px) {
    .tp-cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
    .tp-cc-actions { width: 100%; }
    .tp-cc-banner .tp-cc-btn { flex: 1 1 auto; }
}
