/* Közös adatvédelmi felületek az előnézethez és a karbantartási oldalhoz. */
.cookie-banner,
.cookie-dialog,
.cookie-feedback {
    box-sizing: border-box;
    color: #202a30;
    background: #fcfdfb;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}
.cookie-banner *,
.cookie-dialog * {
    box-sizing: border-box;
}
.cookie-banner[hidden],
.cookie-feedback[hidden],
[data-cookie-open][hidden] {
    display: none !important;
}
.cookie-banner {
    position: fixed;
    z-index: 2200;
    right: 24px;
    bottom: 24px;
    width: min(520px, calc(100% - 48px));
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #c7d5bb;
    border-radius: 18px;
    box-shadow: 0 12px 64px #15231938;
    animation: cookie-arrival 420ms cubic-bezier(.22, 1, .36, 1) both;
}
.cookie-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.privacy-icon {
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d8e4ca;
    border-radius: 11px;
    background: #edf4e5;
    color: #426a1d;
}
.cookie-banner .ui-icon,
.cookie-dialog .ui-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cookie-banner h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.cookie-banner p,
.cookie-dialog > p {
    margin: 0 0 18px;
    color: #536057;
}
.cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cookie-actions .privacy-button,
.legal-page .privacy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #87ae56;
    border-radius: 8px;
    background: #f0f5e8;
    color: #2b4814;
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease;
}
.cookie-actions .privacy-button:hover,
.legal-page .privacy-button:hover {
    border-color: #5e8a2e;
    background: #e3efcf;
}
.cookie-actions .privacy-button-save {
    background: #d4edaa;
}
.cookie-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 12px;
}
.cookie-links a,
.cookie-links button,
.cookie-detail-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: #3a601d;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.cookie-banner :focus-visible,
.cookie-dialog :focus-visible {
    outline: 2px solid #527e27;
    outline-offset: 4px;
}
.cookie-dialog {
    width: min(580px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 30px;
    border: 1px solid #cbd8c1;
    border-radius: 20px;
    box-shadow: 0 24px 90px #12201544;
}
.cookie-dialog[open] {
    animation: cookie-arrival 300ms ease both;
}
.cookie-dialog::backdrop {
    background: #121d20a6;
    backdrop-filter: blur(5px);
}
body:has(.cookie-dialog[open]) {
    overflow: hidden;
}
.cookie-dialog h2 {
    margin: 16px 0 10px;
    font-size: 30px;
    line-height: 1.15;
    padding-right: 20px;
}
.cookie-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dae2d4;
    border-radius: 50%;
    background: #fff;
    color: #31422a;
    font-size: 26px;
    cursor: pointer;
}
.cookie-category {
    padding: 20px 0;
    border-top: 1px solid #dce4d5;
}
.cookie-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-category h3,
.cookie-toggle {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.cookie-always {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #496b2b;
    font-size: 12px;
    font-weight: 600;
}
.cookie-always .ui-icon {
    width: 14px;
    height: 14px;
}
.cookie-category p {
    margin: 10px 0 0;
    color: #536057;
    font-size: 15px;
}
.cookie-toggle {
    cursor: pointer;
}
.cookie-toggle input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #477820;
    cursor: pointer;
}
.cookie-dialog .cookie-tracking-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #426224;
}
.cookie-detail-link {
    margin-top: 12px;
}
.cookie-feedback {
    position: fixed;
    z-index: 2300;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 12px 20px;
    border: 1px solid #b3c59c;
    border-radius: 10px;
    box-shadow: 0 6px 28px #20301624;
    font-size: 14px;
}
.maintenance-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 14px;
}
.maintenance-legal a,
.maintenance-legal button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: #bdcbb8;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
/* Jogi tartalom: rövid áttekintés, ugróhivatkozások, könnyen olvasható szakaszok. */
.legal-heading {
    max-width: 900px;
    padding-block: 58px 36px;
}
.legal-heading .privacy-icon {
    margin-bottom: 24px;
}
.legal-heading h1 {
    font-size: clamp(34px, 4vw, 54px);
    overflow-wrap: anywhere;
}
.legal-heading .page-lead {
    font-size: 20px;
    line-height: 1.6;
}
.legal-date {
    margin-top: 20px;
    color: #5b6a52;
    font-size: 14px;
}
.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.legal-nav {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dce4d5;
    border-radius: 14px;
    background: #f2f6ed;
}
.legal-nav a {
    padding: 8px 0;
    color: #365e19;
    font-size: 15px;
    text-decoration: none;
}
.legal-content {
    min-width: 0;
    max-width: 850px;
}
.legal-content section {
    margin-bottom: 32px;
    padding: 28px 32px;
    border: 1px solid #dce3d7;
    border-radius: 16px;
    background: #ffffffed;
    scroll-margin-top: 24px;
}
.legal-content h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.25;
}
.legal-content h3 {
    margin: 22px 0 8px;
    font-size: 20px;
}
.legal-content p,
.legal-content li,
.legal-content dd {
    color: #46534a;
    font-size: 17px;
    line-height: 1.7;
}
.legal-content p + p {
    margin-top: 14px;
}
.legal-content a {
    color: #345d15;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
.legal-content ul {
    padding-left: 22px;
}
.legal-content li + li {
    margin-top: 10px;
}
.legal-facts {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px 20px;
    margin: 0;
}
.legal-facts dt {
    color: #5c6b54;
    font-size: 15px;
}
.legal-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.legal-cookie {
    padding-block: 20px;
    border-top: 1px solid #e1e7da;
}
.legal-cookie h3 {
    margin-top: 0;
}
.legal-cookie code {
    overflow-wrap: anywhere;
    font-size: 16px;
}
.legal-cookie p {
    margin: 8px 0;
}
.legal-note {
    padding: 16px 18px;
    border-left: 3px solid #99b76d;
    background: #f0f5e9;
}
.legal-content .privacy-button {
    margin-top: 16px;
}
@keyframes cookie-arrival {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 850px) {
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .legal-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }
}
@media (max-width: 480px) {
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: calc(100svh - 24px);
        padding: 20px;
        font-size: 15px;
    }
    .cookie-banner h2 {
        font-size: 21px;
    }
    .cookie-dialog {
        padding: 24px 20px;
    }
    .cookie-actions {
        gap: 8px;
    }
    .cookie-actions .privacy-button {
        font-size: 14px;
        padding-inline: 10px;
    }
    .legal-heading {
        padding-top: 36px;
    }
    .legal-content section {
        padding: 24px 20px;
    }
    .legal-content h2 {
        font-size: 25px;
    }
    .legal-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .legal-facts dd {
        margin-bottom: 12px;
    }
    .legal-nav {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-dialog[open] {
        animation: none;
    }
    .privacy-button {
        transition: none;
    }
}
