/*
 * Unified Styles for MQTT Client Legal Documents
 * Mobile-first responsive design
 */

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: #fafafa;
}

/* Typography */
h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Content sections */
.meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

/* Store buttons */
.store-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.store-btn-text {
    text-align: left;
}

.store-btn-text small {
    font-size: 10px;
    display: block;
}

.store-btn-text span {
    font-size: 16px;
    font-weight: bold;
}

/* Lists */
ul, ol {
    margin: 10px 0;
    padding-left: 20px;
}

li {
    margin: 5px 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    font-size: 14px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

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

.footer p {
    margin: 5px 0;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.language-switcher a {
    display: inline-block;
    background: #fff;
    color: #2c3e50;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Alerts and notices */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .language-switcher {
        position: static;
        margin: 10px 0;
        text-align: right;
    }

    .language-switcher a {
        padding: 6px 10px;
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .footer {
        padding: 15px;
        font-size: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .language-switcher {
        display: none;
    }

    body {
        padding: 0;
        margin: 0;
        background: white;
    }

    .footer {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}