/**
 * Privacy Policy Page Styles — Figma-exact two-column layout
 * Sticky sidebar TOC, long-form content, mobile bottom sheet
 */

/* ==========================================
   SECTION 1 — MAIN CONTAINER & TITLE
   ========================================== */

.pp-main {
    padding: 96px 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.pp-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pp-title {
    font-family: 'Canela Text', Georgia, serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 73px;
    color: #2D1F1F;
    text-transform: capitalize;
    margin: 0;
}

.pp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #666666;
    margin: 0;
}

/* ==========================================
   SECTION 2 — TWO-COLUMN LAYOUT
   ========================================== */

.pp-columns {
    display: flex;
    gap: 48px;
    width: 100%;
}

.pp-sidebar {
    width: 431px;
    flex-shrink: 0;
}

.pp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}

/* ==========================================
   SECTION 3 — SIDEBAR NAVIGATION
   ========================================== */

.pp-sidebar-nav {
    border: 1px solid #E0DCD3;
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.pp-sidebar-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 48px;
    border-bottom: 1px solid #E0DCD3;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(45, 31, 31, 0.7);
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    user-select: none;
}

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

.pp-sidebar-item:hover {
    color: #2D1F1F;
}

.pp-sidebar-item.active {
    font-weight: 600;
    color: #2D1F1F;
    border-bottom: 2px solid #2D1F1F;
}

.pp-sidebar-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ==========================================
   SECTION 4 — INTRO TEXT (before sections)
   ========================================== */

.pp-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pp-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #2D1F1F;
    margin: 0;
}

/* ==========================================
   SECTION 5 — CONTENT SECTIONS
   ========================================== */

.pp-sections {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.pp-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pp-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 39px;
    color: #2D1F1F;
    text-transform: capitalize;
    margin: 0;
}

.pp-section-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pp-section-body p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #2D1F1F;
    margin: 0;
}

/* ==========================================
   SECTION 6 — SUB-SECTIONS
   ========================================== */

.pp-sub-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #2D1F1F;
    margin: 0;
}

/* ==========================================
   SECTION 7 — BULLET LISTS
   ========================================== */

.pp-section-body ul {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #2D1F1F;
    margin: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-section-body ul li {
    padding-left: 4px;
}

/* ==========================================
   SECTION 8 — TWO-CARD GRID
   ========================================== */

.pp-card-grid {
    background: #E0DCD3;
    border-radius: 24px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    gap: 1px;
    overflow: hidden;
}

.pp-card {
    background: #fff;
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-card:first-child {
    border-radius: 23px 0 0 23px;
}

.pp-card:last-child {
    border-radius: 0 23px 23px 0;
}

.pp-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #2D1F1F;
    margin: 0;
}

.pp-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #2D1F1F;
    margin: 0;
}

/* ==========================================
   SECTION 9 — MOBILE BOTTOM BAR
   ========================================== */

.pp-mobile-bar {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 100;
    border: 1px solid #E0DCD3;
    border-radius: 8px;
    background: #fff;
    padding: 12px 16px;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pp-mobile-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2D1F1F;
}

.pp-mobile-bar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pp-mobile-bar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(45, 31, 31, 0.1);
    border-radius: 0 0 7px 7px;
    overflow: hidden;
}

.pp-mobile-bar-progress-fill {
    height: 100%;
    background: #2D1F1F;
    width: 0%;
    transition: width 0.3s ease;
}

/* ==========================================
   SECTION 10 — MOBILE OVERLAY
   ========================================== */

.pp-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pp-mobile-overlay.active {
    display: flex;
}

.pp-mobile-overlay-card {
    background: #fff;
    border: 1px solid #E0DCD3;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
}

.pp-mobile-overlay-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    min-height: 48px;
    border-bottom: 1px solid #E0DCD3;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(45, 31, 31, 0.7);
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pp-mobile-overlay-item:last-child {
    border-bottom: none;
}

.pp-mobile-overlay-item.active {
    font-weight: 600;
    color: #2D1F1F;
}

.pp-mobile-overlay-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSIVE — TABLET (768px – 1023px)
   ========================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .pp-main {
        padding: 72px 48px;
    }

    .pp-sidebar {
        width: 280px;
    }

    .pp-sidebar-item {
        font-size: 14px;
        padding: 10px 16px;
        height: 44px;
    }

    .pp-section-title {
        font-size: 26px;
        line-height: 32px;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ========================================== */

@media (max-width: 767px) {
    .pp-main {
        padding: 48px 24px 24px;
    }

    .pp-title {
        font-size: 32px;
        line-height: 36px;
    }

    .pp-subtitle {
        font-size: 14px;
        line-height: 24px;
    }

    .pp-columns {
        flex-direction: column;
        gap: 24px;
    }

    .pp-sidebar {
        display: none;
    }

    .pp-mobile-bar {
        display: flex;
    }

    .pp-intro p {
        font-size: 14px;
        line-height: 24px;
    }

    .pp-section-title {
        font-size: 20px;
        line-height: 24px;
    }

    .pp-section-body p {
        font-size: 14px;
        line-height: 24px;
    }

    .pp-section-body ul {
        font-size: 14px;
        line-height: 24px;
    }

    .pp-sub-title {
        font-size: 16px;
        line-height: 20px;
    }

    .pp-card-grid {
        flex-direction: column;
        border-radius: 16px;
    }

    .pp-card {
        padding: 20px;
    }

    .pp-card:first-child {
        border-radius: 15px 15px 0 0;
    }

    .pp-card:last-child {
        border-radius: 0 0 15px 15px;
    }

    .pp-card-title {
        font-size: 16px;
        line-height: 20px;
    }

    .pp-card p {
        font-size: 14px;
        line-height: 24px;
    }
}
