/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3.5s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-out;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(45, 90, 39, 0.4);
}

.back-to-top::before {
    content: '↑';
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

.logo-container {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    border-radius: 25px;
    padding: 50px 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease-out;
}

.logo-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: sweep 3s ease-in-out infinite;
}

/* Logo Animation */
.logo {
    position: relative;
    width: 140px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo-figure {
    position: relative;
    width: 60px;
    height: 70px;
    animation: bounceIn 2s ease-out;
    transition: all 0.3s ease-out;
}

.logo-figure:hover {
    transform: scale(1.1);
}

.left-figure {
    animation-delay: 0.3s;
}

.right-figure {
    animation-delay: 0.6s;
}

.head {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: headBob 3s ease-in-out infinite;
}

.body {
    width: 30px;
    height: 35px;
    background: white;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: bodySway 4s ease-in-out infinite;
}

.arm {
    width: 18px;
    height: 4px;
    background: white;
    position: absolute;
    top: 30px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.inner-arm {
    left: 18px;
    transform-origin: left center;
    animation: handshakeLeft 2.5s ease-in-out infinite;
}

.outer-arm {
    right: 18px;
    transform-origin: right center;
    animation: handshakeRight 2.5s ease-in-out infinite;
}

.right-figure .inner-arm {
    right: 18px;
    left: auto;
    animation: handshakeRight 2.5s ease-in-out infinite;
}

.right-figure .outer-arm {
    left: 18px;
    right: auto;
    animation: handshakeLeft 2.5s ease-in-out infinite;
}

.handshake {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 10px;
    z-index: 15;
}

.hand {
    width: 10px;
    height: 8px;
    background: white;
    position: absolute;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.left-hand {
    left: 0;
    animation: handshakeGrip 2.5s ease-in-out infinite;
}

.right-hand {
    right: 0;
    animation: handshakeGrip 2.5s ease-in-out infinite;
}

.app-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s ease-out 0.8s both;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
}

.app-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out 1s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1.5s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #2d5a27);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.policy-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d5a27;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    animation: slideInDown 1s ease-out 1.2s both;
}

.policy-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    border-radius: 3px;
    animation: expandLine 1.5s ease-out 1.5s both;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out 1.8s both;
}

/* Policy Sections */
.policy-section {
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border-left: 6px solid #2d5a27;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.02) 0%, rgba(74, 124, 89, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.policy-section:hover::before {
    opacity: 1;
}

.policy-section.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.policy-section:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-left-color: #4a7c59;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4a7c59;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.section-content {
    color: #555;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
}

.subsection {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #4a7c59;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 10px;
}

/* Lists */
.info-list, .permissions-list, .rights-list {
    list-style: none;
    padding-left: 0;
}

.info-list li, .permissions-list li, .rights-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    margin-bottom: 8px;
}

.info-list li::before, .permissions-list li::before, .rights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #4a7c59;
    font-weight: bold;
    font-size: 1.1rem;
}

.permissions-list li strong {
    color: #2d5a27;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #2d5a27;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }
    70% {
        transform: scale(0.95) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes headBob {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes bodySway {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(1deg);
    }
    75% {
        transform: translateX(-50%) rotate(-1deg);
    }
}

@keyframes handshakeLeft {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-15deg);
    }
}

@keyframes handshakeRight {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

@keyframes handshakeGrip {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.7;
    }
}

/* Hover Effects */
.policy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.subsection:hover {
    border-left-color: #2d5a27;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .policy-title {
        font-size: 2rem;
    }
    
    .logo {
        width: 100px;
        height: 70px;
    }
    
    .logo-figure {
        width: 40px;
        height: 50px;
    }
    
    .head {
        width: 16px;
        height: 16px;
    }
    
    .body {
        width: 20px;
        height: 25px;
    }
    
    .arm {
        width: 12px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        padding: 30px 15px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .app-subtitle {
        font-size: 1rem;
    }
    
    .policy-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}
