/* ===== LICENSE.CSS — Стили для страницы лицензий ===== */

/* ---- Основной контент ---- */
.license-content {
    max-width: 1000px;
    margin: 30px auto 50px;
    padding: 0 10px;
    flex: 1;
}

/* ---- Заголовок страницы ---- */
.license-header {
    margin-bottom: 40px;
    text-align: center;
}

.license-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #dce9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.license-header h1 i {
    color: #f5a623;
    font-size: 32px;
}

.license-subtitle {
    color: #5f8095;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.license-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f8aaa, #f5a623);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- Секции ---- */
.license-section {
    background: #0f171e;
    border: 1px solid #1a2a32;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: 0.2s ease;
}

.license-section:hover {
    border-color: #2f4a5a;
}

/* ---- Вступление ---- */
.license-intro {
    background: #0f171e;
    border-left: 4px solid #4f8aaa;
}

.license-intro-text p {
    color: #b0ccdd;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.license-intro-text p:last-child {
    margin-bottom: 0;
}

.license-intro-text strong {
    color: #dce9f2;
    font-weight: 600;
}

.license-quick-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #1a2a32;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.license-quick-links span {
    color: #5f8095;
    font-size: 13px;
    font-weight: 500;
    margin-right: 4px;
}

.license-quick-links a {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #1a2a34;
    color: #8aa6b8;
    transition: 0.2s ease;
    border: 1px solid #1a2a32;
}

.license-quick-links a:hover {
    background: #2f404a;
    color: #dce9f2;
    border-color: #4f8aaa;
}

/* ---- Заголовок лицензии ---- */
.license-type {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a2a32;
}

.license-type-content {
    flex: 1;
}

.license-type-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #dce9f2;
    margin: 0 0 8px 0;
}

/* ---- Бейджи лицензий ---- */
.license-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    gap: 4px;
    flex-shrink: 0;
    text-align: center;
}

.license-badge i {
    font-size: 24px;
    margin-bottom: 2px;
}

