/* ===== Терминал-стиль для политики ===== */

body.scanlines::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.18) 2px 4px);
    pointer-events: none;
    z-index: 5;
}

.progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    z-index: 200;
    box-shadow: 0 0 10px var(--cyan);
}

.policy-wrap {
    position: relative;
    z-index: 1;
    padding: 140px 5% 80px;
    max-width: 900px;
    margin: 0 auto;
}

.terminal {
    background: rgba(7, 7, 20, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,240,255,0.08);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #0d0d20;
    border-bottom: 1px solid var(--border);
}

.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }

.terminal-title {
    color: var(--muted);
    font-size: 0.8rem;
    margin-left: 12px;
}

.terminal-body { padding: 40px; }

.cmd-line {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.cmd-line .prompt { color: var(--pink); margin-right: 8px; }
.cmd-line.end { margin: 30px 0; }

.typed {
    color: var(--cyan);
    border-right: 2px solid var(--cyan);
    white-space: nowrap;
    overflow: hidden;
}

.cursor-blink {
    color: var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.policy-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: #ffffff;
    letter-spacing: 1px;
    margin: 20px 0 10px;
    text-shadow: 0 0 30px rgba(0,240,255,0.4);
}

.policy-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}
.policy-meta b { color: var(--cyan); font-weight: 500; }

/* Оглавление */
.toc {
    border: 1px dashed rgba(0,240,255,0.35);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 45px;
}
.toc-title { color: var(--cyan); font-size: 0.9rem; margin-bottom: 12px; }
.toc a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: 0.3s;
}
.toc a::before { content: '> '; color: var(--pink); }
.toc a:hover { color: var(--cyan); padding-left: 10px; }

/* Секции */
.p-section {
    margin-bottom: 36px;
    padding-left: 20px;
    border-left: 2px solid rgba(0,240,255,0.25);
    transition: border-color 0.3s;
}
.p-section:hover { border-left-color: var(--cyan); }

.p-section h2 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 12px;
}
.p-section h2 .num { color: var(--pink); margin-right: 8px; }

.p-section p, .p-section li {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}
.p-section ul { list-style: none; }
.p-section li { padding-left: 18px; position: relative; }
.p-section li::before {
    content: '·';
    color: var(--cyan);
    position: absolute;
    left: 0;
}

.hl { color: var(--cyan); }
.hl-p { color: var(--pink); }

@media (max-width: 600px) {
    .terminal-body { padding: 25px 20px; }
}