/* ============================================================================
   Цветомания — /privacy/
   Политика конфиденциальности. Document layout со sticky TOC.
   Tilda Sans · #A11826 · namespace .pp-*
============================================================================ */

.privacy-page {
    --pp-primary: #A11826;
    --pp-primary-dark: #7d101b;
    --pp-primary-soft: #fbecee;
    --pp-text: #1a1a1a;
    --pp-text-muted: #5a5a5a;
    --pp-text-light: #8a8a8a;
    --pp-border: #ececec;
    --pp-border-soft: #f4f4f4;
    --pp-bg: #ffffff;
    --pp-bg-soft: #fafaf8;

    --pp-radius: 8px;
    --pp-radius-lg: 16px;
    --pp-radius-xl: 28px;

    --pp-shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --pp-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);

    --pp-ease: cubic-bezier(0.22, 1, 0.36, 1);

    font-family: 'Tilda Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--pp-text);
    font-size: 16px;
    line-height: 1.5;
    background: var(--pp-bg);
    overflow-x: hidden;
}

.privacy-page *,
.privacy-page *::before,
.privacy-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.privacy-page ul,
.privacy-page ol {
    list-style: none;
}

.privacy-page strong,
.privacy-page b {
    font-weight: 600;
    color: var(--pp-text);
}

.privacy-page em {
    font-style: italic;
}

.pp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.pp-link {
    color: var(--pp-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s var(--pp-ease);
}

.pp-link:hover {
    color: var(--pp-primary-dark);
}

/* ------------------------------- EYEBROW --------------------------------- */
.pp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pp-primary);
    margin-bottom: 24px;
}

.pp-eyebrow__dash {
    width: 24px;
    height: 1px;
    background: var(--pp-primary);
    flex-shrink: 0;
}

/* --------------------------------- BUTTONS -------------------------------- */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--pp-ease), background 0.2s var(--pp-ease),
                color 0.2s var(--pp-ease), border-color 0.2s var(--pp-ease),
                box-shadow 0.2s var(--pp-ease);
    white-space: nowrap;
    text-decoration: none;
}

.pp-btn:hover {
    transform: translateY(-1px);
}

.privacy-page .pp-btn--primary {
    background: var(--pp-primary);
    color: #fff;
}

.privacy-page .pp-btn--primary:hover {
    background: var(--pp-primary-dark);
    color: #fff;
    box-shadow: 0 8px 28px rgba(161, 24, 38, 0.22);
}

.privacy-page .pp-btn--ghost {
    background: transparent;
    color: var(--pp-text);
    border-color: var(--pp-border);
}

.privacy-page .pp-btn--ghost:hover {
    color: var(--pp-primary);
    border-color: var(--pp-primary);
    background: #fff;
}

/* ---------------------------------- HERO ---------------------------------- */
.pp-hero {
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(161, 24, 38, 0.04), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.pp-hero .pp-container {
    position: relative;
    z-index: 1;
    max-width: 960px;
}

.pp-hero .pp-eyebrow {
    justify-content: center;
    margin-bottom: 28px;
}

.pp-hero__title {
    font-family: inherit;
    font-size: clamp(32px, 4.4vw, 64px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--pp-text);
    margin-bottom: 28px;
}

.pp-hero__title-accent {
    color: var(--pp-primary);
    font-style: italic;
    font-weight: 500;
}

.pp-hero__lede {
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.6;
    color: var(--pp-text-muted);
    max-width: 760px;
    margin: 0 auto 36px;
}

.pp-hero__actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ------------------------------- CONTENT --------------------------------- */
.pp-content {
    padding: 40px 0 120px;
}

.pp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* ---------------------------------- TOC ---------------------------------- */
.pp-toc {
    position: relative;
}

.pp-toc__sticky {
    position: sticky;
    top: 100px;
    padding: 28px 24px;
    background: var(--pp-bg-soft);
    border: 1px solid var(--pp-border-soft);
    border-radius: var(--pp-radius-lg);
}

.pp-toc__head {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pp-primary);
    margin-bottom: 16px;
}

