/**
 * Privacy Policy Page Styles
 * SkoolBeez - Matching Login Theme
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --pp-bg-dark: #0d1b2a;
    --pp-bg-mid: #1b263b;
    --pp-bg-light: #415a77;
    --pp-accent: #ffed00;
    --pp-accent-alt: #ffc300;
    --pp-text: #ffffff;
    --pp-text-muted: rgba(255, 255, 255, 0.6);
    --pp-text-dim: rgba(255, 255, 255, 0.4);
    --pp-border: rgba(255, 255, 255, 0.1);
    --pp-card-bg: rgba(255, 255, 255, 0.03);
}

/* ========================================
   Page Layout
   ======================================== */
.privacy-page {
    min-height: 100vh;
    margin-top: -80px;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--pp-bg-dark) 0%, var(--pp-bg-mid) 50%, var(--pp-bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.privacy-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.privacy-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(79, 172, 254, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   Honeycomb Pattern Background
   ======================================== */
.honeycomb-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23ffed00' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: honeycombFloat 20s ease-in-out infinite;
}

@keyframes honeycombFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* ========================================
   Flying Bees Decoration
   ======================================== */
.flying-bee {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.15;
    animation: flyAround 15s linear infinite;
    z-index: 1;
}

.flying-bee:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.flying-bee:nth-child(2) {
    top: 40%;
    right: 12%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.flying-bee:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.flying-bee:nth-child(4) {
    top: 70%;
    right: 8%;
    animation-delay: -7s;
    animation-duration: 25s;
}

@keyframes flyAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(10deg); }
    50% { transform: translate(100px, 20px) rotate(-5deg); }
    75% { transform: translate(50px, 50px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ========================================
   Main Container
   ======================================== */
.privacy-container {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 80px);
    padding: 3rem 1rem;
}

/* ========================================
   Page Header
   ======================================== */
.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.privacy-header .header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, var(--pp-accent) 0%, var(--pp-accent-alt) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--pp-bg-mid);
    box-shadow: 0 15px 40px -10px rgba(255, 237, 0, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px -10px rgba(255, 237, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 20px 50px -10px rgba(255, 237, 0, 0.4); }
}

.privacy-header h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--pp-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.privacy-header .subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--pp-text-muted);
    font-weight: 600;
}

.privacy-header .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.2);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--pp-accent);
    font-weight: 600;
}

/* ========================================
   Language Switcher
   ======================================== */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lang-btn {
    padding: 0.75rem 1.5rem;
    background: var(--pp-card-bg);
    border: 2px solid var(--pp-border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pp-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--pp-text);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--pp-accent) 0%, var(--pp-accent-alt) 100%);
    border-color: var(--pp-accent);
    color: var(--pp-bg-mid);
}

.lang-btn .flag {
    font-size: 1.2rem;
}

/* ========================================
   Content Card
   ======================================== */
.privacy-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--pp-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--pp-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 237, 0, 0.05);
}

@media (max-width: 768px) {
    .privacy-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

/* ========================================
   Content Sections
   ======================================== */
.policy-content {
    display: none;
}

.policy-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--pp-border);
}

.policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pp-accent) 0%, var(--pp-accent-alt) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--pp-bg-mid);
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--pp-text);
    margin: 0;
    padding-top: 0.25rem;
    line-height: 1.3;
}

/* ========================================
   Typography
   ======================================== */
.policy-section p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pp-text-muted);
    margin-bottom: 1rem;
}

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

.policy-section strong,
.policy-section .highlight-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--pp-text);
}

/* ========================================
   Lists
   ======================================== */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--pp-text-muted);
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    background: var(--pp-accent);
    border-radius: 50%;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

/* Sub-labels in lists */
.sub-label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pp-accent);
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sub-label:first-child {
    margin-top: 0;
}

/* ========================================
   Contact/Address Box
   ======================================== */
.contact-box {
    background: rgba(255, 237, 0, 0.05);
    border: 1px solid rgba(255, 237, 0, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-box .company-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--pp-accent);
    margin-bottom: 0.75rem;
}

.contact-box address {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--pp-text-muted);
    margin: 0;
}

.contact-box a {
    color: var(--pp-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-box a:hover {
    color: var(--pp-accent-alt);
    text-decoration: underline;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-row i {
    color: var(--pp-accent);
    font-size: 1rem;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem auto 0;
    padding: 0.875rem 1.5rem;
    background: var(--pp-card-bg);
    border: 2px solid var(--pp-border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pp-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: rgba(255, 237, 0, 0.1);
    border-color: var(--pp-accent);
    color: var(--pp-accent);
    transform: translateY(-2px);
}

/* ========================================
   Footer Note
   ======================================== */
.privacy-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pp-border);
}

.privacy-footer p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--pp-text-dim);
    margin: 0;
}

.privacy-footer .logo {
    height: 30px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    .privacy-header h1 {
        font-size: 1.875rem;
    }
    
    .privacy-header .subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .privacy-page {
        background: white;
        margin-top: 0;
        padding-top: 0;
    }
    
    .honeycomb-pattern,
    .flying-bee,
    .language-switcher,
    .back-to-top {
        display: none !important;
    }
    
    .privacy-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .policy-content {
        display: block !important;
    }
    
    .section-number {
        background: #ffed00;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .section-title,
    .policy-section p,
    .policy-list li {
        color: #333 !important;
    }
}
