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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292e;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lang-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f6f8fa;
    border-bottom: 1px solid #e1e4e8;
}

.lang-links a {
    color: #586069;
    text-decoration: none;
    margin: 0 8px;
    white-space: nowrap;
    cursor: pointer;
}

.lang-links a:hover {
    color: #24292e;
    text-decoration: underline;
}

.lang-links a.active {
    color: #24292e;
    font-weight: 600;
}

.version-bar {
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #e1e4e8;
}

.version-bar a {
    color: #586069;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 3px;
}

.version-bar a.current {
    background: #24292e;
    color: #ffffff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

main h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
}

main h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #24292e;
}

main p {
    margin-bottom: 15px;
    color: #586069;
}

main ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

main li {
    margin-bottom: 8px;
    color: #586069;
}

main a {
    color: #0366d6;
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

.license-block {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    white-space: pre-wrap;
    margin: 20px 0;
    color: #24292e;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #24292e;
}

hr {
    border: none;
    border-top: 1px solid #e1e4e8;
    margin: 30px 0;
}

.footer-text {
    font-style: italic;
    color: #586069;
    text-align: center;
}

footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #f6f8fa;
    border-top: 1px solid #e1e4e8;
}

footer a {
    color: #586069;
    text-decoration: none;
}

footer a:hover {
    color: #0366d6;
    text-decoration: underline;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] main ol {
    margin-left: 0;
    margin-right: 30px;
}

@media (max-width: 600px) {
    .lang-links {
        gap: 8px;
    }

    .lang-links a {
        margin: 2px 4px;
        font-size: 14px;
    }

    main h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 20px 15px;
    }
}