.pp-toc__list {
    counter-reset: pp-toc;
}

.pp-toc__list li {
    counter-increment: pp-toc;
}

.privacy-page .pp-toc__list li a {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--pp-text-muted);
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -14px;
    transition: color 0.2s var(--pp-ease), border-color 0.2s var(--pp-ease);
    text-decoration: none;
}

.pp-toc__list li a::before {
    content: counter(pp-toc, decimal-leading-zero);
    flex-shrink: 0;
    color: var(--pp-text-light);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding-top: 2px;
    transition: color 0.2s var(--pp-ease);
}

.privacy-page .pp-toc__list li a:hover,
.privacy-page .pp-toc__list li a.is-active {
    color: var(--pp-primary);
    border-left-color: var(--pp-primary);
}

.pp-toc__list li a.is-active::before,
.pp-toc__list li a:hover::before {
    color: var(--pp-primary);
}

.privacy-page .pp-toc__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pp-border);
    font-size: 13px;
    color: var(--pp-text-muted);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s var(--pp-ease);
}

.privacy-page .pp-toc__download:hover {
    color: var(--pp-primary);
}

/* -------------------------------- DOCUMENT ------------------------------- */
.pp-doc {
    max-width: 820px;
}

.pp-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--pp-border-soft);
    scroll-margin-top: 100px;
}

.pp-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.pp-section__num {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--pp-primary);
    margin-bottom: 10px;
}

.pp-section__title {
    font-family: inherit;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--pp-text);
    margin-bottom: 28px;
}

.pp-p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--pp-text-muted);
    margin-bottom: 14px;
}

.pp-p strong {
    color: var(--pp-text);
    font-weight: 600;
}

.pp-p--sub {
    padding-left: 20px;
    font-size: 14.5px;
}

.pp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 18px;
    padding-left: 8px;
}

.pp-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pp-text-muted);
}

.pp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pp-primary);
}

.pp-list--compact {
    gap: 6px;
}

.pp-list--compact li {
    font-size: 14px;
    line-height: 1.5;
}

/* ------------------------------- CONTACT BOX ---------------------------- */
.pp-contact-box {
    margin-top: 56px;
    padding: 40px 44px;
    background: linear-gradient(135deg, var(--pp-primary-soft) 0%, #fff 100%);
    border: 1px solid var(--pp-border-soft);
    border-radius: var(--pp-radius-xl);
    scroll-margin-top: 100px;
}

.pp-contact-box__title {
    font-family: inherit;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pp-text);
    margin-bottom: 14px;
}

.pp-contact-box__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--pp-text-muted);
    margin-bottom: 24px;
    max-width: 640px;
}

.pp-contact-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.privacy-page .pp-contact-box__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    color: var(--pp-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s var(--pp-ease), color 0.2s var(--pp-ease),
                transform 0.2s var(--pp-ease);
}

.privacy-page .pp-contact-box__link:hover {
    color: var(--pp-primary);
    border-color: var(--pp-primary);
    transform: translateY(-1px);
}

/* ============================== RESPONSIVE =============================== */

@media (max-width: 1024px) {
    .pp-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pp-toc__sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .pp-container {
        padding: 0 20px;
    }

    .pp-hero {
        padding: 48px 0 32px;
    }

    .pp-hero__title {
        margin-bottom: 20px;
    }

    .pp-hero__lede {
        margin-bottom: 28px;
    }

    .pp-hero__actions .pp-btn {
        flex: 1;
        min-width: 0;
    }

    .pp-content {
        padding: 24px 0 72px;
    }

    .pp-toc__sticky {
        padding: 20px;
    }

    .pp-section {
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .pp-section__title {
        margin-bottom: 20px;
    }

    .pp-contact-box {
        margin-top: 40px;
        padding: 28px 24px;
        border-radius: var(--pp-radius-lg);
    }

    .pp-contact-box__links {
        flex-direction: column;
    }

    .privacy-page .pp-contact-box__link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pp-container {
        padding: 0 16px;
    }

    .pp-hero__actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
}
