/* 
 * Privacy Policy Page Styles
 * 
 * Premium, clean styling for the Galaxy Zero privacy policy
 * Matches the warm golden color palette of the main site
 */

/* ========================================
   Page Animations
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.privacy-policy-page-main {
    animation: fadeIn 0.6s ease-out;
}

/* Staggered section animations */
.policy-section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.15s; }
.policy-section:nth-child(3) { animation-delay: 0.2s; }
.policy-section:nth-child(4) { animation-delay: 0.25s; }
.policy-section:nth-child(5) { animation-delay: 0.3s; }
.policy-section:nth-child(6) { animation-delay: 0.35s; }
.policy-section:nth-child(7) { animation-delay: 0.4s; }
.policy-section:nth-child(8) { animation-delay: 0.45s; }
.policy-section:nth-child(9) { animation-delay: 0.5s; }
.policy-section:nth-child(10) { animation-delay: 0.55s; }
.policy-section:nth-child(11) { animation-delay: 0.6s; }
.policy-section:nth-child(12) { animation-delay: 0.65s; }

/* ========================================
   Quick Navigation
   ======================================== */

.policy-nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8B7355;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(218, 165, 32, 0.05));
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.policy-nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.15));
    border-color: #DAA520;
    color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}

/* ========================================
   Policy Sections
   ======================================== */

.policy-section {
    position: relative;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.15);
}

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

.policy-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.policy-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.policy-subheading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #8B4513;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content {
    color: #5D4E37;
    line-height: 1.8;
    font-size: 1rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

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

/* ========================================
   Policy Lists
   ======================================== */

.policy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
    color: #5D4E37;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    border-radius: 50%;
}

.policy-list li strong {
    color: #8B4513;
    font-weight: 600;
}

/* Rights list with special styling */
.rights-list li {
    padding: 1rem 1rem 1rem 3.5rem;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.5), rgba(255, 244, 224, 0.5));
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(218, 165, 32, 0.1);
    transition: all 0.3s ease;
}

.rights-list li:hover {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.8), rgba(255, 244, 224, 0.8));
    border-color: rgba(218, 165, 32, 0.25);
    transform: translateX(4px);
}

.rights-list li::before {
    left: 1.25rem;
    top: 1.4rem;
    width: 10px;
    height: 10px;
}

/* ========================================
   Policy Cards Grid
   ======================================== */

.policy-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.policy-card {
    background: white;
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.policy-card:hover {
    border-color: #DAA520;
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.15);
    transform: translateY(-4px);
}

.policy-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.1));
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.policy-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.policy-card p {
    font-size: 0.875rem;
    color: #8B7355;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Highlight Boxes
   ======================================== */

.policy-highlight-box {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.6), rgba(255, 244, 224, 0.4));
    border-left: 4px solid #DAA520;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.policy-highlight-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.policy-highlight-box p {
    font-size: 0.9375rem;
    color: #5D4E37;
    margin: 0;
    line-height: 1.7;
}

/* SMS/Text Messaging 10DLC Compliance Box */
.sms-compliance {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(184, 134, 11, 0.05));
    border-left-color: #B8860B;
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-left-width: 4px;
}

.sms-compliance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sms-compliance-header h4 {
    margin: 0;
}

.sms-compliance p {
    font-weight: 500;
}

/* ========================================
   Cookies Table
   ======================================== */

.cookies-table {
    margin-top: 1.5rem;
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

.cookie-row {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    transition: background-color 0.3s ease;
}

.cookie-row:last-child {
    border-bottom: none;
}

.cookie-row:hover {
    background: rgba(255, 248, 220, 0.5);
}

.cookie-type {
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.cookie-desc {
    color: #8B7355;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .cookie-row {
        flex-direction: row;
        align-items: center;
    }
    
    .cookie-type {
        min-width: 160px;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

/* ========================================
   Security Features
   ======================================== */

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.security-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.security-item:hover {
    border-color: #DAA520;
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.1);
}

.security-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.1));
    border-radius: 0.75rem;
}

.security-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.25rem;
}

.security-item p {
    font-size: 0.875rem;
    color: #8B7355;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   Contact Card
   ======================================== */

.contact-section {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.4), rgba(255, 244, 224, 0.3));
    border-radius: 1.5rem;
    padding: 2rem !important;
    margin-top: 1rem;
    border: 1px solid rgba(218, 165, 32, 0.15);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .contact-card {
        flex-direction: row;
        gap: 2rem;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 0.75rem;
    flex: 1;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #DAA520;
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.15);
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #DAA520;
}

/* ========================================
   Scroll Behavior
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Offset for fixed headers if any */
[id] {
    scroll-margin-top: 2rem;
}

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 768px) {
    .policy-heading {
        font-size: 1.5rem;
    }
    
    .policy-section {
        padding: 2rem 0;
    }
    
    .policy-content {
        font-size: 0.9375rem;
    }
    
    .rights-list li {
        padding-left: 2.75rem;
    }
    
    .rights-list li::before {
        left: 1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .privacy-policy-page-main {
        background: white;
    }
    
    .policy-nav-link {
        display: none;
    }
    
    .policy-section {
        page-break-inside: avoid;
        animation: none;
        opacity: 1;
    }
    
    .policy-card,
    .security-item,
    .contact-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .privacy-policy-page-main,
    .policy-section {
        animation: none;
        opacity: 1;
    }
    
    .policy-nav-link:hover,
    .policy-card:hover,
    .security-item:hover,
    .rights-list li:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.policy-nav-link:focus,
.contact-value:focus {
    outline: 2px solid #DAA520;
    outline-offset: 2px;
}

/* ========================================
   Selection Color
   ======================================== */

.privacy-policy-page-main ::selection {
    background-color: rgba(218, 165, 32, 0.3);
    color: #8B4513;
}
