/**
 * Privacy Policy Template Styles
 * Theme: AIOU Student Guide
 * Version: 1.0.0
 */

/* ============================================
   Base & Reset
   ============================================ */
.privacy-policy-template {
    --pp-primary-dark: #0d1b2a;
    --pp-primary-light: #1a3a5c;
    --pp-accent: #1a6fc4;
    --pp-text-dark: #334155;
    --pp-text-light: #475569;
    --pp-border: #e2e8f0;
    --pp-bg: #f8fafc;
    --pp-white: #ffffff;
}

/* ============================================
   Header Section
   ============================================ */
.pp-header {
    background: linear-gradient(135deg, var(--pp-primary-dark), var(--pp-primary-light));
    color: var(--pp-white);
    padding: 60px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.pp-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    pointer-events: none;
}

.pp-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pp-header p {
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* ============================================
   Container
   ============================================ */
.pp-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: var(--pp-bg);
}

/* ============================================
   Last Updated Badge
   ============================================ */
.pp-updated {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pp-border);
}

/* ============================================
   Cards
   ============================================ */
.pp-card {
    background: var(--pp-white);
    border-radius: 20px;
    border: 1px solid var(--pp-border);
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.pp-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.pp-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--pp-primary-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-card h2 .num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e8f1fb, #dceaf5);
    color: var(--pp-accent);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--pp-text-light);
    margin-bottom: 14px;
}

.pp-card p:last-child {
    margin-bottom: 0;
}

/* Lists */
.pp-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 8px;
}

.pp-card ul li {
    font-size: 15px;
    color: var(--pp-text-light);
    padding: 6px 0 6px 26px;
    position: relative;
    line-height: 1.5;
}

.pp-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--pp-accent);
    font-weight: 700;
    font-size: 13px;
}

/* Nested or special list items */
.pp-card ul li strong {
    color: var(--pp-primary-dark);
    font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
.pp-contact {
    background: linear-gradient(135deg, var(--pp-primary-dark), #122b3f);
    border-radius: 20px;
    padding: 32px 36px;
    color: var(--pp-white);
    margin-top: 16px;
    transition: transform 0.2s ease;
}

.pp-contact:hover {
    transform: translateY(-2px);
}

.pp-contact h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.pp-contact p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 8px;
}

.pp-contact a {
    color: #7ab3f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pp-contact a:hover {
    color: var(--pp-white);
    text-decoration: underline;
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media (max-width: 768px) {
    .pp-container {
        padding: 32px 16px 60px;
    }

    .pp-card {
        padding: 24px 20px;
        margin-bottom: 20px;
    }

    .pp-card h2 {
        font-size: 17px;
        gap: 10px;
    }

    .pp-card h2 .num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .pp-card p,
    .pp-card ul li {
        font-size: 14px;
    }

    .pp-contact {
        padding: 24px 20px;
    }

    .pp-header {
        padding: 48px 20px 32px;
    }

    .pp-header h1 {
        font-size: 26px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .pp-card {
        padding: 20px 16px;
    }

    .pp-card h2 {
        font-size: 16px;
    }

    .pp-card ul li {
        padding: 5px 0 5px 24px;
    }

    .pp-contact p {
        font-size: 13px;
        word-break: break-word;
    }

    .pp-contact a {
        word-break: break-all;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .pp-header {
        background: var(--pp-primary-dark);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .pp-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .pp-contact {
        background: var(--pp-primary-dark);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .pp-contact a {
        text-decoration: none;
        color: var(--pp-white);
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .pp-card,
    .pp-contact {
        transition: none;
    }

    .pp-contact:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.pp-contact a:focus-visible,
.pp-card a:focus-visible {
    outline: 2px solid var(--pp-accent);
    outline-offset: 2px;
    border-radius: 4px;
}