/*
 * PROJECT: CraftRicks
 * DOMAIN: craftricks.com
 * GAME: Checkers Master
 *
 * DESIGN:
 * - CSS: Memphis Style (BEM methodology)
 * - Palette: Memphis - Pink #ff6b9d, Yellow #ffc947, patterns
 * - Effect: Geometric patterns with Memphis-style shapes
 * - Fonts: Bungee + Cabin
 * - Buttons: Geometric Memphis style with bold borders
 */

/* ========== 1. VARIABLES ========== */
:root {
    --memphis-pink: #ff6b9d;
    --memphis-yellow: #ffc947;
    --memphis-blue: #4ecdc4;
    --memphis-purple: #a8e6cf;
    --memphis-orange: #ff8b94;
    --memphis-mint: #88d8c0;
    --memphis-coral: #fab1a0;
    --memphis-lavender: #e17055;

    --white: #ffffff;
    --black: #2d3436;
    --gray-light: #ddd;
    --gray-dark: #636e72;

    --font-heading: 'Bungee', sans-serif;
    --font-body: 'Cabin', sans-serif;

    --shadow-small: 4px 4px 0 var(--black);
    --shadow-medium: 6px 6px 0 var(--black);
    --shadow-large: 8px 8px 0 var(--black);

    --header-height: 70px;
}

/* ========== 2. RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--memphis-pink);
}

/* ========== 3. MEMPHIS BACKGROUND PATTERN ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        radial-gradient(circle at 20% 80%, var(--memphis-pink) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, var(--memphis-yellow) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, var(--memphis-blue) 1px, transparent 1px),
        linear-gradient(45deg, var(--memphis-purple) 1px, transparent 1px),
        linear-gradient(-45deg, var(--memphis-orange) 1px, transparent 1px);
    background-size: 100px 100px, 120px 120px, 60px 60px, 80px 80px, 80px 80px;
    background-position: 0 0, 40px 40px, 20px 20px, 0 0, 0 0;
    opacity: 0.1;
    pointer-events: none;
}

/* ========== 4. LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 5. HEADER & NAVIGATION ========== */
.header {
    background: var(--white);
    border-bottom: 4px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--memphis-pink);
    text-decoration: none;
    text-shadow: 3px 3px 0 var(--black);
    transform: rotate(-2deg);
    display: inline-block;
    white-space: nowrap;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav__link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--memphis-pink);
    border-color: var(--black);
    background: var(--memphis-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* ========== 6. MOBILE MENU ========== */
@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 4px solid var(--black);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        gap: 0.5rem;
    }

    .nav__list.nav__list--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }
}

/* ========== 7. MAIN CONTENT ========== */
.main {
    min-height: calc(100vh - 200px);
}

/* ========== 8. HERO SECTION ========== */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--memphis-pink);
    border: 4px solid var(--black);
    transform: rotate(45deg);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--memphis-yellow);
    border-radius: 50%;
    border: 4px solid var(--black);
    z-index: -1;
}

.game-showcase {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.game-showcase__icon-wrap {
    display: inline-block;
    background: var(--memphis-yellow);
    border: 4px solid var(--black);
    padding: 1rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1.5rem;
    transform: rotate(3deg);
}

.game-showcase__icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--black);
    text-shadow: var(--shadow-medium);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero__cta {
    display: inline-block;
    background: var(--memphis-blue);
    color: var(--black);
    text-decoration: none;
    padding: 1rem 3rem;
    border: 4px solid var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.hero__cta:hover {
    background: var(--memphis-pink);
    color: var(--black);
    transform: rotate(-1deg) translateY(-3px);
    box-shadow: 10px 10px 0 var(--black);
}

/* ========== 9. FEATURES SECTION ========== */
.features-section {
    padding: 4rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--memphis-yellow),
        var(--memphis-yellow) 10px,
        var(--memphis-pink) 10px,
        var(--memphis-pink) 20px
    );
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
}

.features-section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--black);
    text-shadow: var(--shadow-small);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 4px solid var(--black);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: var(--shadow-large);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--memphis-yellow);
    border: 3px solid var(--black);
    border-radius: 50%;
}

.feature-card:nth-child(2)::after {
    background: var(--memphis-pink);
    border-radius: 0;
    transform: rotate(45deg);
}

