/**
 * Frontend Styles for Legal Archive
 */

/* Warning Bar */
.csg-legal-warning-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.csg-warning-icon {
    flex-shrink: 0;
    color: #ff9800;
    margin-top: 2px;
}

.csg-warning-content {
    flex: 1;
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
}

.csg-warning-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.csg-warning-games {
    display: block;
    font-weight: 500;
}

/* Legal Archive Container */
.csg-legal-archive-page {
    padding: 40px 0;
}

.csg-legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Game Context Bar */
.csg-legal-game-context {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.csg-back-to-game {
    display: inline-block;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.csg-back-to-game:hover {
    text-decoration: underline;
}

/* Legal Header */
.csg-legal-header {
    margin-bottom: 40px;
}

.csg-legal-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.csg-legal-subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0 0 15px 0;
}

.csg-legal-meta {
    color: #666;
    font-size: 0.9em;
}

.csg-meta-item {
    margin-right: 20px;
}

/* Legal Content */
.csg-legal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.csg-legal-text-content {
    font-size: 1.05em;
    line-height: 1.8;
}

.csg-legal-text-content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.csg-legal-text-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.csg-legal-text-content p {
    margin-bottom: 1.5em;
}

.csg-legal-text-content ul,
.csg-legal-text-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

/* File Section */
.csg-legal-file-section {
    margin-bottom: 30px;
}

.csg-file-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.csg-file-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.csg-download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.csg-download-button:hover {
    background: #135e96;
    color: #fff;
}

.csg-download-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.file-size {
    opacity: 0.8;
    font-size: 0.9em;
}

/* PDF Viewer */
.csg-pdf-viewer {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.csg-pdf-viewer iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    border: none;
}

/* Other Games Section */
.csg-legal-other-games {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.csg-legal-other-games h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.csg-other-games-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csg-other-games-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.csg-other-games-list li:last-child {
    border-bottom: none;
}

.csg-other-games-list a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.csg-other-games-list a:hover {
    text-decoration: underline;
}

/* Connected Games (on standalone page) */
.csg-legal-connected-games {
    background: #e7f5fe;
    border-left: 4px solid #2271b1;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.csg-legal-connected-games h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.csg-games-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csg-games-list li {
    padding: 8px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .csg-legal-title {
        font-size: 1.8em;
    }
    
    .csg-legal-content {
        padding: 20px;
    }
    
    .csg-pdf-viewer iframe {
        min-height: 500px;
    }
}
