/* ===========================================
   Vibe In Pocket - Legal Pages Styles
   Privacy Policy & Terms of Service
   =========================================== */

/* ============ Fonts ============ */
/* Playfair Display - Elegant serif for titles */
/* Cormorant Garamond - Beautiful serif for artistic text */
/* Outfit - Clean sans-serif for body text */

/* ============ Page Background ============ */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1222 0%, #1a1f35 50%, #0f172a 100%);
    position: relative;
    overflow-x: hidden;
}

.legal-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Ocean Waves */
.legal-bg .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C57.71,118.92,156.64,83.05,321.39,56.44Z' fill='rgba(6, 182, 212, 0.05)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1200px 100%;
    animation: wave 25s linear infinite;
    opacity: 0.6;
}

.legal-bg .wave-2 {
    height: 180px;
    animation: wave 20s linear infinite reverse;
    opacity: 0.4;
    bottom: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C57.71,118.92,156.64,83.05,321.39,56.44Z' fill='rgba(139, 92, 246, 0.05)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1200px 100%;
}

.legal-bg .wave-3 {
    height: 160px;
    animation: wave 30s linear infinite;
    opacity: 0.3;
    bottom: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C57.71,118.92,156.64,83.05,321.39,56.44Z' fill='rgba(244, 114, 182, 0.05)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1200px 100%;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating Bubbles */
.floating-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(6, 182, 212, 0.1));
    animation: float-bubble 20s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 60px;
    height: 60px;
    left: 10%;
    bottom: -60px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bubble:nth-child(2) {
    width: 40px;
    height: 40px;
    left: 30%;
    bottom: -40px;
    animation-delay: 3s;
    animation-duration: 20s;
}

.bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 50%;
    bottom: -80px;
    animation-delay: 6s;
    animation-duration: 30s;
}

.bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 70%;
    bottom: -30px;
    animation-delay: 9s;
    animation-duration: 22s;
}

.bubble:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 85%;
    bottom: -50px;
    animation-delay: 12s;
    animation-duration: 28s;
}

@keyframes float-bubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* ============ Navigation ============ */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo .logo-icon {
    font-size: 1.5rem;
}

.nav-logo .logo-accent {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #06b6d4;
}

/* ============ Main Container ============ */
.legal-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 1.5rem 3rem;
}

/* ============ Legal Card ============ */
.legal-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    animation: card-enter 0.6s ease-out;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Header ============ */
.legal-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, transparent 100%);
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    border-radius: 2px;
}

.decoration-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.legal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.legal-date {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* ============ Content ============ */
.legal-content {
    padding: 2rem 2.5rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

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

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section li {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #94a3b8;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-section li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-size: 0.75rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 2rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 16px;
    margin-top: 2rem;
}

.contact-section h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-card a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #22d3ee;
}

/* ============ Artistic Separator ============ */
.artistic-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    margin: 0 2rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.separator-wave {
    width: 100px;
    height: 20px;
}

.separator-wave svg {
    width: 100%;
    height: 100%;
}

/* ============ Artistic Footer ============ */
.artistic-footer {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.1) 100%);
}

.footer-content {
    position: relative;
}

.artistic-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.artistic-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.artistic-emphasis {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #f472b6, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    margin: 0.5rem 0;
}

.artistic-signature {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    position: relative;
}

.artistic-signature::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    border-radius: 3px;
}

.footer-otter {
    font-size: 3rem;
    margin-top: 1.5rem;
    animation: otter-float 4s ease-in-out infinite;
}

@keyframes otter-float {
    0%, 100% { 
        transform: translateY(0) rotate(-5deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(5deg); 
    }
}

/* ============ Back Link ============ */
.legal-back {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
    transform: translateX(-5px);
}

.back-link span {
    transition: transform 0.3s ease;
}

.back-link:hover span {
    transform: translateX(-3px);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .legal-nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .legal-container {
        padding: 80px 1rem 2rem;
    }
    
    .legal-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1.1rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .artistic-separator {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .artistic-footer {
        padding: 2rem 1.5rem;
    }
    
    .artistic-emphasis {
        font-size: 1.5rem;
    }
    
    .artistic-signature {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-text {
        display: none;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .legal-section li {
        padding-left: 1.5rem;
    }
    
    .contact-card {
        padding: 0.75rem 1.5rem;
    }
    
    .contact-card a {
        font-size: 0.95rem;
    }
}

