/**
 * Page Template Styles
 * Styles for privacy policy, terms, and other legal pages
 *
 * @package WiseTopicHub
 * @since 1.0.0
 */

/* ——— BREADCRUMB ——— */
.breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.breadcrumb-inner a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumb-inner a:hover {
    color: var(--black);
}

.breadcrumb-inner .sep {
    font-size: 0.6rem;
}

.breadcrumb-inner .current {
    color: var(--gray-700);
}

/* ——— PAGE HEADER ——— */
.policy-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--gray-200);
}

.policy-header-inner {
    max-width: 800px;
}

.policy-header .policy-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.policy-header h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.policy-header .policy-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 600px;
}

.policy-header .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.policy-header .last-updated i {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.policy-header .last-updated strong {
    color: var(--gray-700);
}

/* ——— POLICY LAYOUT ——— */
.policy-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 800px);
    gap: 64px;
    padding: 56px 0 80px;
}

/* ——— TABLE OF CONTENTS ——— */
.policy-toc {
    position: sticky;
    top: 100px;
}

.toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 18px;
}

.toc-nav {
    list-style: none;
    border-left: 1px solid var(--gray-200);
}

.toc-nav li {
    margin-bottom: 2px;
}

.toc-nav a {
    display: block;
    padding: 7px 0 7px 18px;
    font-size: 0.78rem;
    color: var(--gray-500);
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 0.2s;
    line-height: 1.45;
}

.toc-nav a:hover {
    color: var(--black);
}

.toc-nav a.active {
    color: var(--black);
    font-weight: 600;
    border-left-color: var(--black);
}

/* Mobile TOC */
.toc-mobile {
    display: none;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.toc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    padding: 0;
}

.toc-mobile-toggle i {
    font-size: 0.7rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.toc-mobile-toggle.open i {
    transform: rotate(180deg);
}

.toc-mobile-list {
    list-style: none;
    margin-top: 14px;
    border-left: 2px solid var(--gray-200);
    padding-left: 16px;
}

.toc-mobile-list li {
    margin-bottom: 8px;
}

.toc-mobile-list a {
    font-size: 0.82rem;
    color: var(--gray-500);
    transition: color 0.2s;
    line-height: 1.5;
}

.toc-mobile-list a:hover {
    color: var(--black);
}

/* ——— POLICY CONTENT ——— */
.policy-content {
    min-width: 0;
}

.policy-content > * + * {
    margin-top: 1.4em;
}

.policy-content section {
    padding-top: 8px;
    margin-top: 0;
}

.policy-content section + section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.policy-content h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.policy-content h2 .section-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-align: center;
    line-height: 30px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-right: 10px;
    vertical-align: middle;
}

.policy-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.8em;
    margin-bottom: 0.3em;
    line-height: 1.35;
}

.policy-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.policy-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(200, 16, 46, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.policy-content a:hover {
    text-decoration-color: var(--accent);
}

.policy-content strong {
    color: var(--dark);
    font-weight: 600;
}

.policy-content ul,
.policy-content ol {
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.policy-content li {
    margin-bottom: 6px;
}

.policy-content li::marker {
    color: var(--gray-300);
}

/* ——— PAGE HEADER (Terms Style) ——— */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--gray-200);
}

.page-header-inner {
    max-width: 800px;
}

.page-header .page-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.page-header .page-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 600px;
}

