/*
 * ============================================================
 * BLOODMOON GRID
 * Rules / Legal Pages
 * ============================================================
 *
 * Version : 2026-09-08 14:35
 *
 * Shared by:
 * - tos.php
 * - rgpd.php
 */


.rules-page {
    min-height: 70vh;
    background:
        linear-gradient(
            180deg,
            #f6f7fa 0%,
            #ffffff 30%,
            #f8f8f6 100%
        );
}


.rules-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   HERO
============================================================ */

.rules-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 52px;
    border-bottom: 1px solid #e2e5eb;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(151, 30, 52, 0.09),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbf8f8 52%,
            #f6f7fa 100%
        );
}


.rules-hero-privacy {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(74, 94, 130, 0.09),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f9fb 52%,
            #f6f7fa 100%
        );
}


.rules-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #9e1d37;
}


.rules-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.02;
    color: #1f2430;
}


.rules-hero-text {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #697181;
}


.rules-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}


.rules-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid #f0dad5;
    border-radius: 999px;
    background: rgba(255, 241, 238, 0.92);
    font-size: 0.76rem;
    font-weight: 800;
    color: #5f6674;
}


/* ============================================================
   PAGE GRID
============================================================ */

.rules-main-grid {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 64px;
}


/* ============================================================
   SIDE NAVIGATION
============================================================ */

.rules-side-card {
    position: sticky;
    top: 84px;
    padding: 20px;
    border: 1px solid #f0dad5;
    border-radius: 18px;
    background: #fff1ee;
    box-shadow: 0 12px 30px rgba(29, 35, 47, 0.05);
}


.rules-side-title {
    margin-bottom: 12px;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #737b8b;
}


.rules-side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.rules-side-nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    color: #363d4d;
    transition:
        background 160ms ease,
        color 160ms ease;
}


.rules-side-nav a:hover {
    background: #f0ecec;
    color: #9e1d37;
}


.rules-side-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e4e5e8;
}


.rules-side-note strong {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    color: #292f3c;
}


.rules-side-note p {
    margin: 0 0 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #7a8190;
}


/* ============================================================
   BUTTON
============================================================ */

.rules-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
}


.rules-button-secondary {
    border: 1px solid #dcdfe5;
    background: #ffffff;
    color: #343a48;
}


.rules-button-secondary:hover {
    border-color: #9e1d37;
    color: #9e1d37;
}


/* ============================================================
   CONTENT CARDS
============================================================ */

.rules-content {
    min-width: 0;
}


.rules-card {
    scroll-margin-top: 88px;
    padding: 34px;
    border: 1px solid #e1e4e9;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 15px 38px rgba(28, 34, 46, 0.055);
}


.rules-card + .rules-card {
    margin-top: 28px;
}


.rules-language-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid #f0dad5;
    border-radius: 14px;
    background: #fff1ee;
}


.rules-language-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 38px;
    border-radius: 10px;
    background: #253957;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
}


.rules-language-badge-fr {
    background: #9e1d37;
}


.rules-language-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #232936;
}


.rules-language-heading p {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #858c9a;
}


/* ============================================================
   SECTIONS
============================================================ */

.rules-section {
    padding: 4px 0 27px;
}


.rules-section + .rules-section {
    padding-top: 27px;
    border-top: 1px solid #eceef1;
}


.rules-section:last-child {
    padding-bottom: 0;
}


.rules-section h3 {
    margin: 0 0 13px;
    font-size: 1.08rem;
    line-height: 1.4;
    color: #252b38;
}


.rules-section p {
    margin: 0 0 13px;
    font-size: 0.94rem;
    line-height: 1.75;
    color: #656d7d;
}


.rules-section p:last-child {
    margin-bottom: 0;
}


.rules-section ul {
    margin: 12px 0 0;
    padding-left: 21px;
}


.rules-section li {
    margin-bottom: 9px;
    padding-left: 3px;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #656d7d;
}


.rules-section a,
.rules-intro-note a {
    color: #9e1d37;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}


.rules-section strong {
    color: #343a47;
}


/* ============================================================
   ZERO TOLERANCE / IMPORTANT BLOCK
============================================================ */

.rules-section-alert {
    margin: 6px 0 26px;
    padding: 22px 24px;
    border: 1px solid #ecd8dc;
    border-left: 4px solid #9e1d37;
    border-radius: 14px;
    background: #fff9fa;
}


.rules-section-alert + .rules-section {
    border-top: 0;
}


.rules-alert-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #9e1d37;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
}


/* ============================================================
   PRIVACY INTRO
============================================================ */

.rules-intro-note {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid #f0dad5;
    border-radius: 14px;
    background: #fff1ee;
}


.rules-intro-note p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #626b7b;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .rules-main-grid {
        grid-template-columns: 1fr;
    }


    .rules-side-card {
        position: static;
    }


    .rules-side-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }


    .rules-side-nav a {
        background: #f5f3f1;
    }

}


@media (max-width: 620px) {

    .rules-container {
        width: min(100% - 28px, 1220px);
    }


    .rules-hero {
        padding: 42px 0 38px;
    }


    .rules-main-grid {
        gap: 20px;
        padding-top: 22px;
        padding-bottom: 44px;
    }


    .rules-card {
        padding: 22px 19px;
        border-radius: 17px;
    }


    .rules-language-heading {
        align-items: flex-start;
    }


    .rules-section-alert {
        padding: 18px;
    }

}
