/* Privacy Policy Document Styles */
:root {
    --primary-text: #333333;
    --secondary-text: #555555;
    --link-color: #0066cc;
    --bg-color: #f9f9f9;
    --paper-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-color: #ccc;
}

body {
    font-family: var(--font-family);
    color: var(--primary-text);
    background-color: var(--bg-color);
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    background-color: var(--paper-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* Establish stacking context for pseudo-element */
    z-index: 1;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 400px;
    /* Reduced slightly to fit better inside content */
    opacity: 0.08;
    z-index: -1;
    /* Behind content but inside container */
    pointer-events: none;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

p {
    margin-bottom: 15px;
    color: var(--secondary-text);
}

ul {
    margin-bottom: 15px;
    color: var(--secondary-text);
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: #222;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--secondary-text);
    transition: all 0.2s;
}

.lang-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-right: none;
}

.lang-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.lang-btn.active {
    background-color: var(--link-color);
    color: #fff;
    border-color: var(--link-color);
}

.lang-btn:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Hide content by default */
.lang-content {
    display: none;
}

/* Show active content */
.lang-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Component Styles */
code {
    background-color: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.notice-box {
    background: #f8faff;
    border-left: 4px solid var(--link-color);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.notice-box.warning {
    background: #fffdf5;
    border-left-color: #f59e0b;
}

.notice-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    color: #1f2937;
}

.app-search-wrapper {
    margin: 20px 0;
}

.app-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-search-input:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin: 16px 0 28px 0;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    background: #fafafa;
}

.app-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s;
}

.app-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-card .app-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.app-card .app-package {
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
}

.app-card .app-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef2ff;
    color: #4f46e5;
    margin-top: 6px;
    font-weight: 500;
}