/* =============================================================================
   Keybet.io - Responsible Gaming Page Stylesheet (Fully Responsive)
   ============================================================================= */

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

#responsible.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 30px 28px 60px;
    width: 100%;
    overflow-x: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Page Title Header ────────────────────────────────────────────────────── */
#responsible .page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    width: 100%;
}

#responsible .page-title > div {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

#responsible .page-title small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ── Dedicated Page Vertical Wrap ─────────────────────────────────────────── */
.resp-page-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* ── 01. Hero Banner ──────────────────────────────────────────────────────── */
.resp-hero-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.resp-hero-card::after {
    content: "07";
    position: absolute;
    right: 40px;
    bottom: -20px;
    font-size: 190px;
    font-weight: 900;
    color: rgba(245, 189, 50, 0.03);
    pointer-events: none;
    line-height: 1;
}

.resp-hero-split {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.resp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.resp-hero-title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 16px 0;
    font-weight: 900;
    color: #fff;
    word-break: break-word;
}

.resp-hero-title span {
    color: var(--gold);
}

.resp-hero-desc {
    color: #b3c0c8;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 14px 0;
    max-width: 680px;
    word-break: break-word;
}

.resp-hero-desc:last-of-type {
    margin-bottom: 24px;
}

.resp-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resp-hero-actions a {
    text-decoration: none;
}

.resp-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* ── 02. The 4 Pillars ────────────────────────────────────────────────────── */
.resp-pillars-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.resp-section-header {
    margin-bottom: 20px;
}

.resp-section-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    word-break: break-word;
}

.resp-section-header p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.resp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.resp-pillar-card {
    background: rgba(11, 23, 31, 0.75);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.resp-pillar-card:hover {
    border-color: rgba(245, 189, 50, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.resp-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid rgba(245, 189, 50, 0.35);
    background: rgba(245, 189, 50, 0.08);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.resp-pillar-info {
    min-width: 0;
    flex: 1;
}

.resp-pillar-info b {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
    word-break: break-word;
}

.resp-pillar-info small {
    color: #b3c0c8;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    word-break: break-word;
}

/* ── 03. Practical Tips for Healthy Gaming ────────────────────────────────── */
.resp-tips-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.resp-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.resp-tip-card {
    background: rgba(11, 23, 31, 0.6);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.22s ease;
}

.resp-tip-card:hover {
    border-color: rgba(245, 189, 50, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.resp-tip-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resp-tip-num {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(245, 189, 50, 0.12);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 189, 50, 0.25);
    flex-shrink: 0;
}

.resp-tip-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.resp-tip-desc {
    color: #a7b6c0;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    word-break: break-word;
}

/* ── 04. Account Tools: Limits & Self-Exclusion ───────────────────────────── */
.resp-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.resp-tool-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.resp-tool-card:hover {
    border-color: rgba(245, 189, 50, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.resp-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.resp-tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.resp-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(245, 189, 50, 0.1);
    border: 1px solid rgba(245, 189, 50, 0.35);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.resp-tool-header h3 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.resp-tool-body p {
    color: #b3c0c8;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    word-break: break-word;
}

.resp-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.resp-tool-footer a {
    text-decoration: none;
}

.resp-tool-email {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.resp-tool-email:hover {
    color: #fff;
    text-decoration: underline;
}

.resp-tool-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* ── 05. Underage Policy & Independent Support ────────────────────────────── */
.resp-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.resp-underage-card {
    background: linear-gradient(135deg, rgba(217, 83, 79, 0.08) 0%, var(--panel) 100%);
    border: 1px solid rgba(217, 83, 79, 0.35);
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.resp-underage-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.resp-18-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(217, 83, 79, 0.15);
    border: 2px solid #d9534f;
    color: #ff7675;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resp-underage-header h3 {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.resp-underage-card p {
    color: #b5c2c9;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    word-break: break-word;
}

.resp-help-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.resp-help-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.resp-help-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(245, 189, 50, 0.1);
    border: 1px solid rgba(245, 189, 50, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.resp-help-header h3 {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.resp-help-card p {
    color: #b5c2c9;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    word-break: break-word;
}

.resp-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.resp-help-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 23, 31, 0.85);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #d1dbe0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resp-help-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 189, 50, 0.08);
    transform: translateY(-1px);
}

/* =============================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet Optimization)
   ============================================================================= */

/* ── 1. Large Tablets & Small Laptops (<= 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    .resp-hero-split {
        grid-template-columns: 1.25fr 1fr;
        gap: 24px;
    }

    .resp-hero-card::after {
        right: 20px;
        font-size: 150px;
    }

    .resp-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 2. Standard Tablets & Mobile Landscape (<= 860px) ───────────────────── */
@media (max-width: 860px) {
    #responsible.page {
        padding: 24px 18px 48px;
    }

    .resp-hero-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-box {
        min-height: 140px;
        font-size: 46px;
    }

    .resp-tools-grid,
    .resp-bottom-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ── 3. Phones & Small Devices (<= 768px) ────────────────────────────────── */
@media (max-width: 768px) {
    #responsible.page {
        padding: 20px 14px 44px;
    }

    #responsible .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 18px;
    }

    #responsible .page-title > div {
        font-size: 21px;
    }

    .resp-hero-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .resp-hero-card::after {
        display: none; /* Prevents watermark overflow on phones */
    }

    .resp-hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .resp-hero-desc {
        font-size: 13.5px;
    }

    .feature-box {
        min-height: 110px;
        font-size: 38px;
        border-radius: 10px;
    }

    .resp-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .resp-hero-actions a,
    .resp-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .resp-hero-actions .btn.large {
        padding: 13px 20px;
        font-size: 15px;
    }

    .resp-pillars-wrap,
    .resp-tips-wrap {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .resp-pillars-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resp-tips-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resp-tool-card,
    .resp-underage-card,
    .resp-help-card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    /* Prevent footer actions from overflowing */
    .resp-tool-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .resp-tool-footer a,
    .resp-tool-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .resp-tool-email {
        justify-content: center;
        padding: 4px 0;
        font-size: 14px;
    }
}

/* ── 4. Small Mobile Devices (<= 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    #responsible.page {
        padding: 16px 10px 36px;
    }

    .resp-page-wrap {
        gap: 20px;
    }

    .resp-hero-card,
    .resp-pillars-wrap,
    .resp-tips-wrap,
    .resp-tool-card,
    .resp-underage-card,
    .resp-help-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .resp-hero-title {
        font-size: 21px;
    }

    .resp-pillar-card {
        padding: 14px 12px;
        gap: 12px;
    }

    .resp-pillar-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 8px;
    }

    .resp-pillar-info b {
        font-size: 14.5px;
    }

    .resp-pillar-info small {
        font-size: 12px;
    }

    .resp-tip-card {
        padding: 16px 14px;
        gap: 8px;
    }

    .resp-tip-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .resp-tip-title {
        font-size: 13.5px;
    }

    .resp-tip-desc {
        font-size: 12px;
    }

    .resp-help-links {
        flex-direction: column;
        gap: 8px;
    }

    .resp-help-chip {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ── 5. Compact Viewports (<= 360px down to 320px) ───────────────────────── */
@media (max-width: 360px) {
    #responsible.page {
        padding: 12px 6px 30px;
    }

    .resp-hero-title {
        font-size: 19px;
    }

    .resp-section-header h2 {
        font-size: 17px;
    }

    .resp-tool-header h3,
    .resp-underage-header h3,
    .resp-help-header h3 {
        font-size: 15px;
    }

    .resp-18-badge {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .resp-tool-icon,
    .resp-help-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
