@charset "utf-8";

/* ========================================================
   تنسيق صفحة Terms of Service & Rules
   ======================================================== */

.rules-container {
    width: 100%;
    box-sizing: border-box;
}

/* 1. كارت العنوان الرئيسي */
.rules-header-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(218, 165, 32, 0.25);
    margin-bottom: 14px;
}

.rules-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #daa520;
    flex-shrink: 0;
}

.rules-header-text h2 {
    color: #e5e0d8;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rules-header-text p {
    color: #8a8580;
    font-size: 11px;
    margin: 3px 0 0 0;
}

/* 2. صندوق التنبيه الهام (Important Notice) */
.rules-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 16px;
}

.rules-notice-icon {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 1px;
}

.rules-notice-text h3 {
    color: #f59e0b;
    font-size: 12.5px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.rules-notice-text p {
    color: #b5b0a8;
    font-size: 11px;
    line-height: 1.55;
    margin: 0;
}

/* 3. أكورديون الأقسام (القوائم المنسدلة التفاعلية) */
.accordion-item {
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(218, 165, 32, 0.2);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.accordion-item:hover {
    border-color: rgba(218, 165, 32, 0.4);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.accordion-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #daa520;
    flex-shrink: 0;
}

.accordion-texts h3 {
    color: #e5e0d8;
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
}

.accordion-texts p {
    color: #8a8580;
    font-size: 10.5px;
    margin: 2px 0 0 0;
}

.accordion-arrow {
    color: #8a8580;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: #daa520;
}

/* محتوى الأقسام الداخلي */
.accordion-content {
    display: none;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(218, 165, 32, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

/* تنسيق بنود القوانين */
.rule-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rule-num {
    background: rgba(218, 165, 32, 0.12);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #daa520;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}

.rule-text {
    color: #b5b0a8;
    font-size: 11.5px;
    line-height: 1.5;
    margin: 0;
}

.rule-text strong {
    color: #e5e0d8;
}

/* 4. تذييل التواصل */
.rules-footer-contact {
    text-align: center;
    padding: 16px 0 6px;
    color: #8a8580;
    font-size: 11px;
}

.rules-footer-contact a {
    color: #daa520;
    font-weight: 700;
    text-decoration: none;
}

.rules-footer-contact a:hover {
    text-decoration: underline;
}