:root {
    --bg-color: #f2f5f3; /* Light Sage Tint */
    --sidebar-bg: #dbe3de; /* Muted Sage Green */
    --text-main: #1e3324; /* Deep Forest Green */
    --text-muted: #4d6655; /* Soft Muted Green */
    --accent-color: #bfa38a; /* Soft Warm Sand */
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow-soft: 0 12px 40px rgba(30, 51, 36, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    line-height: 1.65;
}

/* Layout #7: Sticky Side Navigation */
.layout-wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 340px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.main-content {
    flex: 1;
    padding: 4rem 3rem;
    max-width: 1100px;
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    margin-bottom: auto;
}

.nav-links li {
    margin-bottom: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.company-info {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.company-info p { 
    margin-bottom: 0.6rem; 
}

.footer-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-soft);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    opacity: 0.95;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.article-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.article-card h3 {
    color: var(--text-main);
    border-bottom: 2px solid var(--sidebar-bg);
    padding-bottom: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--sidebar-bg);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafbfc;
    color: var(--text-main);
    transition: border-color 0.2s, background-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--text-muted);
    background-color: #ffffff;
}

.btn {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    align-self: flex-start;
}

.btn:hover {
    background-color: var(--text-muted);
}

.btn:active {
    transform: scale(0.98);
}

.legal-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-text h2 {
    margin-top: 3rem;
    font-size: 1.35rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.legal-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Responsive design optimization */
@media (max-width: 1024px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 2.5rem 1.5rem;
    }
    .main-content {
        padding: 2.5rem 1.5rem;
    }
    .brand {
        margin-bottom: 1.5rem;
    }
    .nav-links {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .nav-links li {
        margin-bottom: 0;
    }
    .company-info {
        margin-top: 1.5rem;
    }
}
