/* ============================================
   APPLOT LTD – Privacy Policy Stylesheet
   Color Palette extracted from logo:
   - Primary Blue:    #1A5DB8
   - Deep Blue:       #16397E
   - Light Blue:      #4CA9F4
   - Accent Orange:   #F5901A
   - Warm Orange:     #F7B11A
   - Background:      #F4F7FB
   - White:           #FFFFFF
   - Text Dark:       #1E2A3A
   - Text Medium:     #4A5568
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F4F7FB;
    color: #1E2A3A;
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Header --- */
.pp-header {
    background: linear-gradient(135deg, #16397E 0%, #1A5DB8 50%, #2070CC 100%);
    padding: 48px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(76, 169, 244, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(245, 144, 26, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pp-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #F4F7FB;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

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

.header-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    object-fit: cover;
    background: #fff;
}

.header-app-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.header-app-name span {
    color: #F5A623;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin-top: 12px;
    position: relative;
    display: inline-block;
}

.header-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F5901A, #F7B11A);
    border-radius: 2px;
    margin: 14px auto 0;
}

.header-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 14px;
    font-weight: 400;
}

/* --- Main Content Container --- */
.pp-main {
    max-width: 780px;
    margin: -10px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

/* --- Section Card --- */
.pp-section {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(22, 57, 126, 0.06);
    border: 1px solid rgba(26, 93, 184, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pp-section:hover {
    box-shadow: 0 6px 24px rgba(22, 57, 126, 0.1);
    transform: translateY(-1px);
}

/* --- Intro Section --- */
.pp-intro {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F5FC 100%);
    border-left: 4px solid #1A5DB8;
    font-size: 1.02rem;
    color: #4A5568;
}

.pp-intro p {
    margin-bottom: 0;
}

/* --- Section Heading --- */
.pp-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #EDF2F9;
}

.pp-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, #1A5DB8, #2070CC);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(26, 93, 184, 0.25);
}

.pp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16397E;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

/* --- Section Body Content --- */
.pp-section-body {
    color: #4A5568;
    font-size: 0.98rem;
    line-height: 1.8;
}

.pp-section-body p {
    margin-bottom: 14px;
}

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

/* --- Lists --- */
.pp-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
}

.pp-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    border-bottom: 1px solid #F2F5FA;
    font-size: 0.96rem;
    color: #3D4A5C;
}

.pp-list li:last-child {
    border-bottom: none;
}

.pp-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1A5DB8, #4CA9F4);
    border-radius: 50%;
}

/* --- Negative/Do-Not Lists --- */
.pp-list-negative li::before {
    background: linear-gradient(135deg, #E53E3E, #FC8181);
}

/* --- Positive Lists --- */
.pp-list-positive li::before {
    background: linear-gradient(135deg, #38A169, #68D391);
}

/* --- Highlight Note --- */
.pp-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #FFF9F0, #FFF5E6);
    border-radius: 10px;
    border: 1px solid rgba(245, 144, 26, 0.2);
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 0.94rem;
    color: #744210;
}

.pp-note .note-icon {
    font-size: 1.1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.pp-note-blue {
    background: linear-gradient(135deg, #F0F7FF, #E6F0FC);
    border: 1px solid rgba(26, 93, 184, 0.15);
    color: #1E3A5F;
}

/* --- Contact Section --- */
.pp-contact {
    background: linear-gradient(135deg, #16397E 0%, #1A5DB8 100%);
    border: none;
    text-align: center;
    padding: 36px;
}

.pp-contact .pp-section-title {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.pp-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.pp-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.pp-contact-email:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pp-contact-email .email-icon {
    font-size: 1.2rem;
}

/* --- Footer --- */
.pp-footer {
    background: #0F2D5E;
    padding: 30px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    line-height: 1.8;
}

.pp-footer strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.pp-footer a {
    color: #F5A623;
    text-decoration: none;
    transition: color 0.2s;
}

.pp-footer a:hover {
    color: #F7C96A;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    margin: 12px auto;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1A5DB8, #2070CC);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(26, 93, 184, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #16397E, #1A5DB8);
    box-shadow: 0 6px 24px rgba(26, 93, 184, 0.45);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* --- Fade-in Animation --- */
.pp-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.pp-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .pp-header {
        padding: 36px 20px 48px;
    }

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

    .header-app-name {
        font-size: 1.35rem;
    }

    .header-title {
        font-size: 1.7rem;
    }

    .pp-main {
        padding: 0 14px 48px;
    }

    .pp-section {
        padding: 24px 22px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .pp-section-heading {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .pp-section-number {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

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

    .pp-section-body {
        font-size: 0.94rem;
    }

    .pp-contact {
        padding: 28px 22px;
    }

    .pp-contact-email {
        padding: 12px 22px;
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    .pp-header {
        padding: 30px 16px 42px;
    }

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

    .header-app-name {
        font-size: 1.15rem;
    }

    .header-title {
        font-size: 1.45rem;
    }

    .header-subtitle {
        font-size: 0.88rem;
    }

    .pp-main {
        padding: 0 10px 40px;
    }

    .pp-section {
        padding: 20px 18px;
    }

    .pp-list li {
        padding: 7px 0 7px 24px;
        font-size: 0.92rem;
    }

    .pp-note {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
