/* ============================================================
   RULES / LEGAL / FAQ PAGE
============================================================ */

:root {
    --rules-navy: #101831;
    --rules-red: #8d151d;
    --rules-red-dark: #701017;
    --rules-gold: #c49754;
    --rules-cream: #fff9f3;
    --rules-cream-dark: #f7ede3;
    --rules-text: #342b28;
    --rules-muted: #746a65;
    --rules-border: #ead7c4;
}

.rules-page {
    width: 100%;
    float: left;
    position: relative;
    overflow: hidden;
    background-color: #fffdfb;
}

.rules-page *,
.rules-page *::before,
.rules-page *::after {
    box-sizing: border-box;
}

.rules-page-mirror {
    direction: rtl;
}


/* ============================================================
   HERO
============================================================ */

.rules-hero {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #2c0b0e;
}

.rules-hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

.rules-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(24, 6, 9, 0.93) 0%,
            rgba(52, 8, 12, 0.75) 34%,
            rgba(36, 8, 10, 0.28) 64%,
            rgba(0, 0, 0, 0.04) 100%
        );
}

.rules-page-mirror .rules-hero-overlay {
    background:
        linear-gradient(
            270deg,
            rgba(24, 6, 9, 0.93) 0%,
            rgba(52, 8, 12, 0.75) 34%,
            rgba(36, 8, 10, 0.28) 64%,
            rgba(0, 0, 0, 0.04) 100%
        );
}

.rules-hero-container {
    width: 1400px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.rules-hero-content {
    width: 650px;
    position: absolute;
    left: 20px;
    top: 57%;
    transform: translateY(-50%);
}

.rules-page-mirror .rules-hero-content {
    left: auto;
    right: 20px;
    text-align: right;
}

.rules-hero-small {
    display: block;
    margin-bottom: 13px;
    color: #e7c897;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 5px;
}

.rules-hero h1 {
    margin: 0 0 17px;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 55px;
    line-height: 1.08;
    font-weight: normal;
    overflow-wrap: break-word;
}

.rules-hero p {
    width: 540px;
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.65;
}


/* ============================================================
   CONTENT AREA
============================================================ */

.rules-content-section {
    width: 100%;
    padding: 55px 0 75px;
    background:
        radial-gradient(
            circle at 90% 4%,
            #f8eadd 0,
            transparent 330px
        ),
        #fffdfb;
}

.rules-container {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.rules-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}


/* ============================================================
   SIDEBAR
============================================================ */

.rules-sidebar {
    min-width: 0;
}

.rules-sidebar-card {
    width: 100%;
    position: sticky;
    top: 125px;
    padding: 26px 22px 22px;
    background-color: white;
    border: 1px solid var(--rules-border);
    border-radius: 16px;
    box-shadow: 0 8px 27px rgba(69, 43, 29, 0.06);
}

.rules-sidebar-small {
    display: block;
    margin-bottom: 6px;
    color: #aa7841;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 3px;
}

.rules-sidebar-card > h2 {
    margin: 0 0 22px;
    color: var(--rules-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: normal;
}

.rules-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rules-sidebar-nav > a {
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #5f554f;
    background-color: #fffaf6;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.rules-sidebar-nav > a:hover {
    color: var(--rules-red);
    border-color: #e3c8ad;
    transform: translateX(2px);
}

.rules-page-mirror .rules-sidebar-nav > a:hover {
    transform: translateX(-2px);
}

.rules-sidebar-nav > a.active {
    color: white;
    background:
        linear-gradient(
            135deg,
            #781218,
            #a51e25
        );
    border-color: #c39252;
}

.rules-nav-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f4e6d6;
}

.rules-nav-icon i {
    color: #9e682e;
    font-size: 14px;
}

.rules-sidebar-nav > a.active .rules-nav-icon {
    background-color: rgba(255, 255, 255, 0.14);
}

.rules-sidebar-nav > a.active span,
.rules-sidebar-nav > a.active i {
    color: white;
}


/* ============================================================
   DOCUMENT
============================================================ */

.rules-document {
    min-width: 0;
    padding: 38px 45px 42px;
    background-color: white;
    border: 1px solid var(--rules-border);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(69, 43, 29, 0.06);
}

.rules-document-head {
    width: 100%;
    padding-bottom: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 17px;
    border-bottom: 1px solid #ead9c7;
}

.rules-document-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f7eada;
}

.rules-document-icon i {
    color: #a76b2e;
    font-size: 23px;
}

.rules-document-head > div:last-child {
    min-width: 0;
}

.rules-document-head > div:last-child > span {
    display: block;
    margin-bottom: 5px;
    color: #a17648;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 3px;
}

