/* Legal pages — shared layout */

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

#page-content {
    width: 100%;
}

body.page-legal #page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.back-link:hover { text-decoration: underline; }

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.lang-switcher button {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.lang-switcher button:hover {
    border-color: var(--accent);
    color: var(--text);
}
.lang-switcher button.active {
    border-color: var(--accent);
    color: var(--accent);
}
.lang-section { display: none; }
.lang-section.visible { display: block; }

.content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.content p, .content li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.content a { color: var(--accent); }

.content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.note {
    font-size: 0.85rem;
}

.content hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 3rem 0 2rem;
}

ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.legal-footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.legal-footer a:hover { color: var(--text); }

@media (max-width: 480px) {
    .content h1 { font-size: 1.6rem; }
}
