/* Policy Pages Styles */

/* Policy Hero Section */
.policy-hero {
    background: linear-gradient(135deg, #e52d27 0%, #ff6b35 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.policy-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
    animation: slideInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 2rem;
    opacity: 0.9;
    line-height: 1.5;
    animation: slideInUp 0.8s ease 0.2s both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb .separator {
    opacity: 0.6;
    margin: 0 0.2rem;
}

.breadcrumb .current {
    font-weight: 600;
}

.hero-decoration {
    flex-shrink: 0;
    margin-left: 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-decoration i {
    font-size: 8rem;
    opacity: 0.2;
    color: white;
}

/* Policy Content */
.policy-content {
    padding: 80px 0;
    background: #fafafa;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 120px;
}

.toc-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.toc-container h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e52d27;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: #e52d27;
    background: rgba(229, 45, 39, 0.05);
    border-left-color: #e52d27;
    transform: translateX(5px);
}

/* Main Policy Content */
.policy-main {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.last-updated {
    background: rgba(229, 45, 39, 0.1);
    color: #e52d27;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-updated i {
    font-size: 1rem;
}

.policy-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e52d27;
}

.policy-section {
    margin-bottom: 50px;
    scroll-margin-top: 120px;
}

.policy-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 25px;
    position: relative;
    padding-bottom: 15px;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e52d27, #ff6b35);
    border-radius: 2px;
}

.policy-section h3 {
    color: #34495e;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.policy-section p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.policy-section ul {
    margin: 20px 0;
    padding-left: 0;
}

.policy-section li {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style: none;
}

.policy-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #e52d27;
    font-weight: 600;
}

.policy-section strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Security Note */
.security-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-note i {
    color: #f39c12;
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.security-note p {
    margin: 0;
    color: #8b6914;
    font-weight: 500;
}

/* Contact Details */
.contact-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #e52d27;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item a {
    color: #e52d27;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
    color: #c0392b;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        gap: 40px;
    }
    
    .policy-main {
        padding: 40px;
    }
    
    .toc-container {
        padding: 25px;
    }
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-decoration {
        margin-left: 1rem;
    }
    
    .hero-decoration i {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .policy-hero {
        padding: 100px 0 60px;
    }
    
    .policy-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-decoration {
        margin: 2rem 0 0;
    }
    
    .hero-decoration i {
        font-size: 4rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .toc-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .policy-main {
        padding: 30px 25px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .policy-section h2 {
        font-size: 1.7rem;
    }
    
    .breadcrumb {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .policy-hero {
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .policy-main {
        padding: 25px 20px;
    }
    
    .toc-container {
        padding: 20px;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-details {
        padding: 20px;
    }
    
    .security-note {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .toc-sidebar,
    .hero-decoration {
        display: none !important;
    }
    
    .policy-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .policy-main {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .content-grid {
        grid-template-columns: 1fr !important;
    }
    
    .policy-section {
        break-inside: avoid;
    }
    
    .policy-section h2 {
        break-after: avoid;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.toc-list a:focus {
    outline: 2px solid #e52d27;
    outline-offset: 2px;
}

/* Loading animation for TOC links */
.toc-list a.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Highlight active section */
.policy-section.active {
    position: relative;
}

.policy-section.active::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e52d27, #ff6b35);
    border-radius: 2px;
    animation: slideInLeft 0.3s ease;
}

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