:root {
    --stroke-duration: 1.5s;
    --fill-duration: 0.8s;
    --transition-duration: 0.8s;
    --morph-duration: 1.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Screen */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.loader-screen.background-fade {
    opacity: 0;
}

.loader-screen.hide {
    display: none;
}

.svg-wrapper {
    width: 400px;
    height: auto;
    position: relative;
    transition: all var(--morph-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-wrapper.morphing {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
}

svg {
    width: 100%;
}

svg text {
    stroke: white;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    fill: transparent;
    animation: drawStroke var(--stroke-duration) ease-out forwards;
    transition: all var(--morph-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-text {
    stroke: transparent;
    fill: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    animation: fillText var(--fill-duration) ease-in-out var(--stroke-duration) forwards;
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 600;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillText {
    0% {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
    }
}

svg text.morphing {
    fill: white;
    stroke: transparent;
}

svg text.fade-to-black {
    fill: black;
    stroke: transparent;
}

/* Main Content */
#main-content {
    opacity: 0;
    transition: opacity var(--transition-duration) ease-in-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content.show {
    opacity: 1;
}

body.loaded {
    overflow-y: auto;
}

#policy-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: black;
    margin: 0 0 15px 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in;
    position: relative;
}

#policy-title.show {
    opacity: 1;
}

header {
    background-color: #f4f4f4;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid black;
}

main {
    flex: 1;
    padding: 40px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-y: visible;
}

footer {
    background-color: #f4f4f4;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid black;
    margin-top: auto;
}

h1, h2 {
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: black;
    margin: 0 0 15px 0;
    text-align: center;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 2rem;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.popia-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid black;
    transition: all 0.3s ease;
    margin: 10px 0 20px 0;
}

.popia-button:hover {
    background-color: white;
    color: black;
}

.menu-bar {
    width: 100%;
    height: 70px;
    background-color: white;
    border-bottom: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-placeholder {
    width: 200px;
    height: 40px;
    background-color: #f0f0f0;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.content-box {
    background-color: white;
    border: 1px solid black;
    width: 450px;
    height: 120px;
    margin: 15px auto;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
}

.content-box p {
    margin: 3px 0;
    font-size: 12px;
    color: black;
    line-height: 1.3;
}

.footer-bar {
    width: 100%;
    height: 70px;
    background-color: white;
    border-top: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: black;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: black;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .menu-bar {
        padding: 0 10px;
    }
    
    .logo-placeholder {
        width: 120px;
        height: 35px;
        font-size: 12px;
    }
    
    #policy-title {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    main {
        padding: 30px 15px 60px 15px;
    }
    
    .popia-button {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .menu-bar {
        padding: 0 8px;
    }
    
    .logo-placeholder {
        width: 90px;
        height: 30px;
        font-size: 10px;
    }
    
    #policy-title {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    h3 {
        font-size: 0.95rem;
    }
    
    main {
        padding: 20px 10px 50px 10px;
    }
    
    .popia-button {
        font-size: 11px;
        padding: 7px 14px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-link {
        font-size: 11px;
    }
}
