/* Legal Pages Common Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.nav-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.logo-icon { width: 40px; height: 40px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark, #1e293b);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Page Header */
.page-header {
    background: var(--gradient);
    padding: 140px 0 60px;
    text-align: center;
    color: white;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }
.page-header .breadcrumb { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }
.page-header .breadcrumb a { color: white; text-decoration: none; }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* Content */
.page-content { padding: 60px 0 80px; }

.content-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.content-card h2:first-child { margin-top: 0; }

.content-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 25px 0 10px;
}

.content-card p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-card ul, .content-card ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content-card li {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-card strong { color: var(--dark); }

.content-card .highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.content-card .highlight p { margin-bottom: 0; color: var(--dark); }

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-card th, .content-card td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.content-card th {
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
}

.content-card td { color: var(--gray); }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--gradient);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.contact-info-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info-card p { opacity: 0.9; margin-bottom: 30px; }

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

.contact-item i { font-size: 1.2rem; opacity: 0.8; }
.contact-item span { opacity: 0.9; }

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-card h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 25px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* About Page */
.about-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.about-intro h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 10px; }
.about-intro p { color: var(--gray); line-height: 1.8; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 15px;
    transition: var(--transition);
}

.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.value-card h4 { color: var(--dark); margin-bottom: 8px; }
.value-card p { color: var(--gray); font-size: 0.9rem; }

.timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.timeline-item h4 { color: var(--dark); margin-bottom: 5px; }
.timeline-item .date { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.timeline-item p { color: var(--gray); font-size: 0.95rem; }

/* Buttons */
.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-block { width: 100%; justify-content: center; }

/* Footer */
.footer { background: var(--darker); color: white; padding: 60px 0 20px; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-logo i { font-size: 1.3rem; color: var(--primary); }
.footer-logo h3 { font-size: 1.3rem; }
.footer-section p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }
.footer-section h3 { font-size: 1rem; margin-bottom: 15px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul a { color: var(--gray); text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-section ul a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--gray); font-size: 0.9rem; }
.footer-bottom i { color: #ef4444; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; }
.toast { background: var(--white); padding: 15px 25px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; min-width: 280px; border-left: 4px solid var(--secondary); }
.toast i { font-size: 1.3rem; color: var(--secondary); }
.toast span { color: var(--dark); font-weight: 500; }
.toast-error { border-left-color: #ef4444; }
.toast-error i { color: #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .about-hero { flex-direction: column; text-align: center; }
    .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 25px; z-index: 1000; }
    body.dark-mode .nav-links { background: var(--light); }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.1rem; }
    .menu-toggle { display: flex; z-index: 1001; position: relative; }
    .page-header { padding: 100px 0 40px; }
    .page-header h1 { font-size: 1.6rem; }
    .content-card { padding: 25px 18px; }
    .content-card h2 { font-size: 1.3rem; }
    .content-card h3 { font-size: 1.1rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    .footer { padding: 40px 0 20px; }
    .values-grid { grid-template-columns: 1fr; gap: 15px; }
    .about-hero { flex-direction: column; text-align: center; }
}

/* ==================== POST PAGE ==================== */
.hidden { display: none !important; }

.post-loading {
    text-align: center;
    padding: 80px 0;
    color: var(--gray);
    font-size: 1.1rem;
}
.post-loading i { margin-right: 8px; color: var(--primary); }

.post-error {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.post-error i { font-size: 3rem; color: #ef4444; margin-bottom: 12px; }
.post-error h2 { margin: 10px 0; }
.post-error p { color: var(--gray); margin-bottom: 20px; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
}
.btn-secondary:hover { background: var(--gray-light); }

.post-card-full h1 { font-size: 2rem; line-height: 1.3; margin: 10px 0 16px; }

.post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-light);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.tag i { color: var(--primary); }

.post-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.9rem;
}
.post-submeta i { color: var(--primary); margin-right: 4px; }

.markdown-body { font-size: 1rem; line-height: 1.75; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    margin: 24px 0 12px;
    color: var(--dark);
    line-height: 1.4;
}
.markdown-body h1 { font-size: 1.6rem; border-bottom: 1px solid var(--gray-light); padding-bottom: 8px; }
.markdown-body h2 { font-size: 1.35rem; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body p { margin: 12px 0; }
.markdown-body ul, .markdown-body ol { margin: 12px 0 12px 24px; }
.markdown-body li { margin: 6px 0; }
.markdown-body a { color: var(--primary); }
.markdown-body code {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}
.markdown-body pre {
    background: var(--darker);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
}
.markdown-body pre code { background: transparent; padding: 0; color: inherit; }
.markdown-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-light);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 12px 12px 0;
}
.markdown-body img { max-width: 100%; border-radius: 12px; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--gray-light); padding: 8px 12px; text-align: left; }
.markdown-body th { background: var(--gray-light); }

.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--gray-light); }

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .page-header { padding: 90px 0 30px; }
    .page-header h1 { font-size: 1.3rem; }
    .content-card { padding: 20px 14px; border-radius: 12px; }
    .content-card h2 { font-size: 1.15rem; }
    .content-card p { font-size: 0.9rem; line-height: 1.6; }
    .footer-section p { font-size: 0.85rem; }
    .footer-content { gap: 20px; }
    .post-card-full h1 { font-size: 1.4rem; }
}

