/* Legal Pages Styling */

.legal-content {
    padding: 60px 0;
}

.legal-section {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
    text-align: right;
}

.legal-intro {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.legal-item {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 1;
}

.legal-item h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.legal-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.legal-item p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-item ul, .legal-item ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-item li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-item a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.legal-item a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Cookie Table Styling */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--medium-gray);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.cookie-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-overlay.png');
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--white);
}

.breadcrumbs {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--white);
}

/* Formula Box Styling */
.formula-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    border-radius: 0 5px 5px 0;
}

/* Info Box Styling */
.info-box, .tip-box {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.info-box h3, .tip-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.tip-box {
    background-color: rgba(46, 204, 113, 0.1);
    border-left-color: var(--success);
}

.tip-box h3 {
    color: var(--success);
}

/* Author Bio Styling */
.author-bio {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
    margin: 40px 0;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-bio h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.author-bio p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Post Tags and Share Styling */
.post-tags, .post-share {
    margin: 30px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-tags span, .post-share span {
    font-weight: 600;
    margin-right: 15px;
    color: var(--secondary-color);
}

.post-tags a {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 3px;
    margin: 5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 50%;
    margin: 5px;
    transition: all 0.3s ease;
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Post Navigation Styling */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    padding: 20px 0;
}

.prev-post, .next-post {
    max-width: 48%;
}

.prev-post a, .next-post a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
    color: var(--primary-color);
}

.prev-post span, .next-post span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.prev-post h4, .next-post h4 {
    margin: 0;
    font-size: 1.1rem;
}

.next-post {
    text-align: right;
}

/* Related Posts Styling */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.related-posts h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
}

.related-post-date {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .legal-section {
        padding: 20px;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .next-post {
        text-align: left;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .legal-item h2 {
        font-size: 1.4rem;
    }
    
    .legal-item h3 {
        font-size: 1.2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