.badge-free {
    background: linear-gradient(135deg, #1a4a3a, #0f2f24);
    border: 1px solid #2d8a6a;
    color: #4caf84;
}

.badge-pro {
    background: linear-gradient(135deg, #4a3a1a, #2f240f);
    border: 1px solid #f5a623;
    color: #f5a623;
}

.badge-cc {
    background: linear-gradient(135deg, #1a2a4a, #0f1f2f);
    border: 1px solid #4f8aaa;
    color: #4f8aaa;
}

.badge-cc-nc {
    background: linear-gradient(135deg, #3a1a2a, #2f0f1f);
    border: 1px solid #c94f6a;
    color: #c94f6a;
}

.badge-commercial {
    background: linear-gradient(135deg, #1a3a4a, #0f2a3a);
    border: 1px solid #4a9aaa;
    color: #4ac4d4;
}

.badge-author {
    background: linear-gradient(135deg, #2a1a4a, #1f0f3f);
    border: 1px solid #8a6ac4;
    color: #8a6ac4;
}

.badge-faq {
    background: linear-gradient(135deg, #2a3a1a, #1f2f0f);
    border: 1px solid #8aaa4a;
    color: #8aaa4a;
}

/* ---- Теги ---- */
.license-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-green {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #2d8a3a;
    color: #66bb6a;
}

.tag-blue {
    background: rgba(79, 138, 170, 0.15);
    border: 1px solid #2a5a7a;
    color: #4f8aaa;
}

.tag-orange {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid #b87a1a;
    color: #f5a623;
}

.tag-gold {
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid #c9941a;
    color: #f5c623;
}

.tag-cc {
    background: rgba(79, 138, 170, 0.15);
    border: 1px solid #3a6a8a;
    color: #7ab8d4;
}

/* ---- Текст лицензии ---- */
.license-text {
    color: #b0ccdd;
    font-size: 15px;
    line-height: 1.7;
}

.license-text p {
    margin-bottom: 12px;
}

.license-text p:last-child {
    margin-bottom: 0;
}

.license-text strong {
    color: #dce9f2;
    font-weight: 600;
}

.license-text a {
    color: #4f8aaa;
    transition: 0.2s ease;
    border-bottom: 1px dotted #4f8aaa;
}

.license-text a:hover {
    color: #7ab8d4;
    border-bottom-color: #7ab8d4;
}

/* ---- Списки в тексте ---- */
.license-text ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px 0;
}

.license-text ul li {
    padding: 5px 0 5px 28px;
    position: relative;
    color: #b0ccdd;
    line-height: 1.6;
}

.license-text ul li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    color: #4f8aaa;
    font-weight: 700;
}

.license-text ul li strong {
    color: #dce9f2;
}

/* ---- Нотисы ---- */
.license-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #0a0f13;
    border: 1px solid #1a2a32;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0 6px 0;
}

.license-note i {
    color: #4f8aaa;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.license-note p {
    margin: 0;
    font-size: 14px;
    color: #8aa6b8;
}

.license-note p strong {
    color: #dce9f2;
}

.license-note-warning {
    border-color: #b87a1a;
    background: rgba(245, 166, 35, 0.05);
}

.license-note-warning i {
    color: #f5a623;
}

/* ---- CC Info ---- */
.license-cc-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #1a2a32;
}

.license-cc-info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f8aaa;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

.license-cc-info a:hover {
    color: #7ab8d4;
}

/* ---- FAQ ---- */
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #1a2a32;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #dce9f2;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3 i {
    color: #4f8aaa;
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    color: #b0ccdd;
    font-size: 14px;
    line-height: 1.7;
    padding-left: 28px;
}

/* ---- Контакты внизу ---- */
.license-contact {
    background: linear-gradient(135deg, #0f171e, #0a0f13);
    border: 1px solid #2f404a;
    text-align: center;
}

.license-contact-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #dce9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 10px 0;
}

.license-contact-content h2 i {
    color: #4f8aaa;
}

.license-contact-content p {
    color: #8aa6b8;
    font-size: 15px;
    margin-bottom: 18px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0ccdd;
    font-size: 14px;
}

.contact-info i {
    color: #4f8aaa;
    font-size: 16px;
}

.contact-info a {
    color: #b0ccdd;
    transition: 0.2s ease;
    border-bottom: none;
}

.contact-info a:hover {
    color: #4f8aaa;
}

/* ---- Кнопки внизу ---- */
.license-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a2a32;
}

.license-updated {
    color: #5f8095;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-updated i {
    color: #4f8aaa;
}

.license-print {
    display: flex;
    gap: 12px;
}

.btn-print,
.btn-back {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2f404a;
    background: transparent;
    color: #b0ccdd;
}

.btn-print:hover,
.btn-back:hover {
    background: #162026;
    border-color: #4f8aaa;
    color: #dce9f2;
}

.btn-print i,
.btn-back i {
    font-size: 14px;
}

/* ---- Адаптивность ---- */
@media (max-width: 768px) {
    .license-content {
        margin: 20px auto 30px;
        padding: 0 6px;
    }

    .license-section {
        padding: 20px 18px;
    }

    .license-type {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .license-badge {
        flex-direction: row;
        min-width: auto;
        padding: 8px 16px;
        gap: 8px;
        font-size: 16px;
    }

    .license-badge i {
        font-size: 18px;
        margin-bottom: 0;
    }

    .license-type-content h2 {
        font-size: 20px;
    }

    .license-header h1 {
        font-size: 28px;
    }

    .license-header h1 i {
        font-size: 26px;
    }

    .license-intro-text p {
        font-size: 14px;
    }

    .license-text {
        font-size: 14px;
    }

    .license-text ul li {
        padding: 4px 0 4px 22px;
    }

    .license-quick-links {
        gap: 6px;
    }

    .license-quick-links a {
        font-size: 12px;
        padding: 3px 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .license-footer-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .license-print {
        justify-content: center;
        flex-wrap: wrap;
    }

    .license-note {
        padding: 12px 14px;
    }

    .license-note i {
        font-size: 16px;
    }

    .license-note p {
        font-size: 13px;
    }

    .faq-item h3 {
        font-size: 14px;
    }

    .faq-item p {
        font-size: 13px;
        padding-left: 0;
    }

    .license-contact-content h2 {
        font-size: 20px;
    }

    .license-contact-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .license-section {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .license-header h1 {
        font-size: 22px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .license-header h1 i {
        font-size: 20px;
    }

    .license-subtitle {
        font-size: 13px;
    }

    .license-type-content h2 {
        font-size: 17px;
    }

    .license-badge {
        font-size: 14px;
        padding: 6px 12px;
    }

    .license-badge i {
        font-size: 15px;
    }

    .license-text {
        font-size: 13px;
    }

    .license-text ul li {
        font-size: 13px;
        padding: 3px 0 3px 20px;
    }

    .license-text ul li::before {
        left: 2px;
    }

    .tag {
        font-size: 10px;
        padding: 1px 10px;
    }

    .license-quick-links a {
        font-size: 11px;
        padding: 2px 8px;
    }

    .license-quick-links span {
        font-size: 12px;
    }

    .btn-print,
    .btn-back {
        padding: 6px 16px;
        font-size: 13px;
    }

    .license-updated {
        font-size: 13px;
    }

    .contact-info div {
        font-size: 13px;
    }

    .license-note {
        padding: 10px 12px;
    }

    .license-note p {
        font-size: 12px;
    }

    .faq-item h3 {
        font-size: 13px;
    }

    .faq-item p {
        font-size: 12px;
    }

    .license-contact-content h2 {
        font-size: 17px;
    }
}

/* ---- Печать ---- */
@media print {
    .navbar,
    .nav-right,
    .footer,
    .btn-auth,
    .btn-pro,
    .btn-avatar,
    .license-print,
    .license-quick-links {
        display: none !important;
    }

    .license-content {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .license-section {
        background: #fff !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        page-break-inside: avoid;
        box-shadow: none !important;
    }

    .license-section:hover {
        border-color: #ddd !important;
    }

    .license-type-content h2 {
        color: #000 !important;
    }

    .license-text {
        color: #333 !important;
    }

    .license-text strong {
        color: #000 !important;
    }

    .license-text ul li {
        color: #333 !important;
    }

    .license-text ul li::before {
        color: #666 !important;
    }

    .license-note {
        background: #f5f5f5 !important;
        border-color: #ddd !important;
    }

    .license-note p {
        color: #333 !important;
    }

    .license-note p strong {
        color: #000 !important;
    }

    .license-header h1 {
        color: #000 !important;
    }

    .license-subtitle {
        color: #666 !important;
    }

    .license-divider {
        background: #999 !important;
    }

    .license-updated {
        color: #666 !important;
    }

    .contact-info div {
        color: #333 !important;
    }

    .license-contact {
        border-color: #ddd !important;
        background: #f5f5f5 !important;
    }

    .license-contact-content h2 {
        color: #000 !important;
    }

    .license-contact-content p {
        color: #333 !important;
    }

    .faq-item {
        border-bottom-color: #ddd !important;
    }

    .faq-item h3 {
        color: #000 !important;
    }

    .faq-item p {
        color: #333 !important;
    }

    .license-cc-info {
        border-top-color: #ddd !important;
    }

    .license-footer-actions {
        border-top-color: #ddd !important;
    }

    .license-badge {
        border: 1px solid #ccc !important;
    }

    .badge-free,
    .badge-pro,
    .badge-cc,
    .badge-cc-nc,
    .badge-commercial,
    .badge-author,
    .badge-faq {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-color: #ccc !important;
    }

    .license-type {
        border-bottom-color: #ddd !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .tag {
        background: #f0f0f0 !important;
        border-color: #ccc !important;
        color: #333 !important;
    }

    .tag-green,
    .tag-blue,
    .tag-orange,
    .tag-gold,
    .tag-cc {
        background: #f0f0f0 !important;
        border-color: #ccc !important;
        color: #333 !important;
    }

    .license-text a {
        color: #0066cc !important;
        border-bottom-color: #0066cc !important;
    }

    .contact-info a {
        color: #0066cc !important;
    }

    .license-cc-info a {
        color: #0066cc !important;
    }

    .license-intro-text p {
        color: #333 !important;
    }

    .license-intro-text strong {
        color: #000 !important;
    }

    .license-intro {
        border-left-color: #999 !important;
    }
}