:root {
    --legal-bg: #11161c;
    --legal-surface: #1a222c;
    --legal-surface-raised: #202b36;
    --legal-line: rgba(167, 187, 205, .2);
    --legal-text: #f7f9fb;
    --legal-muted: #b8c3ce;
    --legal-cyan: #55c3e7;
    --legal-red: #ee4b55;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body.glass-legal {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--legal-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(85, 195, 231, .1), transparent 28rem),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        var(--legal-bg);
    background-size: auto, 42px 42px, 42px 42px, auto;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.72;
}

.glass-legal .pp-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(36px, 6vw, 76px) 24px clamp(80px, 10vw, 130px);
    text-align: left;
    background:
        radial-gradient(circle at 82% 28%, rgba(238, 75, 85, .18), transparent 21rem),
        linear-gradient(125deg, #151b22, #202b36);
}

.glass-legal .pp-header::before {
    content: "USLOVI";
    position: absolute;
    z-index: -1;
    right: -1vw;
    bottom: -.29em;
    color: rgba(255, 255, 255, .035);
    font-size: clamp(6rem, 19vw, 18rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.07em;
    pointer-events: none;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(860px, 100%);
    margin: 0 auto clamp(40px, 7vw, 78px);
    color: #fff !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.legal-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .28));
}

.glass-legal .pp-header h1,
.glass-legal .pp-header p {
    width: min(860px, 100%);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.glass-legal .pp-header h1 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(2.6rem, 7vw, 6rem);
    font-weight: 850;
    line-height: .95;
    letter-spacing: -.06em;
    text-shadow: none;
}

.glass-legal .pp-header p {
    margin-top: 20px;
    color: var(--legal-muted);
    font-size: clamp(.98rem, 1.6vw, 1.16rem);
}

.glass-legal .container {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 32px));
    max-width: none;
    margin: -52px auto 0;
    padding: 0 0 76px;
}

.glass-legal .section {
    position: relative;
    overflow: hidden;
    margin: 0 0 14px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--legal-line);
    border-radius: 16px;
    color: var(--legal-text);
    background: rgba(26, 34, 44, .94);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.glass-legal .section:first-child {
    border-top: 4px solid var(--legal-cyan);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.glass-legal .section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    border-top: 1px solid rgba(85, 195, 231, .34);
    border-right: 1px solid rgba(85, 195, 231, .34);
    opacity: .55;
}

.glass-legal .section h2 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: clamp(1.12rem, 2.2vw, 1.42rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.glass-legal .section h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--legal-red);
    box-shadow: 0 0 0 6px rgba(238, 75, 85, .1);
    vertical-align: .14em;
}

.glass-legal .section p,
.glass-legal .section li {
    color: var(--legal-muted);
    font-size: 1rem;
}

.glass-legal .section strong {
    color: #fff;
}

.glass-legal .section a {
    color: var(--legal-cyan);
    text-underline-offset: 3px;
}

.glass-legal .updated {
    margin: 28px 0 8px;
    color: #82909c;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.glass-legal .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 16px;
    padding: 0 24px;
    border: 1px solid var(--legal-cyan);
    border-radius: 999px;
    color: #071116;
    background: var(--legal-cyan);
    box-shadow: 0 14px 34px rgba(85, 195, 231, .15);
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}

.glass-legal .back-btn:hover,
.glass-legal .back-btn:focus-visible {
    color: #071116;
    background: var(--legal-cyan);
    filter: brightness(1.08);
    opacity: 1;
    transform: translateY(-2px);
}

.legal-credit {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 34px;
    border-top: 1px solid var(--legal-line);
    color: #76828d;
    font-size: .74rem;
    letter-spacing: .05em;
    text-align: center;
}

:focus-visible {
    outline: 3px solid #8cdef7;
    outline-offset: 4px;
}

@media (max-width: 620px) {
    .glass-legal .pp-header {
        padding-inline: 18px;
    }

    .glass-legal .container,
    .legal-credit {
        width: min(100% - 24px, 860px);
    }

    .glass-legal .section {
        padding: 23px 20px;
    }

    .glass-legal .section p,
    .glass-legal .section li {
        font-size: .93rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
