/* ─── Cookie consent banner (CNIL-compliant) ─── */

.gj-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 16px;
    background: rgba(18, 18, 18, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.gj-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}

.gj-cookie-banner__content {
    flex: 1 1 280px;
    min-width: 0;
}

.gj-cookie-banner__title {
    margin: 0 0 8px;
    font-family: var(--gj-font-serif, 'Crimson Text', Georgia, serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
}

.gj-cookie-banner__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.gj-cookie-banner__text a {
    color: var(--gj-accent, #c9a962);
    text-decoration: underline;
}

.gj-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.gj-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--gj-font-serif, 'Crimson Text', Georgia, serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gj-cookie-btn--accept {
    background: var(--gj-accent, #c9a962);
    color: #121212;
    border-color: var(--gj-accent, #c9a962);
}

.gj-cookie-btn--accept:hover {
    background: #d4b872;
}

.gj-cookie-btn--reject {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.gj-cookie-btn--reject:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.gj-cookie-btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.gj-cookie-btn--settings:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Settings panel */
.gj-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.gj-cookie-settings[hidden] {
    display: none;
}

.gj-cookie-settings__panel {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: #121212;
    border-radius: 4px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.gj-cookie-settings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gj-cookie-settings__header h2 {
    margin: 0;
    font-family: var(--gj-font-serif, 'Crimson Text', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.gj-cookie-settings__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.gj-cookie-settings__close:hover {
    color: #121212;
}

.gj-cookie-settings__body {
    padding: 20px 24px;
}

.gj-cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gj-cookie-category:last-child {
    border-bottom: none;
}

.gj-cookie-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.gj-cookie-category__head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.gj-cookie-category__badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    white-space: nowrap;
}

.gj-cookie-category p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #555;
}

.gj-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.gj-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gj-cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.gj-cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.gj-cookie-toggle input:checked + .gj-cookie-toggle__slider {
    background: var(--gj-accent, #c9a962);
}

.gj-cookie-toggle input:checked + .gj-cookie-toggle__slider::before {
    transform: translateX(20px);
}

.gj-cookie-settings__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gj-cookie-settings__footer .gj-cookie-btn--accept {
    color: #121212;
}

.gj-cookie-settings__footer .gj-cookie-btn--reject {
    color: #121212;
    border-color: rgba(0, 0, 0, 0.25);
}

.gj-cookie-settings__footer .gj-cookie-btn--reject:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Footer legal links */
.gj-footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
}

.gj-footer-legal-links li {
    display: inline-flex;
    align-items: center;
}

.gj-footer-legal-links li + li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    margin: 0 14px;
    background: rgba(255, 255, 255, 0.2);
}

.gj-footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 2px 0;
    font-family: var(--gj-font-serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.gj-footer-legal-links a:hover,
.gj-footer-legal-links button:hover {
    color: rgba(255, 255, 255, 0.95);
}

.gj-footer-legal-links button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 2px 0;
    border: none;
    background: none;
    font-family: var(--gj-font-serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

@media (max-width: 575px) {
    .gj-footer-legal-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .gj-footer-legal-links li + li::before {
        display: none;
    }
}

/* Legal pages */
.gj-legal-page {
    padding: 120px 0 80px;
    background: var(--gj-bg, #faf9f7);
}

.gj-legal-page__header {
    margin-bottom: 40px;
    text-align: center;
}

.gj-legal-page__header h1 {
    margin: 0 0 12px;
    font-family: var(--gj-font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--gj-text, #121212);
}

.gj-legal-page__updated {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.gj-legal-page__body {
    max-width: 820px;
    margin: 0 auto;
}

.gj-legal-page__body h2 {
    margin: 2em 0 0.75em;
    font-size: 1.25rem;
    font-weight: 600;
}

.gj-legal-page__body h3 {
    margin: 1.5em 0 0.5em;
    font-size: 1.0625rem;
    font-weight: 600;
}

.gj-legal-page__body ul {
    margin: 0.75em 0;
    padding-left: 1.5em;
}

.gj-legal-page__body li {
    margin-bottom: 0.4em;
}

.gj-legal-page__body a {
    color: var(--gj-accent, #8b7355);
    text-decoration: underline;
}

.gj-legal-table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.gj-legal-table th,
.gj-legal-table td {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    vertical-align: top;
}

.gj-legal-table th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.gj-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.gj-form__privacy input {
    margin-top: 4px;
    flex-shrink: 0;
}

.gj-form__privacy a {
    color: var(--gj-accent, #8b7355);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .gj-cookie-banner__actions {
        width: 100%;
    }

    .gj-cookie-banner__actions .gj-cookie-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
    }

    .gj-legal-table {
        display: block;
        overflow-x: auto;
    }
}