.feature-card:nth-child(3)::after {
    background: var(--memphis-blue);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.feature-card__text {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ========== 10. FAQ SECTION ========== */
.faq-section {
    padding: 4rem 0;
}

.faq-section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    text-shadow: var(--shadow-small);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 3px solid var(--black);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--memphis-pink);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question {
    background: var(--memphis-yellow);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* ========== 11. LATEST ARTICLES ========== */
.latest-articles {
    padding: 4rem 0;
}

.latest-articles__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    text-shadow: var(--shadow-small);
}

/* ========== 12. ARTICLE CARDS ========== */
.article-card {
    position: relative;
    background: var(--white);
    border: 4px solid var(--black);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: var(--shadow-large);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--memphis-yellow);
    border: 2px solid var(--black);
    transform: rotate(45deg);
}

.article-card:nth-child(even)::before {
    background: var(--memphis-pink);
}

.article-card__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.article-card__excerpt {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.stars {
    color: #ffc107;
    text-shadow: 1px 1px 0 var(--black);
    font-size: 1.1rem;
}

/* ========== 13. GRID LAYOUT ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* ========== 14. CTA SECTION ========== */
.cta-section {
    padding: 4rem 0;
}

.cta-section__inner {
    background: var(--black);
    color: var(--white);
    padding: 3rem;
    text-align: center;
    border: 4px solid var(--black);
    position: relative;
}

.cta-section__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--memphis-pink), var(--memphis-yellow), var(--memphis-blue), var(--memphis-purple));
}

.cta-section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--memphis-yellow);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.cta-section__text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========== 15. PAGE HERO ========== */
.page-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--black);
    text-shadow: var(--shadow-medium);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.page-hero__subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== 16. CONTENT SECTIONS ========== */
.content-section {
    padding: 3rem 0;
}

.content-section--alt {
    background: rgba(168, 230, 207, 0.1);
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
    position: relative;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    text-shadow: var(--shadow-small);
}

.content-block__text {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ========== 17. MISSION SECTION ========== */
.mission-section {
    padding: 4rem 0;
}

.mission-section__inner {
    background: var(--black);
    color: var(--white);
    padding: 3rem;
    position: relative;
    border: 4px solid var(--black);
    text-align: center;
}

.mission-section__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--memphis-pink), var(--memphis-yellow), var(--memphis-blue), var(--memphis-purple));
}

.mission-section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--memphis-yellow);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.mission-section__text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.mission-section__values {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mission-section__value {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--white);
    font-weight: 600;
    color: var(--black);
}

.mission-section__value--pink { background: var(--memphis-pink); }
.mission-section__value--yellow { background: var(--memphis-yellow); }
.mission-section__value--blue { background: var(--memphis-blue); }
.mission-section__value--green { background: var(--memphis-purple); }

/* ========== 18. BTN GROUP ========== */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== 19. BUTTONS ========== */
.btn {
    display: inline-block;
    background: var(--memphis-blue);
    color: var(--black);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 3px solid var(--black);
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--memphis-pink);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn--primary {
    background: var(--memphis-yellow);
}

.btn--secondary {
    background: var(--memphis-purple);
}

/* ========== 20. RULES LIST (How to Play) ========== */
.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--white);
    border: 3px solid var(--black);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
}

.rule-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
}

.rule-item__number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: var(--memphis-pink);
    border: 3px solid var(--black);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    flex-shrink: 0;
}

.rule-item:nth-child(even) .rule-item__number {
    background: var(--memphis-yellow);
}

.rule-item:nth-child(3n) .rule-item__number {
    background: var(--memphis-blue);
}

.rule-item__content h3 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.rule-item__content p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ========== 21. BLOG PAGE ========== */
.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.blog-filter {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 var(--black);
}

