/* ============================================================
   BOTinOK — Policy (Solid Panels + Accent Lines)
   Стиль B+A: матовые панели, акцентные кромки, строгая типографика
   ============================================================ */

.main-content {
    flex: 1;
    padding: 48px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* ===== КАРТОЧКА ===== */
.policy-card {
    position: relative;
    width: min(900px, 100%);
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-xl);
    padding: 40px 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--shadow-md), inset 0 1px 0 var(--edge-light);
    overflow: hidden;
    animation: fadeInUp 420ms var(--ease) both;
}

/* акцентная кромка сверху (B) */
.policy-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 14px;
    right: 14px;
    height: var(--accent-line);
    border-radius: 0 0 2px 2px;
    background: var(--accent);
    opacity: 0.9;
    pointer-events: none;
}

/* мягкий фиолетовый отблеск в углу */
.policy-card::after {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== ЗАГОЛОВОК ===== */
.policy-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--text-0);
    position: relative;
    z-index: 1;
    padding-bottom: 16px;
}

/* акцент-подчёркивание под заголовком (B) */
.policy-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.9;
}

/* ===== ТЕКСТ ===== */
.policy-text {
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-base);
    letter-spacing: 0;
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.policy-text p {
    text-align: left;
    margin: 0;
}

/* акцентные подзаголовки секций (B) */
.policy-text .section-title {
    position: relative;
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: var(--lh-snug);
    margin-top: 12px;
    padding-left: 14px;
    color: var(--accent-hover);
}

/* вертикальная акцентная линия слева от заголовка секции */
.policy-text .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.9;
}

/* подраздел — левая линия-подсветка на токенах */
.policy-text .subsection {
    padding-left: 16px;
    border-left: 2px solid var(--border-1);
    color: var(--text-2);
    transition: border-color var(--dur) var(--ease);
}

.policy-text .subsection:hover {
    border-left-color: var(--accent-soft-2);
}

.policy-text strong {
    color: var(--text-0);
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .main-content {
        padding: 36px 24px 64px;
    }

    .policy-card {
        padding: 32px 32px 44px;
    }
}

@media (max-width: 900px) {
    .main-content {
        padding: 24px 16px 48px;
    }

    .policy-card {
        padding: 24px 20px 32px;
        border-radius: var(--r-lg);
        gap: 20px;
    }

    .policy-title {
        font-size: var(--fs-xl);
    }

    .policy-text {
        font-size: var(--fs-sm);
    }

    .policy-text .section-title {
        font-size: var(--fs-md);
    }
}

@media (max-width: 500px) {
    .policy-card {
        padding: 20px 16px 28px;
    }

    .policy-card::before {
        left: 10px;
        right: 10px;
    }

    .policy-title {
        font-size: var(--fs-lg);
    }

    .policy-text .subsection {
        padding-left: 12px;
    }
}