/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --background: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #0052a3;
    --focus-color: #0066cc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background);
    font-size: 18px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 32px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 48px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.lang-active {
    opacity: 1;
}

.lang-inactive {
    opacity: 0.6;
}

.lang-separator {
    opacity: 0.5;
    margin: 0 2px;
}

/* Main Content */
main {
    margin-bottom: 64px;
}

article {
    background: white;
}

.content {
    animation: fadeIn 0.3s ease-in;
}

.content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--text-color);
    font-weight: 400;
    text-align: justify;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

h2:first-of-type {
    margin-top: 0;
}

/* Key Points */
.key-points {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.key-points li {
    padding: 20px 0;
    padding-left: 32px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 16px;
    background: #f8f9fa;
    padding-left: 28px;
    padding-right: 20px;
    border-radius: 4px;
    position: relative;
    text-align: justify;
}

.key-points li::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.key-points li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.key-points sup {
    font-size: 0.75em;
    vertical-align: super;
    color: var(--secondary-color);
}

/* Footnotes */
.footnotes {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.footnotes h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footnotes ol {
    list-style-position: outside;
    padding-left: 24px;
    margin: 0;
}

.footnotes li {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 16px;
    text-align: justify;
}

.footnotes a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footnotes a:hover {
    border-bottom-color: var(--secondary-color);
}

.footnotes a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    header {
        padding: 24px 0;
        margin-bottom: 32px;
    }

    .site-title {
        font-size: 24px;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-toggle {
        align-self: flex-end;
    }

    .lead {
        font-size: 18px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 22px;
        margin-top: 36px;
    }

    .key-points li {
        padding: 16px 16px 16px 48px;
    }

    .key-points li::before {
        left: 20px;
    }

    main {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }

    .lang-btn {
        font-size: 14px;
        padding: 6px 12px;
    }

    .lead {
        font-size: 17px;
    }

    h2 {
        font-size: 20px;
    }
}