/* ==========================================================================
   СТОРІНКА ЛІЦЕНЗІЇ (Текстова сторінка)
   ========================================================================== */
body.license-page {
    overflow-y: auto;
    height: 100vh;
    background: radial-gradient(circle at top, #1f2937 0%, #0a0a0a 80%) fixed;
    display: block;
    /* Базові налаштування шрифтів, щоб не залежати від styles.css */
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Контейнер-картка для тексту (Glassmorphism) */
.license-document {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid #374151;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    text-align: left;
}

/* Шапка документа */
.license-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border-bottom: 1px solid #374151;
    padding-bottom: 24px;
    text-align: left;
}

/* Кнопка "Назад" - справа */
.license-home-link {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e5e7eb;
    background: #1f2937;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #374151;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.license-home-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-right: 7px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.license-home-link:hover {
    background: #374151;
    border-color: #4b5563;
    color: #fff;
}

.license-header h1 {
    margin: 0 0 12px 0;
    font-size: 2.2rem;
    color: #f3f4f6;
    line-height: 1.2;
}

.license-updated {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Основний текст */
.license-content h2 {
    color: #e5e7eb;
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.license-content p,
.license-content ul {
    color: #d1d5db;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.license-content ul {
    padding-left: 24px;
}

.license-content li {
    margin-bottom: 10px;
}

.license-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.license-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Адаптив для мобільних пристроїв */
@media (max-width: 768px) {
    .license-document {
        margin: 20px;
        padding: 24px;
        border-radius: 12px;
    }

    .license-header h1 {
        font-size: 1.7rem;
    }
}
