/*
 * Cookie consent banner and settings page.
 *
 * Its own file, like product-videos.css and hero-slideshow.css: site.css has an
 * unclosed block near line 3620 that swallows any rules appended after it.
 *
 * The two buttons are styled deliberately alike. Making "no" quieter than "yes"
 * is the classic dark pattern regulators single out, and it would undo the
 * point of asking.
 */

/* A slim strip, not a dialogue. It states a fact and gets out of the way. */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;      /* above the video lightbox */
    background: rgba(15, 23, 42, .96);
    color: #e2e8f0;
    border-top: 1px solid rgba(148, 163, 184, .28);
    padding: 10px 20px;
    animation: cookie-notice-in .28s ease-out;
}

@keyframes cookie-notice-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-notice-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.cookie-notice-text {
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.cookie-notice-text strong { color: #f1f5f9; font-weight: 600; }
.cookie-notice-text a { color: #93c5fd; text-decoration: underline; margin: 0 2px; }
.cookie-notice-text a:hover { color: #bfdbfe; }
.cookie-notice-text span { color: #64748b; margin: 0 2px; }

.cookie-notice-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Same size, same weight, same prominence - only the colour differs. */
.cookie-btn {
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}

.cookie-btn-accept {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
}

.cookie-btn-accept:hover { background: #1d4ed8; border-color: #1d4ed8; }

.cookie-btn-reject {
    background: transparent;
    border: 1px solid #94a3b8;
    color: #e2e8f0;
}

.cookie-btn-reject:hover { background: rgba(148, 163, 184, .16); border-color: #cbd5e1; }

.cookie-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* On the settings page the strip's dark palette does not apply. */
.cookie-settings .cookie-btn-reject { border-color: #64748b; color: #1e293b; }
.cookie-settings .cookie-btn-reject:hover { background: #f1f5f9; }

@media (max-width: 820px) {
    .cookie-notice { padding: 12px 14px; }
    .cookie-notice-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .cookie-notice-text { text-align: center; }
    /* column, not column-reverse: the two choices keep the same order they
       have on a wide screen. Reversing them would present "yes" first here and
       "no" first there, which is the kind of small inconsistency that reads as
       a nudge. */
    .cookie-notice-actions { flex-direction: column; }
    .cookie-btn { width: 100%; padding: 12px 20px; }
}

/* ---- Settings page ---- */

.cookie-settings {
    max-width: 900px;
    margin: 0 auto;
    /* Clears the fixed site header - see .legal-page. */
    padding: 130px 24px 72px;
    color: #1e293b;
}

.cookie-settings h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 18px; }
.cookie-settings h2 { font-size: 1.2rem; font-weight: 700; margin: 34px 0 12px; }
.cookie-settings p  { line-height: 1.65; margin: 0 0 14px; }
.cookie-settings a  { color: #1d4ed8; }

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 8px;
    font-size: .9rem;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.cookie-table th { background: #f8fafc; font-weight: 600; }
.cookie-table code { font-size: .85em; color: #0f172a; word-break: break-all; }

.cookie-status {
    padding: 13px 16px;
    border-radius: 8px;
    border-left: 4px solid #94a3b8;
    background: #f8fafc;
    margin: 14px 0 18px;
}

.cookie-status-on  { border-left-color: #16a34a; background: #f0fdf4; }
.cookie-status-off { border-left-color: #64748b; background: #f8fafc; }

.cookie-choice { display: flex; gap: 12px; flex-wrap: wrap; }

.cookie-note { font-size: .86rem; color: #64748b; margin-top: 12px; }

/* The footer link that makes withdrawal reachable from every page. */
.cookie-settings-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ---- Legal pages (privacy policy, terms) ---- */
/*
 * These are long documents read on a phone as often as a desktop, so they get
 * a comfortable measure and a back link that is always in reach rather than
 * only at the top - a visitor who has scrolled through twenty sections should
 * not have to scroll back up to leave.
 */

.legal-page {
    max-width: 860px;
    margin: 0 auto;
    /* The site header is fixed, so these pages start underneath it. Without
       this the heading - and the back button above it - sit behind the nav bar
       and cannot be clicked. */
    padding: 130px 24px 80px;
    color: #1e293b;
    line-height: 1.65;
}

.legal-back,
.cookie-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
    padding: 9px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.legal-back:hover,
.cookie-back:hover {
    background: #eef2f7;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}

.legal-page h1 { font-size: 2rem; font-weight: 700; margin: 0 0 22px; line-height: 1.25; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin: 38px 0 12px; color: #0f172a; }
.legal-page h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; color: #0f172a; }
.legal-page p  { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 24px; }
.legal-page li { margin-bottom: 7px; }
.legal-page a  { color: #1d4ed8; }
.legal-page code {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .88em;
    word-break: break-word;
}

.legal-page blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid #93c5fd;
    background: #f8fafc;
}

.legal-page blockquote p { margin: 0; }

/* Wide tables scroll inside their own box rather than stretching the page. */
.legal-tablewrap { overflow-x: auto; margin: 16px 0 20px; }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .89rem;
    min-width: 420px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.legal-table th { background: #f8fafc; font-weight: 600; white-space: nowrap; }

@media (max-width: 620px) {
    .legal-page { padding: 100px 16px 64px; }
    .legal-page h1 { font-size: 1.55rem; }
    .legal-page h2 { font-size: 1.15rem; }
}

/* ---- Click-to-load map placeholder ---- */
/*
 * Occupies the same space the iframe would, so pressing "Show map" does not
 * shove the contact card down the page.
 */

.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 32px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    text-align: center;
}

.map-consent-inner { max-width: 460px; }

.map-consent-icon { color: #60a5fa; margin-bottom: 10px; }

.map-consent-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.map-consent-address {
    margin: 0 0 14px;
    font-size: .95rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.map-consent-note {
    margin: 0 0 18px;
    font-size: .82rem;
    line-height: 1.55;
    color: #94a3b8;
}

.map-consent-note a { color: #93c5fd; text-decoration: underline; }

.map-consent-btn {
    display: inline-block;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    padding: 12px 28px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.map-consent-btn:hover { background: #1d4ed8; color: #ffffff; text-decoration: none; }
.map-consent-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

@media (max-width: 620px) {
    .map-consent { min-height: 380px; padding: 26px 16px; }
}
