body {
    margin: 0;
    font-family: "Georgia", serif;
    background: #f8f9fa;
    color: #202122;
    line-height: 1.6;
}

/* TOP BAR */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #a2a9b1;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
}

/* MAIN LAYOUT */
.container {
    display: flex;
    align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #f6f6f6;
    padding: 20px;
    height: 100vh;
    border-right: 1px solid #a2a9b1;
    position: sticky;
    top: 0;
}

.sidebar a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #3366cc;
    font-size: 14px;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
    max-width: 950px;
    background: #ffffff;
}

/* HEADINGS (encyclopedia style) */
h1 {
    font-size: 32px;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* INPUT SEARCH */
input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 14px;
}

/* CARDS (SEARCH RESULTS) */
.card {
    background: #ffffff;
    padding: 15px;
    margin: 12px 0;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    transition: 0.2s;
}

.card:hover {
    background: #f8f9fa;
}

/* TABLE OF CONTENTS */
.toc {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 12px;
    width: 320px;
    font-size: 14px;
    margin: 20px 0;
}

.toc a {
    display: block;
    color: #3366cc;
    text-decoration: none;
    margin: 5px 0;
}

/* LEGAL FOOTER */
.legal-footer {
    margin-top: 60px;
    padding: 25px;
    border-top: 1px solid #a2a9b1;
    font-size: 13px;
    color: #54595d;
    background: #f8f9fa;
    text-align: center;
}

.legal-footer a {
    color: #3366cc;
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

.license {
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        padding: 20px;
    }

    .toc {
        width: 100%;
    }
}