/* scoped to .ck-page only */
.ck-page {
    background: #f5f6fa;
    padding: 56px 0 80px;
    font-family: 'Inter', sans-serif;
}

/* hero */
.ck-hero {
    background: linear-gradient(135deg, #d50032 0%, #8b0020 100%);
    border-radius: 20px;
    padding: 52px 48px 44px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}
.ck-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.ck-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 30%;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.ck-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.ck-hero-badge svg { flex-shrink: 0; }
.ck-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
}
.ck-hero p {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin: 0 0 28px;
    max-width: 620px;
    line-height: 1.7;
}
.ck-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ck-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    font-weight: 500;
}
.ck-hero-meta-item svg { flex-shrink: 0; }

/* layout */
.ck-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* sticky toc */
.ck-toc {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    padding: 28px 20px;
    border: 1px solid #eee;
}
.ck-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 16px 8px;
}
.ck-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ck-toc-list li { margin: 0; }
.ck-toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1.3;
}
.ck-toc-list a:hover,
.ck-toc-list a.active {
    background: #fff0f3;
    color: #d50032;
    text-decoration: none;
}
.ck-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    flex-shrink: 0;
    transition: all .18s ease;
}
.ck-toc-list a:hover .ck-toc-num,
.ck-toc-list a.active .ck-toc-num {
    background: #d50032;
    color: #fff;
}

/* content cards */
.ck-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    border: 1px solid #eee;
    padding: 36px 40px;
    margin-bottom: 20px;
    scroll-margin-top: 100px;
    transition: box-shadow .2s ease;
}
.ck-section:hover {
    box-shadow: 0 4px 28px rgba(213,0,50,.1);
}
.ck-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.ck-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d50032, #ff4060);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(213,0,50,.25);
}
.ck-icon svg { color: #fff; }
.ck-section-header-text { flex: 1; }
.ck-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}
.ck-section p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* cookie table */
.ck-cookie-table {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}
.ck-cookie-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #f0f0f0;
}
.ck-cookie-row:last-child { border-bottom: none; }
.ck-cookie-row span {
    padding: 14px 18px;
    color: #555;
    line-height: 1.6;
}
.ck-cookie-row span:first-child {
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
}
.ck-cookie-header span {
    background: #d50032 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-right-color: rgba(255,255,255,.2) !important;
}

/* responsive */
@media (max-width: 991px) {
    .ck-layout { grid-template-columns: 1fr; }
    .ck-toc { position: static; margin-bottom: 24px; }
}
@media (max-width: 767px) {
    .ck-page { padding: 32px 0 60px; }
    .ck-hero { padding: 36px 24px 32px; border-radius: 16px; }
    .ck-hero h1 { font-size: 26px; }
    .ck-section { padding: 24px 20px; border-radius: 12px; }
    .ck-toc { display: none; }
    .ck-cookie-header { display: none; }
    .ck-cookie-row { grid-template-columns: 1fr; }
    .ck-cookie-row span:first-child {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        background: #fff8f9;
        color: #d50032;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .6px;
        padding: 10px 18px 8px;
    }
}
