/**
 * YessFish Privacy & Terms System CSS
 * 🎨 Complete Styling for Legal Pages & Components
 * 📱 Responsive & Modern Design
 */

/* ==============================================
   PRIVACY & TERMS PAGE STYLING
   ============================================== */

.privacy-page, .terms-page {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.legal-container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

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

.legal-header {
    background: linear-gradient(45deg, #7C8DB5, #5A6B8C);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::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: float 6s ease-in-out infinite;
}

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

.legal-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.legal-subtitle {
    font-size: 1.1rem;
    margin: 10px 0 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.legal-meta {
    background: #e8f0fe;
    padding: 25px;
    border-left: 5px solid #7C8DB5;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-icon {
    font-size: 1.2rem;
    color: #7C8DB5;
}

.legal-content {
    padding: 40px;
}

.legal-section {
    margin: 40px 0;
    padding: 30px;
    background: #fafafa;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 141, 181, 0.15);
    border-color: #7C8DB5;
}

.section-title {
    color: #7C8DB5;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-left: 4px solid #7C8DB5;
    padding-left: 15px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(45deg, #7C8DB5, #5A6B8C);
    border-radius: 2px;
}

.legal-list {
    padding-left: 25px;
    margin: 15px 0;
}

.legal-list li {
    margin: 12px 0;
    position: relative;
    padding-left: 10px;
}

.legal-list li::before {
    content: '✓';
    position: absolute;
    left: -15px;
    color: #28a745;
    font-weight: bold;
}

.highlight-box {
    background: linear-gradient(45deg, #e8f0fe, #f1f3f8);
    border: 2px solid #7C8DB5;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #7C8DB5, #5A6B8C);
}

.contact-box {
    background: linear-gradient(45deg, #7C8DB5, #5A6B8C);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(124, 141, 181, 0.3);
}

.contact-box h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* ==============================================
   NAVIGATION & CONTROLS
   ============================================== */

.legal-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin: 20px 0;
}

.nav-controls {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.back-btn, .print-btn, .share-btn {
    background: linear-gradient(45deg, #7C8DB5, #5A6B8C);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover, .print-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 141, 181, 0.4);
    color: white;
    text-decoration: none;
}

.print-btn {
    background: rgba(124, 141, 181, 0.1);
    color: #7C8DB5;
    border: 2px solid #7C8DB5;
}

.print-btn:hover {
    background: #7C8DB5;
    color: white;
}

/* ==============================================
   PRIVACY NOTICE & CONSENT COMPONENTS
   ============================================== */

.privacy-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(124, 141, 181, 0.98);
    backdrop-filter: blur(15px);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(241, 243, 248, 0.3);
    z-index: 10000;
    animation: slideInUp 0.6s ease-out;
}

.privacy-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.privacy-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
}

.privacy-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.privacy-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.privacy-content {
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.privacy-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy-btn-primary {
    background: #F1F3F8;
    color: #7C8DB5;
}

.privacy-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.privacy-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.privacy-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
}

/* ==============================================
   GDPR COMPLIANCE INDICATORS
   ============================================== */

.gdpr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.compliance-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #28a745;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.compliance-item:hover {
    transform: translateY(-3px);
}

.compliance-icon {
    font-size: 1.5rem;
    color: #28a745;
    margin-bottom: 10px;
}

.compliance-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.compliance-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .legal-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .legal-header {
        padding: 30px 20px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 25px 20px;
    }
    
    .legal-section {
        padding: 20px;
    }
    
    .nav-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .privacy-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }
    
    .privacy-actions {
        flex-direction: column;
    }
    
    .privacy-btn {
        min-width: auto;
    }
    
    .legal-meta {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 1.7rem;
    }
    
    .legal-content {
        padding: 20px 15px;
    }
    
    .privacy-notice {
        padding: 15px;
    }
    
    .privacy-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
    .back-btn, .print-btn, .share-btn,
    .privacy-notice, .legal-nav {
        display: none !important;
    }
    
    .legal-container {
        box-shadow: none;
        margin: 0;
        background: white;
    }
    
    .legal-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .legal-section {
        break-inside: avoid;
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .contact-box {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* ==============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================== */

.legal-content {
    scroll-behavior: smooth;
}

.legal-section:focus-within {
    outline: 2px solid #7C8DB5;
    outline-offset: 2px;
}

.privacy-btn:focus,
.back-btn:focus,
.print-btn:focus {
    outline: 3px solid rgba(124, 141, 181, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .legal-section {
        border: 2px solid #333;
    }
    
    .highlight-box {
        border: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .legal-container,
    .privacy-notice,
    .legal-section {
        animation: none;
    }
    
    .back-btn:hover,
    .print-btn:hover,
    .legal-section:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .legal-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .legal-section {
        background: #4a5568;
        border-color: #718096;
    }
    
    .legal-meta {
        background: #4a5568;
    }
}
