:root {
    --legal-bg: #080b10;
    --legal-panel: rgba(13, 17, 24, .92);
    --legal-line: rgba(255, 255, 255, .09);
    --legal-text: rgba(232, 229, 223, .9);
    --legal-muted: rgba(202, 209, 218, .66);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    margin-top: 18px;
    color: rgba(202, 209, 218, .54);
    font-size: 11px;
    line-height: 1.55;
}

.footer-legal a,
.footer-legal button {
    color: inherit;
    font: inherit;
    text-decoration: none;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
    color: rgba(239, 236, 230, .92);
}

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1400;
    width: min(680px, calc(100vw - 32px));
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(circle at top right, rgba(214, 220, 228, .07), transparent 34%),
        linear-gradient(145deg, rgba(15, 20, 29, .98), rgba(7, 10, 15, .98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    transform: translateY(18px);
    opacity: 0;
    transition: opacity .32s ease, transform .32s ease;
    overflow: hidden;
}

.cookie-consent::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(230, 225, 215, .08), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 28%);
    pointer-events: none;
}

.cookie-consent::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(230, 225, 215, .28), rgba(230, 225, 215, .06));
    pointer-events: none;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__inner {
    position: relative;
    z-index: 1;
    padding: 22px 24px 20px;
    display: grid;
    gap: 14px;
}

.cookie-consent__content {
    max-width: 100%;
}

.cookie-consent__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: rgba(238, 233, 226, .94);
    font: 400 22px/1.04 Georgia, "Times New Roman", serif;
    letter-spacing: -.01em;
}


.cookie-consent__text {
    margin: 0;
    max-width: 620px;
    color: rgba(218, 222, 229, .76);
    font-size: 14px;
    line-height: 1.72;
}

.cookie-consent__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.cookie-consent__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(230, 226, 218, .86);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 226, 218, .45);
    padding-bottom: 2px;
    transition: color .24s ease, border-color .24s ease;
}

.cookie-consent__link:hover {
    color: rgba(246, 242, 236, .98);
    border-color: rgba(246, 242, 236, .82);
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-button {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, #ece8e2, #d9dde3);
    color: #080b10;
    font: 800 10px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .24s ease, border-color .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.cookie-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f4f0ea, #e1e5eb);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
}

.cookie-button--quiet {
    background: rgba(255, 255, 255, .02);
    color: rgba(230, 233, 238, .84);
    box-shadow: none;
}

.cookie-button--quiet:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .22);
    color: rgba(245, 242, 236, .96);
}

.legal-page {
    min-height: 100vh;
    padding: 140px 24px 90px;
    background:
        radial-gradient(circle at 80% 0%, rgba(176, 187, 202, .05), transparent 30%),
        linear-gradient(180deg, #090d12 0%, #080b10 52%, #070a0e 100%);
}

.legal-shell {
    max-width: 900px;
    margin: 0 auto;
}

.legal-kicker {
    margin: 0 0 14px;
    color: rgba(187, 197, 209, .68);
    font: 800 11px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.legal-page h1 {
    margin: 0 0 22px;
    color: #e6e0d8;
    font: 400 clamp(44px, 6vw, 80px)/.96 Georgia, "Times New Roman", serif;
    letter-spacing: -.04em;
}

.legal-lead {
    max-width: 720px;
    margin: 0 0 42px;
    color: var(--legal-muted);
    font-size: 16px;
    line-height: 1.86;
}

.legal-card {
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--legal-line);
    background: linear-gradient(180deg, rgba(14, 18, 26, .76), rgba(7, 10, 15, .86));
}

.legal-card + .legal-card {
    margin-top: 18px;
}

.legal-card h2 {
    margin: 0 0 14px;
    color: #e6e0d8;
    font: 400 clamp(26px, 3vw, 38px)/1.05 Georgia, "Times New Roman", serif;
}

.legal-card p,
.legal-card li {
    color: var(--legal-muted);
    font-size: 15px;
    line-height: 1.82;
}

.legal-card p + p { margin-top: 12px; }
.legal-card ul { margin: 12px 0 0 20px; }
.legal-card li + li { margin-top: 8px; }
.legal-card strong { color: var(--legal-text); font-weight: 600; }
.legal-meta { color: rgba(187, 197, 209, .55); font-size: 13px; }
.legal-back { display: inline-flex; margin-bottom: 28px; color: rgba(230, 226, 218, .82); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.legal-back:hover { color: #fff; }

@media (max-width: 720px) {
    .cookie-consent { right: 16px; bottom: 16px; width: calc(100vw - 24px); }
    .cookie-consent__inner { padding: 18px 18px 16px; gap: 16px; }
        .cookie-consent__text { font-size: 13px; line-height: 1.64; }
    .cookie-consent__footer { align-items: stretch; }
    .cookie-consent__actions { width: 100%; justify-content: flex-start; }
    .legal-page { padding: 110px 18px 72px; }
    .footer-legal { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .cookie-consent__actions { flex-direction: column; }
    .cookie-button { width: 100%; justify-content: center; }
}
