/* ============================================================
   MINIETECH PREMIUM PRIVACY POLICY STYLE SYSTEM
   ============================================================ */

.privacy-main-wrap {
    background-color: var(--surface, #f9f9fb);
    padding: 2.5rem 0 5rem;
}

/* Breadcrumbs */
.post-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    margin-bottom: 2rem;
    font-weight: 500;
}

.post-breadcrumbs a {
    color: var(--on-surface-variant, #414755);
    text-decoration: none;
    transition: color 0.25s ease;
}

.post-breadcrumbs a:hover {
    color: var(--primary, #0058bc);
}

.post-breadcrumbs .breadcrumb-separator {
    color: var(--outline-variant, #c1c6d7);
    font-weight: 400;
}

.post-breadcrumbs .breadcrumb-current {
    color: var(--on-surface, #1a1c1d);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(300px, 60vw);
}

/* Hero Header Section */
.privacy-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 88, 188, 0.04) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid var(--surface-variant, #e2e2e4);
    border-radius: var(--radius-xl, 0.75rem);
    padding: 3.5rem 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.privacy-hero-bg-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 88, 188, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    right: -60px;
    top: -60px;
    pointer-events: none;
    z-index: 1;
}

.privacy-hero-content {
    position: relative;
    z-index: 2;
}

.privacy-hero-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary, #0058bc);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.privacy-hero-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 850;
    color: var(--on-surface, #1a1c1d);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.privacy-hero-subtitle {
    font-size: 1.1rem;
    color: var(--on-surface-variant, #414755);
    line-height: 1.6;
    max-width: 750px;
    margin-bottom: 1.5rem;
}

.privacy-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--on-surface-variant, #414755);
    font-weight: 600;
}

.privacy-hero-meta .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary, #0058bc);
}

/* Two Column Layout Grid */
.privacy-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sticky Sidebar Table of Contents */
.privacy-sidebar-col {
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* Floats below sticky main header */
    z-index: 9;
}

.privacy-toc-card {
    background-color: var(--surface-container-lowest, #ffffff);
    border: 1px solid var(--surface-variant, #e2e2e4);
    border-radius: var(--radius-xl, 0.75rem);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.privacy-toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Figtree', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-surface, #1a1c1d);
    border-bottom: 1px solid var(--surface-variant, #e2e2e4);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.privacy-toc-title .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary, #0058bc);
}

.privacy-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.privacy-toc-list li {
    margin: 0;
    padding: 0;
}

.privacy-toc-list a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant, #414755);
    border-radius: var(--radius-lg, 0.5rem);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.privacy-toc-list a:hover {
    background-color: var(--surface-container-low, #f3f3f5);
    color: var(--primary, #0058bc);
}

.privacy-toc-list a.active {
    background-color: rgba(0, 88, 188, 0.05);
    color: var(--primary, #0058bc);
    font-weight: 650;
    border-left: 2px solid var(--primary, #0058bc);
}

/* Right Content Column Card */
.privacy-content-card {
    background-color: var(--surface-container-lowest, #ffffff);
    border: 1px solid var(--surface-variant, #e2e2e4);
    border-radius: var(--radius-xl, 0.75rem);
    padding: 3.5rem 3.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.015);
}

/* Typography styles inside content card */
.entry-content-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--on-surface-variant, #414755);
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.entry-content-body a {
    word-break: break-all;
}

.entry-content-body h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--on-surface, #1a1c1d);
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-variant, #e2e2e4);
    scroll-margin-top: 110px; /* Offsets scroll jump underneath sticky header */
}

/* Styles first h2 matching section spacing */
.entry-content-body > *:first-child,
.entry-content-body h2:first-of-type {
    margin-top: 0;
}

.entry-content-body p {
    margin-bottom: 1.5rem;
}

.entry-content-body ul,
.entry-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content-body li {
    margin-bottom: 0.5rem;
}

.entry-content-body blockquote {
    background-color: var(--surface-container-low, #f3f3f5);
    border-left: 4px solid var(--primary, #0058bc);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-lg, 0.5rem) var(--radius-lg, 0.5rem) 0;
    font-style: italic;
}

.entry-content-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Style anchors inside policy */
.entry-content-body a {
    color: var(--primary, #0058bc);
    font-weight: 600;
    border-bottom: 1px dotted var(--primary, #0058bc);
    transition: all 0.2s ease;
}

.entry-content-body a:hover {
    color: var(--primary-container, #0070eb);
    border-bottom-style: solid;
}

/* ============================================================
   RESPONSIVE DESIGN & MOBILE BAR STYLING
   ============================================================ */

@media (max-width: 1024px) {
    .privacy-main-wrap {
        padding: 1.5rem 0 3.5rem;
    }

    .privacy-hero {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
    }

    .privacy-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Change sidebar to horizontal sticky slider bar below header */
    .privacy-sidebar-col {
        position: -webkit-sticky;
        position: sticky;
        top: 82px; /* Floats with a premium gap below the sticky header */
        margin: 0 0 1.5rem; /* Stays aligned with the container layout */
        z-index: 998; /* Under global popup overlays but above content */
        max-width: 100%;
        overflow: hidden;
    }

    .privacy-toc-card {
        border-radius: var(--radius-xl, 0.75rem); /* Rounded card shape */
        border: 1px solid var(--surface-variant, #e2e2e4);
        padding: 0.6rem 1rem;
        background-color: var(--surface-container-lowest, #ffffff);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .privacy-toc-title {
        display: none; /* Hide 'On This Page' title on mobile */
    }

    .privacy-toc-list {
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden; /* Prevent vertical overflow/scrollbar issues */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        padding: 0.4rem 0; /* Extra vertical padding to prevent top/bottom clipping */
    }

    .privacy-toc-list::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .privacy-toc-list li {
        scroll-snap-align: start;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
    }

    .privacy-toc-list a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        line-height: 1; /* Explicit line-height to center text */
        padding: 0.55rem 0.95rem; /* Uniform button padding */
        border-left: none;
        border-bottom: none;
        background-color: var(--surface-container-low, #f3f3f5);
        border-radius: var(--radius-full, 9999px);
        height: auto;
        box-sizing: border-box;
    }

    .privacy-toc-list a.active {
        background-color: var(--primary, #0058bc);
        color: var(--on-primary, #ffffff);
    }

    .privacy-content-card {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .privacy-hero {
        padding: 2rem 1.25rem;
    }
    .privacy-content-card {
        padding: 1.5rem;
    }
    .entry-content-body {
        font-size: 1rem;
    }
    .entry-content-body h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .privacy-main-wrap .container {
        padding: 0 0.75rem;
    }
    .privacy-content-card {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-lg, 0.5rem);
    }
    .privacy-hero {
        padding: 1.75rem 1rem;
        border-radius: var(--radius-lg, 0.5rem);
    }
    .privacy-sidebar-col {
        margin: 0 0 1rem;
        top: 80px; /* Adjust top gap slightly on smaller viewports */
    }
    .privacy-toc-card {
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-lg, 0.5rem);
    }
}

