/* static/rules.css */

.rules-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
    color: #f0f0f0; /* Bright text consistent with about.css */
}

.page-title {
    text-align: center;
    font-size: 1.8em;
    margin: 0.8em 0;
    color: #fff;
    text-shadow: 0 0 5px rgba(35, 130, 95, 0.7); /* Glow from about.css */
}

.rules-intro {
    background: #1f1f1f;
    padding: 1.2em;
    border-radius: 8px;
    margin-bottom: 1.2em;
    font-size: 0.95em;
    border-left: 4px solid #23825f; /* Side accent */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Depth */
}

.rules-intro p {
    margin: 0.5em 0;
    line-height: 1.5;
}

.rules-section {
    background: #1f1f1f;
    padding: 1.2em;
    border-radius: 8px;
    margin-bottom: 1.2em;
    font-size: 0.95em;
    border-left: 4px solid #23825f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rules-section h3 {
    margin-top: 0;
    margin-bottom: 0.6em;
    color: #23825f; /* Consistent with about.css */
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
}

.rules-section p {
    margin: 0.5em 0;
    line-height: 1.5;
}

.rules-footer {
    background: #1f1f1f;
    padding: 1.2em;
    border-radius: 8px;
    margin-bottom: 1.2em;
    font-size: 0.95em;
    border-left: 4px solid #23825f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rules-footer p {
    margin: 0.5em 0;
    line-height: 1.5;
}

/* Links styling */
.rules-section a,
.rules-intro a,
.rules-footer a {
    color: #50c878; /* Bright green links */
    text-decoration: none;
    transition: color 0.2s ease;
}

.rules-section a:hover,
.rules-intro a:hover,
.rules-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .rules-container {
        padding: 0.5em;
    }

    .page-title {
        font-size: 1.5em;
    }

    .rules-intro,
    .rules-section,
    .rules-footer {
        font-size: 0.9em;
        padding: 1em;
    }

    .rules-section h3 {
        font-size: 1.2em;
    }
}