.blog-filter:hover,
.blog-filter--active {
    background: var(--memphis-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border: 4px solid var(--black);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.blog-card__image {
    border-bottom: 4px solid var(--black);
}

.blog-card__placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card__placeholder--pink { background: var(--memphis-pink); }
.blog-card__placeholder--yellow { background: var(--memphis-yellow); }
.blog-card__placeholder--blue { background: var(--memphis-blue); }

.blog-card__content {
    padding: 1.5rem;
}

.blog-card__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--black);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.blog-card__badge--pink { background: var(--memphis-pink); }
.blog-card__badge--yellow { background: var(--memphis-yellow); }
.blog-card__badge--blue { background: var(--memphis-blue); }

.blog-card__title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.blog-card__excerpt {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card__meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.blog-card__btn {
    display: inline-block;
}

/* ========== 22. CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap {
    background: var(--white);
    border: 4px solid var(--black);
    padding: 2.5rem;
    box-shadow: var(--shadow-large);
    position: relative;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--memphis-orange);
    border: 3px solid var(--black);
    border-radius: 50%;
}

/* ========== 23. FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 3px solid var(--black);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: var(--memphis-mint);
    box-shadow: var(--shadow-small);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--memphis-lavender);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.form-success {
    background: var(--memphis-purple);
    border: 3px solid var(--black);
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-small);
}

.form-success p {
    font-weight: 600;
    color: var(--black);
}

/* ========== 24. CONTACT INFO ========== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info__card {
    background: var(--white);
    border: 4px solid var(--black);
    padding: 1.5rem;
    box-shadow: var(--shadow-small);
    position: relative;
}

.contact-info__card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    background: var(--memphis-yellow);
    border: 2px solid var(--black);
    transform: rotate(45deg);
}

.contact-info__card:nth-child(2)::before {
    background: var(--memphis-pink);
    border-radius: 50%;
    transform: none;
}

.contact-info__card:nth-child(3)::before {
    background: var(--memphis-blue);
}

.contact-info__title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.contact-info__text {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info__link {
    color: var(--memphis-pink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--memphis-pink);
    transition: color 0.3s;
}

.contact-info__link:hover {
    color: var(--memphis-lavender);
}

.contact-info__list {
    list-style: none;
    padding: 0;
}

.contact-info__list li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-dark);
}

.contact-info__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--memphis-pink);
    font-weight: 700;
}

/* ========== 25. LEGAL CONTENT ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--memphis-yellow);
}

.legal-section h3 {
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: var(--black);
}

.legal-section p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

.legal-section ul li {
    margin-bottom: 0.4rem;
}

.legal-section a {
    color: var(--memphis-pink);
    font-weight: 600;
}

/* ========== 26. COOKIE CONSENT ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--black);
    color: var(--white);
    z-index: 9999;
    border-top: 4px solid var(--memphis-yellow);
    padding: 1.25rem 0;
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: var(--memphis-yellow);
    text-decoration: underline;
}

.cookie-consent__btn {
    white-space: nowrap;
}

/* ========== 27. FOOTER ========== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        90deg,
        var(--memphis-pink) 0%,
        var(--memphis-yellow) 25%,
        var(--memphis-blue) 50%,
        var(--memphis-purple) 75%,
        var(--memphis-orange) 100%
    );
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--memphis-pink);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.footer__description {
    color: var(--gray-light);
    line-height: 1.6;
}

.footer__subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--memphis-yellow);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--memphis-pink);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-dark);
}

.footer__copyright {
    color: var(--gray-light);
}

/* ========== 28. GAME SECTION (for index with iframe) ========== */
.game-section {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--memphis-yellow),
        var(--memphis-yellow) 10px,
        var(--memphis-pink) 10px,
        var(--memphis-pink) 20px
    );
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
}

.game-section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    text-shadow: var(--shadow-small);
}

.game-container {
    text-align: center;
    background: var(--white);
    border: 6px solid var(--black);
    padding: 2rem;
    box-shadow: var(--shadow-large);
    position: relative;
    transform: rotate(-0.5deg);
}

.game-container::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--memphis-orange);
    border: 4px solid var(--black);
    border-radius: 50%;
}

.game-frame {
    width: 100%;
    max-width: 800px;
    height: 600px;
    border: 4px solid var(--black);
    background: var(--gray-light);
    margin: 0 auto;
}

/* ========== 29. RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero__title,
    .page-hero__title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .rule-item {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-section__inner {
        padding: 2rem 1.5rem;
    }

    .cta-section__title {
        font-size: 2rem;
    }

    .hero__cta {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
    }

    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
    }

    .features-section__title,
    .faq-section__title,
    .latest-articles__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title,
    .page-hero__title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .content-block__title {
        font-size: 1.6rem;
    }

    .blog-filters {
        gap: 0.5rem;
    }

    .blog-filter {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ========== 30. UTILITIES ========== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ========== 31. CARD GLOBAL POSITION ========== */
.offer-card,
.card {
    position: relative;
}