* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

.rules-container {
    width: 85%;
    max-width: 100%;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 35px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    border: 4px solid gray;
}

.rules-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 25px;
}

.rules-list {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    padding-left: 0;
    font-weight:500;
}

.rules-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}
/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    .rules-container {
        width: 95%;              /* 🔹 screen full use */
        margin: 20px auto;
        padding: 15px 18px;      /* 🔹 padding reduce */
        border-width: 2px;       /* 🔹 border thin */
        border-radius: 8px;
    }

    .rules-heading {
        font-size: 19px;         /* 🔹 heading smaller */
        margin-bottom: 15px;
    }

    .rules-list {
        font-size: 15px;         /* 🔹 readable text */
        line-height: 1.6;
         padding-left: 18px;
    }

    .rules-list li {
        margin-bottom: 15px;
        line-height: 1.7;
        padding-left: 0;
    }
}