.page-header .meta-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-header .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.page-header .meta-badge i {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.page-header .meta-badge strong {
    color: var(--gray-700);
}

/* ——— KEY TERMS SUMMARY ——— */
.key-terms {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.key-terms-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.kt-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-label i {
    color: var(--accent);
}

.kt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kt-card {
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.kt-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-card h4 i {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.kt-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.55;
}

/* Info Box */
.policy-box {
    padding: 22px 26px;
    border-radius: 10px;
    margin: 1.6em 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.policy-box.blue {
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
}

.policy-box.gray {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.policy-box.green {
    background: var(--green-light);
    border: 1px solid var(--green-border);
}

.policy-box.amber {
    background: var(--amber-light);
    border: 1px solid var(--amber-border);
}

.policy-box.purple {
    background: var(--purple-light);
    border: 1px solid var(--purple-border);
}

.policy-box-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-box.blue .policy-box-icon {
    background: #dbeafe;
    color: #2563eb;
}

.policy-box.gray .policy-box-icon {
    background: var(--gray-200);
    color: var(--gray-500);
}

.policy-box.green .policy-box-icon {
    background: #dcfce7;
    color: #16a34a;
}

.policy-box.amber .policy-box-icon {
    background: #fef3c7;
    color: #d97706;
}

.policy-box.purple .policy-box-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.policy-box-content p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.policy-box-content strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.82rem;
}

/* DO / DONT Grid */
.do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 1.6em 0;
}

.do-col,
.dont-col {
    padding: 22px 24px;
    border-radius: 10px;
}

.do-col {
    background: var(--green-light);
    border: 1px solid var(--green-border);
}

.dont-col {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.do-col h4,
.dont-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.do-col h4 {
    color: var(--green);
}

.dont-col h4 {
    color: #dc2626;
}

.do-col h4 i {
    color: var(--green);
}

.dont-col h4 i {
    color: #dc2626;
}

.do-col ul,
.dont-col ul {
    list-style: none;
    padding: 0;
}

.do-col li,
.dont-col li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-700);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    margin: 0;
}

.do-col li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 0.8rem;
}

.dont-col li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Numbered Steps */
.steps {
    counter-reset: step;
    margin: 1.6em 0;
}

.step-item {
    counter-increment: step;
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}

.step-item:last-child {
    border-bottom: none;
}

.step-item::before {
    content: counter(step);
    width: 32px;
    height: 32px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
}

.step-item div h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark);
}

.step-item div p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Inline Badge */
.inline-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
}

.inline-badge.required {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.inline-badge.recommended {
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid var(--blue-border);
}

/* Acceptance Bar */
.acceptance-bar {
    margin: 2em 0;
    padding: 28px 32px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
}

.acceptance-bar p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.acceptance-bar .acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.acceptance-bar .acc-btn:hover {
    background: var(--accent);
}

.acceptance-bar .acc-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 10px;
}

/* Data Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.88rem;
}

.policy-table thead th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.policy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: top;
    line-height: 1.55;
}

.policy-table tbody tr:hover {
    background: var(--gray-50);
}

.policy-table .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
}

.badge.essential {
    background: #dcfce7;
    color: #16a34a;
}

.badge.analytics {
    background: #dbeafe;
    color: #2563eb;
}

.badge.marketing {
    background: #fef3c7;
    color: #d97706;
}

/* Contact Card */
.contact-card {
    padding: 28px 32px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin: 1.6em 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card h4 i {
    color: var(--gray-400);
    font-size: 0.88rem;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}

.contact-row .cr-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.contact-row .cr-label {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-row .cr-value {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 500;
}

.contact-row .cr-value a {
    color: var(--accent);
}

/* Rights List */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1.4em 0;
}

.right-item {
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.right-item .ri-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-top: 1px;
}

.right-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark);
}

.right-item p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: var(--gray-500) !important;
}

/* Print Button */
.print-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.print-bar p {
    font-size: 0.82rem !important;
    color: var(--gray-400) !important;
}

.print-bar-btns {
    display: flex;
    gap: 8px;
}

.print-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.print-btn i {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.print-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

/* ——— OTHER POLICIES ——— */
.other-policies {
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.op-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 32px;
}

.op-head h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.op-head .line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.op-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.op-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.op-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.op-card .op-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.op-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.op-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 14px;
}