.rules-document-head h2 {
    margin: 0;
    color: var(--rules-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    line-height: 1.15;
    font-weight: normal;
    overflow-wrap: break-word;
}


/* ============================================================
   POLICY TEXT
============================================================ */

.rules-document-body {
    width: 100%;
}

.rules-document-body p {
    margin: 0 0 16px;
    color: #4e4946;
    font-size: 14px;
    line-height: 1.78;
    overflow-wrap: break-word;
}

.rules-heading-main {
    margin: 34px 0 14px;
    padding-bottom: 10px;
    color: var(--rules-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.25;
    font-weight: normal;
    border-bottom: 1px solid #ead9c7;
    overflow-wrap: break-word;
}

.rules-document-body > .rules-heading-main:first-child {
    margin-top: 0;
}

.rules-heading-sub {
    margin: 24px 0 11px;
    color: #75451e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.3;
    font-weight: normal;
    overflow-wrap: break-word;
}

.rules-list {
    margin: 5px 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.rules-list li {
    position: relative;
    padding-left: 20px;
    color: #4e4946;
    font-size: 14px;
    line-height: 1.6;
}

.rules-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    left: 0;
    top: 8px;
    border-radius: 50%;
    background-color: var(--rules-red);
}

.rules-page-mirror .rules-list li {
    padding-left: 0;
    padding-right: 20px;
}

.rules-page-mirror .rules-list li::before {
    left: auto;
    right: 0;
}


/* ============================================================
   FAQ
============================================================ */

.rules-faq-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.rules-faq {
    width: 100%;
    overflow: hidden;
    background-color: #fffaf6;
    border: 1px solid #ead7c4;
    border-radius: 12px;
}

.rules-faq summary {
    width: 100%;
    min-height: 64px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
}

.rules-faq summary::-webkit-details-marker {
    display: none;
}

.rules-faq-question {
    color: #4d3d37;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}

.rules-faq-plus {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f2e3d2;
}

.rules-faq-plus i {
    color: var(--rules-red);
    font-size: 13px;
    transition: transform 0.25s ease;
}

.rules-faq[open] {
    border-color: #d4ad7a;
}

.rules-faq[open] .rules-faq-plus i {
    transform: rotate(45deg);
}

.rules-faq-answer {
    padding: 0 18px 20px;
    color: #635a55;
    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   CONTACT NOTE
============================================================ */

.rules-contact-note {
    width: 100%;
    margin-top: 38px;
    padding: 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background:
        linear-gradient(
            135deg,
            #791219,
            #a71e26
        );
    border: 1px solid #c7985d;
    border-radius: 13px;
}

.rules-contact-note-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
}

.rules-contact-note-icon i {
    color: var(--rules-red);
    font-size: 18px;
}

.rules-contact-note > div:nth-child(2) {
    min-width: 0;
}

.rules-contact-note strong {
    display: block;
    margin-bottom: 3px;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: normal;
}

.rules-contact-note span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.45;
}

.rules-contact-note > a {
    min-height: 41px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6d1318;
    background-color: white;
    border-radius: 25px;
    font-size: 11px;
    font-weight: bold;
}

.rules-contact-note > a i {
    color: #1c9d55;
    font-size: 17px;
}


/* ============================================================
   EMPTY
============================================================ */

.rules-empty {
    width: 100%;
    padding: 45px 20px;
    color: #6c625c;
    background-color: #fff8f2;
    border: 1px dashed #ddc4aa;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
}


/* ============================================================
   <= 1570px
============================================================ */

@media only screen and (max-width: 1570px) {

    .rules-hero-container,
    .rules-container {
        width: 1160px;
    }

    .rules-hero {
        height: 390px;
    }

    .rules-hero-content {
        width: 550px;
        left: 15px;
    }

    .rules-page-mirror .rules-hero-content {
        left: auto;
        right: 15px;
    }

    .rules-hero h1 {
        font-size: 47px;
    }

    .rules-hero p {
        width: 470px;
        font-size: 14px;
    }

    .rules-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 25px;
    }

    .rules-document {
        padding: 33px 36px 38px;
    }
}


/* ============================================================
   <= 1260px
============================================================ */

@media only screen and (max-width: 1260px) {

    .rules-hero-container,
    .rules-container {
        width: 840px;
    }

    .rules-hero {
        height: 330px;
    }

    .rules-hero-content {
        width: 440px;
        left: 10px;
    }

    .rules-page-mirror .rules-hero-content {
        right: 10px;
    }

    .rules-hero-small {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .rules-hero h1 {
        font-size: 38px;
    }

    .rules-hero p {
        width: 400px;
        font-size: 12px;
        line-height: 1.5;
    }

    .rules-content-section {
        padding: 42px 0 55px;
    }

    .rules-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px;
    }

    .rules-sidebar-card {
        top: 90px;
        padding: 20px 14px 15px;
    }

    .rules-sidebar-card > h2 {
        font-size: 23px;
    }

    .rules-sidebar-nav > a {
        min-height: 47px;
        padding: 7px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        font-size: 10px;
    }

    .rules-nav-icon {
        width: 32px;
        height: 32px;
    }

    .rules-document {
        padding: 27px 28px 32px;
    }

    .rules-document-head h2 {
        font-size: 28px;
    }

    .rules-heading-main {
        font-size: 23px;
    }

    .rules-heading-sub {
        font-size: 19px;
    }

    .rules-document-body p,
    .rules-list li {
        font-size: 13px;
    }

    .rules-contact-note {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rules-contact-note > a {
        grid-column: 1 / -1;
        width: 100%;
    }
}


/* ============================================================
   <= 900px
============================================================ */

@media only screen and (max-width: 900px) {

    .rules-hero-container,
    .rules-container {
        width: 680px;
    }

    .rules-hero {
        height: 300px;
    }

    .rules-hero-content {
        width: 390px;
    }

    .rules-hero h1 {
        font-size: 34px;
    }

    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-sidebar-card {
        position: relative;
        top: auto;
        padding: 20px;
    }

    .rules-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rules-document {
        padding: 32px 35px 36px;
    }
}


/* ============================================================
   <= 720px
============================================================ */

@media only screen and (max-width: 720px) {

    .rules-hero-container,
    .rules-container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .rules-hero {
        height: 360px;
    }

    .rules-hero-image {
        object-position: 62% center;
    }

    .rules-hero-overlay,
    .rules-page-mirror .rules-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(25, 5, 8, 0.17) 0%,
                rgba(45, 6, 10, 0.45) 38%,
                rgba(35, 5, 8, 0.94) 100%
            );
    }

    .rules-hero-content,
    .rules-page-mirror .rules-hero-content {
        width: calc(100% - 28px);
        left: 14px;
        right: auto;
        top: auto;
        bottom: 28px;
        transform: none;
        text-align: left;
    }

    .rules-page-mirror .rules-hero-content {
        text-align: right;
    }

    .rules-hero h1 {
        font-size: 33px;
    }

    .rules-hero p {
        width: 100%;
        max-width: 440px;
        font-size: 12px;
    }

    .rules-content-section {
        padding: 32px 0 42px;
    }

    .rules-sidebar-card {
        padding: 17px 14px;
        border-radius: 12px;
    }

    .rules-sidebar-card > h2 {
        margin-bottom: 15px;
        font-size: 24px;
    }

    .rules-sidebar-nav {
        width: calc(100% + 28px);
        margin-left: -14px;
        padding: 0 14px 5px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .rules-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .rules-sidebar-nav > a {
        width: auto;
        min-width: 180px;
        flex: 0 0 auto;
    }

    .rules-document {
        padding: 23px 18px 27px;
        border-radius: 13px;
    }

    .rules-document-head {
        gap: 12px;
        padding-bottom: 19px;
        margin-bottom: 23px;
    }

    .rules-document-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .rules-document-head h2 {
        font-size: 25px;
    }

    .rules-heading-main {
        margin-top: 28px;
        font-size: 22px;
    }

    .rules-heading-sub {
        margin-top: 21px;
        font-size: 18px;
    }

    .rules-document-body p,
    .rules-list li {
        font-size: 12px;
        line-height: 1.7;
    }

    .rules-faq-question {
        font-size: 14px;
    }

    .rules-faq-answer {
        font-size: 12px;
    }

    .rules-contact-note {
        margin-top: 30px;
        padding: 14px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }
}


/* ============================================================
   <= 420px
============================================================ */

@media only screen and (max-width: 420px) {

    .rules-hero-container,
    .rules-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .rules-hero {
        height: 335px;
    }

    .rules-hero-content,
    .rules-page-mirror .rules-hero-content {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 23px;
    }

    .rules-hero h1 {
        font-size: 29px;
    }

    .rules-sidebar-nav {
        width: calc(100% + 20px);
        margin-left: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .rules-sidebar-nav > a {
        min-width: 165px;
    }

    .rules-document {
        padding: 20px 14px 24px;
    }

    .rules-document-head h2 {
        font-size: 22px;
    }

    .rules-heading-main {
        font-size: 20px;
    }

    .rules-heading-sub {
        font-size: 17px;
    }
}
