/* ============================================
   BUILDIFI LIMITED — Privacy Policy Stylesheet
   Color Palette Extracted from Logo:
   - Primary Blue:    #1A73E8
   - Deep Blue:       #0B5FD9
   - Light Blue:      #2A8BFF
   - Navy Dark:       #081534
   - Near Black:      #10182E
   - Text Gray:       #5E5E5E
   - Light BG:        #F4F7FC
   - White:           #FFFFFF
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F4F7FC;
    color: #2C3345;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Header --- */
.pp-header {
    background: linear-gradient(135deg, #081534 0%, #0B2A5E 50%, #1A73E8 100%);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(42, 139, 255, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pp-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.pp-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.pp-header h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pp-header h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.pp-header .effective-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Decorative bottom wave */
.pp-header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 2;
}

.pp-header-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Main Content Area --- */
.pp-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Intro paragraph */
.pp-intro {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 12px rgba(8, 21, 52, 0.05);
    border-left: 4px solid #1A73E8;
    font-size: 1rem;
    color: #3A4155;
    line-height: 1.8;
}

/* --- Policy Section Card --- */
.pp-section {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(8, 21, 52, 0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pp-section:hover {
    box-shadow: 0 6px 24px rgba(8, 21, 52, 0.09);
    transform: translateY(-1px);
}

.pp-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1A73E8, #2A8BFF);
    color: #FFFFFF;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.pp-section h3 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #081534;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.pp-section p {
    font-size: 0.975rem;
    color: #3A4155;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

.pp-section p:last-child {
    margin-bottom: 0;
}

/* Bullet List */
.pp-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.85rem;
}

.pp-list li {
    position: relative;
    padding-left: 1.65rem;
    font-size: 0.975rem;
    color: #3A4155;
    line-height: 1.8;
    margin-bottom: 0.35rem;
}

.pp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A73E8, #2A8BFF);
}

/* Emphasis styling for DO NOT items */
.pp-emphasis {
    font-weight: 600;
    color: #081534;
}

/* Agreement note */
.pp-agreement {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-top: 1.75rem;
    box-shadow: 0 2px 12px rgba(8, 21, 52, 0.05);
    text-align: center;
    border-top: 3px solid #1A73E8;
}

.pp-agreement p {
    font-size: 1rem;
    font-weight: 600;
    color: #081534;
    line-height: 1.7;
}

/* --- Divider --- */
.pp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.15), transparent);
    margin: 0.5rem 0;
    border: none;
}

/* --- Footer --- */
.pp-footer {
    background: #081534;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2.25rem 1.5rem;
    margin-top: 1rem;
}

.pp-footer-inner {
    max-width: 780px;
    margin: 0 auto;
}

.pp-footer .footer-company {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.pp-footer .footer-email a {
    color: #5CA0F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pp-footer .footer-email a:hover {
    color: #2A8BFF;
    text-decoration: underline;
}

.pp-footer .footer-email {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.pp-footer .footer-updated {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.4rem;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1A73E8, #0B5FD9);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2A8BFF, #1A73E8);
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.45);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pp-header {
        padding: 2.25rem 1.25rem 2rem;
    }

    .pp-logo {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .pp-header h1 {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .pp-header h2 {
        font-size: 1.55rem;
    }

    .pp-main {
        padding: 1.75rem 1rem 2.5rem;
    }

    .pp-intro,
    .pp-section,
    .pp-agreement {
        padding: 1.5rem 1.35rem;
        border-radius: 12px;
    }

    .pp-section h3 {
        font-size: 1.1rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .pp-header {
        padding: 2rem 1rem 1.75rem;
    }

    .pp-logo {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .pp-header h1 {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .pp-header h2 {
        font-size: 1.35rem;
    }

    .pp-main {
        padding: 1.25rem 0.85rem 2rem;
    }

    .pp-intro,
    .pp-section,
    .pp-agreement {
        padding: 1.25rem 1.1rem;
    }

    .pp-section h3 {
        font-size: 1.02rem;
    }

    .pp-section p,
    .pp-list li {
        font-size: 0.935rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-section,
.pp-intro,
.pp-agreement {
    animation: fadeInUp 0.5s ease both;
}

.pp-section:nth-child(2)  { animation-delay: 0.04s; }
.pp-section:nth-child(3)  { animation-delay: 0.08s; }
.pp-section:nth-child(4)  { animation-delay: 0.12s; }
.pp-section:nth-child(5)  { animation-delay: 0.16s; }
.pp-section:nth-child(6)  { animation-delay: 0.20s; }
.pp-section:nth-child(7)  { animation-delay: 0.24s; }
.pp-section:nth-child(8)  { animation-delay: 0.28s; }
.pp-section:nth-child(9)  { animation-delay: 0.32s; }
.pp-section:nth-child(10) { animation-delay: 0.36s; }
.pp-section:nth-child(11) { animation-delay: 0.40s; }
