.cookie-consent[hidden],
[data-cookie-banner][hidden] {
    display: none !important;
}

.footer-legal {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-muted, #9eb0ca);
}

.footer-grid .footer-legal li {
    margin-bottom: 7px;
}

.footer-legal a,
.footer-legal button {
    color: var(--muted, #9eb0ca);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-legal button {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
    color: #fff;
}

.cookie-consent {
    position: fixed;
    z-index: 100000;
    bottom: 1rem;
    left: 1rem;
    width: min(440px, calc(100% - 2rem));
    max-width: calc(100vw - 2rem);
    color: #edf7ff;
}

.cookie-consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 1.1rem;
    border: 1px solid rgba(90, 203, 255, 0.38);
    border-radius: 16px;
    background: rgba(5, 18, 39, 0.98);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.cookie-consent,
.cookie-consent *,
.cookie-policy-simple,
.cookie-policy-simple * {
    box-sizing: border-box;
}

.cookie-consent__copy,
.cookie-consent__actions,
.cookie-consent__button,
.cookie-policy-simple {
    min-width: 0;
}

.cookie-consent__copy {
    max-width: 760px;
}

.cookie-consent__eyebrow {
    margin: 0 0 0.35rem;
    color: #61d9ff;
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    margin: 0;
    color: #fff;
    font-size: var(--text-lg);
}

.cookie-consent__copy > p:not(.cookie-consent__eyebrow) {
    margin: 0.45rem 0;
    color: #c5d5e8;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.cookie-consent__copy a {
    color: #74dcff;
    font-size: var(--text-sm);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.cookie-consent__actions,
.cookie-policy-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.cookie-consent__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.8rem;
    border: 1px solid #58c9ff;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.cookie-consent__button--primary {
    color: #06152d;
    background: linear-gradient(135deg, #62d9ff, #8c78ff);
}

.cookie-consent__button--secondary {
    color: #edf7ff;
    background: #102846;
}

.cookie-consent__button:hover {
    filter: brightness(1.12);
}

.footer-legal a:focus-visible,
.footer-legal button:focus-visible,
.cookie-consent a:focus-visible,
.cookie-consent__button:focus-visible,
.cookie-policy-page button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.cookie-policy-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(83, 203, 255, 0.28);
    border-radius: 14px;
    background: rgba(9, 31, 58, 0.75);
}

.cookie-policy-status span {
    color: #9eb7d4;
}

.cookie-policy-status strong {
    color: #66ddff;
}

.cookie-policy-simple {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.cookie-policy-simple h1 {
    max-width: 100%;
    margin: 0 0 1.5rem;
    font-size: clamp(2.7rem, 8vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.cookie-policy-simple h2 {
    margin: 2.2rem 0 0.8rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.cookie-policy-simple > p:not(.terms-eyebrow) {
    max-width: 700px;
    margin: 0 0 1rem;
    color: #b8cce0;
    font-size: var(--text-base);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.cookie-policy-simple a {
    color: #74dcff;
}

.cookie-policy-simple .cookie-policy-simple__status {
    margin-top: 2rem;
    color: #edf7ff;
}

.cookie-policy-simple__status strong {
    color: #66ddff;
}

.cookie-table-wrap {
    max-width: 100%;
    margin: 1.1rem 0;
    overflow-x: auto;
    border: 1px solid rgba(116, 190, 239, 0.2);
    border-radius: 14px;
}

.cookie-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}

.cookie-table th,
.cookie-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(116, 190, 239, 0.15);
    vertical-align: top;
}

.cookie-table thead th {
    color: #8cddff;
    background: rgba(31, 83, 128, 0.22);
    font-size: var(--text-2xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-table tbody th {
    color: #f4f8ff;
    font-weight: 700;
}

.cookie-table tbody tr:last-child th,
.cookie-table tbody tr:last-child td {
    border-bottom: 0;
}

.cookie-policy-actions {
    max-width: 540px;
    margin: 1.15rem 0;
}

@media (max-width: 800px) {
    .cookie-consent {
        bottom: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
        width: auto;
        max-width: 380px;
    }

    .cookie-consent__inner {
        gap: 0.7rem;
        max-height: calc(100dvh - 1.3rem);
        padding: 0.85rem;
        overflow-y: auto;
    }

    .cookie-consent__eyebrow {
        display: none;
    }

    .cookie-consent h2 {
        font-size: var(--text-base);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .cookie-consent__copy > p:not(.cookie-consent__eyebrow) {
        margin: 0.32rem 0;
        font-size: var(--text-xs);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .cookie-consent__copy a {
        display: inline-block;
        max-width: 100%;
        font-size: var(--text-xs);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .cookie-consent__actions {
        gap: 0.45rem;
    }

    .cookie-consent__button {
        min-height: 42px;
        padding: 0.55rem 0.45rem;
        font-size: var(--text-2xs);
    }
}

@media (max-width: 520px) {
    .cookie-policy-actions {
        grid-template-columns: 1fr;
    }

    .cookie-policy-actions .cookie-consent__button {
        width: 100%;
    }

    .cookie-policy-status {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-policy-page * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
