:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: var(--secondary-color);
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
}

.policy-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.policy-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.last-update {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
}

/* Table of Contents */
.toc {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.toc h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.toc ul {
    list-style: none;
    columns: 2;
}

.toc ul li {
    margin-bottom: 8px;
}

.toc ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.toc ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Policy Content */
.policy-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.policy-content section {
    margin-bottom: 40px;
}

.policy-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.policy-content h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.policy-content h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.policy-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.policy-content ul, 
.policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content strong {
    color: var(--dark-color);
}

/* Definition List */
.definition-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.definition-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.definition-item h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.definition-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Policy Footer */
.policy-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.policy-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.policy-footer a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .toc ul {
        columns: 1;
    }
    
    .definition-list {
        grid-template-columns: 1fr;
    }
    
    .policy-header h1 {
        font-size: 1.8rem;
    }
    
    .policy-header h2 {
        font-size: 1.3rem;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .policy-header h1 {
        font-size: 1.5rem;
    }
    
    .policy-header h2 {
        font-size: 1.1rem;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    header, footer, #back-to-top, .toc {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .policy-content {
        box-shadow: none;
        padding: 0;
    }
    
    .policy-header {
        text-align: left;
    }
}