.op-card .op-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.op-card .op-link i {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.op-card:hover .op-link {
    color: var(--accent);
}

.op-card:hover .op-link i {
    transform: translateX(3px);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .policy-toc {
        display: none;
    }

    .toc-mobile {
        display: block;
    }

    .op-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .policy-header,
    .page-header {
        padding: 40px 0 36px;
    }

    .policy-header h1,
    .page-header h1 {
        font-size: 2rem;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .op-grid {
        grid-template-columns: 1fr;
    }

    .print-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .do-dont {
        grid-template-columns: 1fr;
    }

    .kt-grid {
        grid-template-columns: 1fr;
    }

    .meta-badges {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.6rem;
    }

    .policy-content h2 {
        font-size: 1.3rem;
    }
}

/* ——— PRINT STYLES ——— */
@media print {
    .breadcrumb,
    .policy-toc,
    .toc-mobile,
    .other-policies,
    .print-bar,
    .key-terms,
    .acceptance-bar,
    .cookie-summary,
    .cookie-center {
        display: none !important;
    }

    .policy-layout {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .policy-header,
    .page-header {
        padding: 20px 0 !important;
        border: none !important;
    }

    .policy-content section + section {
        border-top: 1px solid #ccc;
    }

    .policy-content,
    .policy-content p {
        font-size: 12pt;
        color: #000;
    }
}

/* ——— COOKIE POLICY SPECIFIC STYLES ——— */

/* Cookie Header Icon */
.cookie-header .page-icon,
.cookie-icon {
    background: var(--amber-light);
    border-color: var(--amber-border);
    color: #d97706;
}

/* Cookie Summary Section */
.cookie-summary {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cs-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.cs-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-label i {
    color: #d97706;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cs-stat {
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-stat .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cs-stat .stat-icon.essential {
    background: #dcfce7;
    color: #16a34a;
}

.cs-stat .stat-icon.analytics {
    background: #dbeafe;
    color: #2563eb;
}

.cs-stat .stat-icon.marketing {
    background: #fef3c7;
    color: #d97706;
}

.cs-stat .stat-icon.functional {
    background: #ede9fe;
    color: #7c3aed;
}

.cs-stat h4 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.cs-stat p {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Cookie Preference Center */
.cookie-center {
    padding: 40px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    margin: 1.6em 0;
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.cc-header h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-header h3 i {
    color: #d97706;
}

.cc-accept-btn {
    padding: 10px 24px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.cc-accept-btn:hover {
    background: #16a34a;
}

/* Cookie Category */
.cc-category {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 12px;
}

.cc-category:last-child {
    margin-bottom: 0;
}

.cc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.cc-cat-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.cc-cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cc-cat-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.cc-cat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.cc-cat-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.cc-cat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.cc-cat-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-cat-text p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.cc-cat-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.cc-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cc-status.always-on {
    color: #16a34a;
}

.cc-status.optional {
    color: var(--gray-400);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 12px;
    transition: all 0.25s;
    cursor: pointer;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .slider {
    background: #16a34a;
}

.toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.toggle.disabled .slider {
    background: #16a34a;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Cookie Details */
.cc-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    display: none;
}

.cc-details.open {
    display: block;
}

.cc-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.cc-details-toggle:hover {
    color: var(--accent);
}

.cc-details-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.cc-details.open + .cc-details-toggle i,
.cc-details-toggle:has(+ .cc-details.open) i {
    transform: rotate(180deg);
}

/* Mini Table */
.mini-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.mini-table th {
    background: var(--gray-50);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.mini-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    line-height: 1.4;
}

.mini-table td code {
    font-family: var(--mono);
    font-size: 0.72em;
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: 3px;
    color: #d97706;
}

/* Browser Grid */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.6em 0;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s;
}

.browser-item:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.browser-item .b-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.browser-item .b-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.browser-item .b-link {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.browser-item .b-link a {
    color: var(--accent);
}

/* Badge Variations */
.badge.functional {
    background: #ede9fe;
    color: #7c3aed;
}

.badge.always {
    background: #fef2f2;
    color: #dc2626;
}

/* Code in Policy Content */
.policy-content code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    color: #d97706;
}

/* Cookie Banner (for reference - usually in footer) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.cb-text {
    flex: 1;
}

.cb-text p {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.cb-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(200, 16, 46, 0.3);
    text-underline-offset: 2px;
}

.cb-text a:hover {
    text-decoration-color: var(--accent);
}

.cb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cb-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cb-btn.accept {
    background: var(--black);
    color: var(--white);
}

.cb-btn.accept:hover {
    background: #16a34a;
}

.cb-btn.reject {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cb-btn.reject:hover {
    background: var(--gray-200);
}

.cb-btn.customize {
    background: none;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

.cb-btn.customize:hover {
    border-color: var(--gray-300);
    color: var(--black);
}

/* ——— COOKIE RESPONSIVE ——— */
@media (max-width: 1024px) {
    .cs-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .browser-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-stats {
        grid-template-columns: 1fr;
    }

    .cc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cc-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cc-cat-right {
        align-self: flex-start;
    }

    .cookie-banner-inner {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
    }

    .cb-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-center {
        padding: 24px;
    }

    .cc-category {
        padding: 18px;
    }
}

/* ——— DISCLAIMER PAGE SPECIFIC STYLES ——— */

/* Disclaimer Header Icon */
.disclaimer-header .page-icon,
.disclaimer-icon {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Key Disclaimers Section */
.key-disclaimers {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.kd-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.kd-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kd-label i {
    color: #dc2626;
}

.kd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kd-card {
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    border-left: 3px solid var(--gray-200);
}

.kd-card.red {
    border-left-color: #dc2626;
}

.kd-card.amber {
    border-left-color: #d97706;
}

.kd-card.blue {
    border-left-color: #2563eb;
}

.kd-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kd-card h4 i {
    font-size: 0.72rem;
}

.kd-card.red h4 i {
    color: #dc2626;
}

.kd-card.amber h4 i {
    color: #d97706;
}

.kd-card.blue h4 i {
    color: #2563eb;
}

.kd-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.55;
}

/* Highlight Box */
.highlight-box {
    padding: 28px 32px;
    border-radius: 12px;
    margin: 1.6em 0;
    text-align: center;
    border: 2px solid;
}

.highlight-box.red {
    background: #fef2f2;
    border-color: #fecaca;
}

.highlight-box.amber {
    background: #fffbeb;
    border-color: #fde68a;
}

.highlight-box .hl-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.highlight-box.red .hl-icon {
    background: #fee2e2;
    color: #dc2626;
}

.highlight-box.amber .hl-icon {
    background: #fef3c7;
    color: #d97706;
}

.highlight-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.highlight-box p {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Category Disclaimers */
.cat-disclaimers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 1.6em 0;
}

.cat-disclaimer {
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cat-disclaimer .cd-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cat-disclaimer .cd-icon.health {
    background: #f0fdfa;
    color: #0d9488;
}

.cat-disclaimer .cd-icon.tech {
    background: #eff6ff;
    color: #1d4ed8;
}

.cat-disclaimer .cd-icon.seo {
    background: #fff7ed;
    color: #c2410c;
}

.cat-disclaimer .cd-icon.hosting {
    background: #f5f3ff;
    color: #7c3aed;
}

.cat-disclaimer .cd-icon.ai {
    background: #fdf2f8;
    color: #be185d;
}

.cat-disclaimer .cd-icon.fin {
    background: #fefce8;
    color: #b45309;
}

.cat-disclaimer .cd-text h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.cat-disclaimer .cd-text p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Affiliate Disclosure Table */
.aff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.88rem;
}

.aff-table thead th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.aff-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: top;
    line-height: 1.55;
}

.aff-table tbody tr:hover {
    background: var(--gray-50);
}

.aff-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
}

.aff-badge.disclosed {
    background: #dcfce7;
    color: #16a34a;
}

.aff-badge.none {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Risks Grid */
.risks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1.6em 0;
}

.risk-item {
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.risk-item.red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.risk-item.amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.risk-item .ri-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.risk-item.red .ri-icon {
    background: #fee2e2;
    color: #dc2626;
}

.risk-item.amber .ri-icon {
    background: #fef3c7;
    color: #d97706;
}

.risk-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark);
}

.risk-item p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

/* Related Legal Links */
.related-legal {
    margin: 1.6em 0;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.legal-link:last-child {
    border-bottom: none;
}

.legal-link:hover {
    padding-left: 8px;
}

.legal-link .ll-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.legal-link .ll-text {
    flex: 1;
}

.legal-link .ll-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
}

.legal-link .ll-text p {
    font-size: 0.76rem;
    color: var(--gray-400);
    margin: 0;
}

.legal-link .ll-arrow {
    color: var(--gray-300);
    font-size: 0.72rem;
    transition: all 0.2s;
}

.legal-link:hover .ll-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* Teal Policy Box */
.policy-box.teal {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
}

.policy-box.teal .policy-box-icon {
    background: #ccfbf1;
    color: #0d9488;
}

/* Red Policy Box */
.policy-box.red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.policy-box.red .policy-box-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* ——— DISCLAIMER RESPONSIVE ——— */
@media (max-width: 1024px) {
    .kd-grid {
        grid-template-columns: 1fr;
    }
    
    .risks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 24px 20px;
    }
    
    .cat-disclaimer {
        flex-direction: column;
    }
}
