/* ==========================================================================
   Base Styles, CSS Variables & DRY Principles applied
   ========================================================================== */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --container-bg: #ffffff;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation (Flexbox)
   ========================================================================== */
.app-header {
    background-color: var(--container-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================================================
   Buttons & Accessibility
   ========================================================================== */
.btn-toggle {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    font-weight: 600;
}

.btn-toggle:hover {
    background-color: var(--primary-hover);
}

.btn-toggle:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ==========================================================================
   Main Content Layout (CSS Grid & Flexbox combination)
   ========================================================================== */
.main-content {
    background: var(--container-bg);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-height: 70vh;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.last-updated {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.policy-block {
    margin-bottom: 2rem;
}

.policy-block h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #222;
}

.policy-block ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.policy-block li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   i18n Visibility Controls (O(1) Switching)
   ========================================================================== */
.lang-section {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.lang-section.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    padding: 1.5rem 0;
    background: #e9ecef;
    margin-top: auto;
}

.text-center {
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .main-content {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
}