/* Legal Pages Stylesheet - Terms and Conditions & Privacy Policy */
/* Version: 1.0 | Created: September 27, 2025 */

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #8b0000;
    --accent-color: #b71c1c;
    --success-color: #6d6d6d;
    --warning-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
}

.logo-text {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.last-updated.privacy {
    background: var(--success-color);
}

.last-updated i {
    margin-right: 0.5rem;
}

/* Content Sections */
.content-section {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.section-title.privacy i {
    color: var(--success-color);
}

.section-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
}

.section-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-content ul, .section-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Highlight Boxes */
.highlight-box {
    background: #e8f4fd;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.highlight-box.privacy {
    background: #e8f5e8;
    border-left-color: var(--success-color);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.gdpr-box {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Privacy Policy Specific Elements */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.right-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.right-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.right-card h4 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--primary-color);
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.contact-item:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Table of Contents */
.toc {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.lang-btn {
    padding: 8px 12px;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Update header content to flex for language switcher positioning */
.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .main-content {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .content-section {
        padding: 1rem;
    }

    .toc {
        padding: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}