/* license.css - License page specific styles */

/* Content Container */
.content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(18, 67, 109, 0.08);
    box-shadow: none;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

/* Intro Box */
.intro-box {
    background: #f7f6f4;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(18, 67, 109, 0.15);
}

.intro-box p {
    font-size: 17px; /* Recommended: 17px - matches body text */
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 34px; /* Recommended: 34px - matches main section titles */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section-content {
    color: #555;
    line-height: 1.9;
    font-size: 17px; /* Recommended: 17px - matches body text */
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul, 
.section-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.section-content li {
    margin-bottom: 0.8rem;
    font-size: 16px; /* Recommended: 16px */
}

/* License Cards */
.license-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.license-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--shadow);
    transform: translateY(-2px);
}

.license-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.license-icon {
    font-size: 2.5rem;
}

.license-name {
    font-size: 19px; /* Recommended: 19px - matches h3/card titles */
    font-weight: 600;
    color: var(--primary);
}

.license-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.license-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 16px; /* Recommended: 16px */
}

/* License Permissions */
.license-permissions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 5px;
    font-size: 16px; /* Recommended: 16px */
}

.permission-icon {
    font-size: 1.2rem;
}

.permission-icon.allowed {
    color: #28a745;
}

.permission-icon.required {
    color: #fd7e14;
}

/* Highlight Box */
.highlight-box {
    background: #fff3cd;
    border: 1px solid rgba(133, 100, 4, 0.3);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.highlight-box p {
    color: #856404;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 16px; /* Recommended: 16px */
}

/* Example Box */
.example-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.example-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 19px; /* Recommended: 19px - matches h3 */
    font-weight: 600;
}

.example-box pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.example-box p {
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 16px; /* Recommended: 16px */
}

.example-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px; /* Recommended: 16px */
}

.example-box a:hover {
    text-decoration: underline;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 16px; /* Recommended: 16px */
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 16px; /* Recommended: 16px */
}

.comparison-table tr:hover {
    background: var(--light);
}

.comparison-table .icon {
    font-size: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {

    .content {
        padding: 2rem 1.5rem;
        margin-top: -2rem;
    }

    .section-title {
        font-size: 28px; /* Matches responsive section titles */
    }

    .license-permissions {
        grid-template-columns: 1fr;
    }

    .license-header {
        flex-wrap: wrap;
    }

    .license-badge {
        margin-left: 0;
    }

    .license-name {
        font-size: 19px;
    }

    .comparison-table {
        font-size: 16px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem;
    }

    .intro-box {
        padding: 1.5rem;
    }

    .intro-box p {
        font-size: 16px;
    }
}

/* Phones: the table scrolls sideways inside its box, not the whole page */
@media (max-width: 600px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}
