﻿/* =========================================================
   GEDIAN SPORTS - PUBLIC TERMS PAGE
   Professional legal / mobile-first design
   ========================================================= */

.gedian-terms-page {
    --terms-green: #5B8C3B;
    --terms-green-dark: #416d29;
    --terms-green-soft: #eff6eb;
    --terms-navy: #071a33;
    --terms-text: #2d3a44;
    --terms-muted: #76838d;
    --terms-border: #e0e7de;
    --terms-bg: #f7f9f7;
    --terms-warning: #9b6d17;
    --terms-danger: #9c3e3e;
    min-height: 100vh;
    padding: 8px 0 42px;
    background: var(--terms-bg);
    color: var(--terms-text);
    font-family: "Tajawal", sans-serif;
}

.terms-shell {
    width: min(1180px, calc(100% - 14px));
    margin: 0 auto;
}

.gedian-terms-page a {
    color: var(--terms-green-dark);
    text-decoration: none;
}


/* =========================================================
   HERO
   ========================================================= */

.terms-hero {
    display: grid;
    gap: 18px;
    overflow: hidden;
    padding: 24px 18px;
    border: 1px solid #dce5d9;
    border-radius: 18px;
    background: radial-gradient( circle at 12% 20%, rgba(91,140,59,.15), transparent 18rem), linear-gradient( 135deg, #fff, #f5f8f3);
    box-shadow: 0 8px 26px rgba(7,26,51,.045);
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--terms-green-dark);
    font-size: .61rem;
    font-weight: 950;
    direction: ltr;
}

    .terms-eyebrow::before {
        content: "";
        width: 18px;
        height: 3px;
        border-radius: 999px;
        background: var(--terms-green);
    }

.terms-hero h1 {
    margin: 8px 0 0;
    color: var(--terms-navy);
    font-size: clamp(2rem, 8vw, 3.6rem);
    font-weight: 950;
    line-height: 1;
}

.terms-hero-lead {
    max-width: 790px;
    margin: 13px 0 0;
    color: #354650;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.9;
}

.terms-hero-sub {
    max-width: 800px;
    margin: 9px 0 0;
    color: var(--terms-muted);
    font-size: .7rem;
    line-height: 1.85;
}

.terms-effective {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 7px 10px;
    border: 1px solid #d8e3d3;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
}

    .terms-effective span {
        color: #849087;
        font-size: .51rem;
    }

    .terms-effective strong {
        color: var(--terms-green-dark);
        font-size: .58rem;
    }

.terms-hero-mark {
    display: grid;
    min-height: 210px;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 16px;
    border: 1px solid #e0e7de;
    border-radius: 15px;
    background: rgba(255,255,255,.75);
    text-align: center;
}

    .terms-hero-mark img {
        width: min(190px, 70%);
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 9px 16px rgba(7,26,51,.1));
    }

    .terms-hero-mark strong,
    .terms-hero-mark small {
        display: block;
    }

    .terms-hero-mark strong {
        color: var(--terms-navy);
        font-size: .61rem;
        font-weight: 950;
    }

    .terms-hero-mark small {
        margin-top: 2px;
        color: #879198;
        font-size: .49rem;
    }


/* =========================================================
   IMPORTANT NOTICE
   ========================================================= */

.terms-important-notice {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 15px;
    border: 1px solid #ead8a9;
    border-radius: 13px;
    background: linear-gradient( 135deg, #fffaf0, #fff);
}

.terms-notice-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #fff0c8;
    color: #8a6416;
    font-family: Arial, sans-serif;
    font-size: .95rem;
    font-weight: 950;
}

.terms-important-notice strong {
    display: block;
    color: #654b16;
    font-size: .68rem;
    font-weight: 950;
}

.terms-important-notice p {
    margin: 6px 0 0;
    color: #77684a;
    font-size: .57rem;
    line-height: 1.8;
}


/* =========================================================
   LAYOUT / INDEX
   ========================================================= */

.terms-layout {
    display: block;
    margin-top: 12px;
}

.terms-index {
    display: none;
}

.terms-index-card {
    position: sticky;
    top: 12px;
    overflow: hidden;
    max-height: calc(100vh - 24px);
    border: 1px solid var(--terms-border);
    border-radius: 13px;
    background: #fff;
}

    .terms-index-card > span {
        display: block;
        padding: 11px 12px;
        border-bottom: 1px solid #e9eee7;
        background: #f9fbf8;
        color: var(--terms-navy);
        font-size: .62rem;
        font-weight: 950;
    }

.terms-index nav {
    display: grid;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
}

    .terms-index nav a {
        padding: 6px 7px;
        border-radius: 7px;
        color: #66737d;
        font-size: .48rem;
        font-weight: 800;
        line-height: 1.45;
    }

        .terms-index nav a:hover {
            background: var(--terms-green-soft);
            color: var(--terms-green-dark);
        }


/* =========================================================
   MOBILE INDEX
   ========================================================= */

.terms-mobile-index {
    margin-bottom: 8px;
    border: 1px solid var(--terms-border);
    border-radius: 11px;
    background: #fff;
}

    .terms-mobile-index summary {
        padding: 10px 12px;
        color: var(--terms-navy);
        font-size: .6rem;
        font-weight: 950;
        cursor: pointer;
    }

    .terms-mobile-index > div {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px 10px;
    }

    .terms-mobile-index a {
        padding: 4px 7px;
        border-radius: 999px;
        background: #f1f5ef;
        font-size: .48rem;
        font-weight: 850;
    }


/* =========================================================
   TERMS CONTENT
   ========================================================= */

.terms-content {
    min-width: 0;
}

.terms-clause {
    position: relative;
    display: grid;
    grid-template-columns: 35px minmax(0,1fr);
    gap: 10px;
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid var(--terms-border);
    border-radius: 12px;
    background: #fff;
    scroll-margin-top: 15px;
}

    .terms-clause.critical {
        border-color: #e4d7c7;
        box-shadow: inset -3px 0 0 #d1a45b;
    }

.terms-clause-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--terms-green-soft);
    color: var(--terms-green-dark);
    font-size: .52rem;
    font-weight: 950;
}

.terms-clause h2 {
    margin: 2px 0 0;
    color: var(--terms-navy);
    font-size: .77rem;
    font-weight: 950;
    line-height: 1.5;
}

.terms-clause p {
    margin: 8px 0 0;
    color: #68757f;
    font-size: .58rem;
    line-height: 1.95;
}

.terms-clause ul,
.terms-clause ol {
    display: grid;
    gap: 6px;
    margin: 9px 0 0;
    padding-right: 18px;
    color: #68757f;
    font-size: .56rem;
    line-height: 1.85;
}

.terms-clause li::marker {
    color: var(--terms-green);
    font-weight: 900;
}

.terms-highlight,
.terms-danger-highlight {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: .55rem;
    font-weight: 800;
    line-height: 1.75;
}

.terms-highlight {
    border: 1px solid #d9e5d4;
    background: #f4f9f1;
    color: #5d7353;
}

.terms-danger-highlight {
    border: 1px solid #ead0d0;
    background: #fff6f6;
    color: #875050;
}


/* =========================================================
   CONTACT
   ========================================================= */

.terms-contact-grid {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

    .terms-contact-grid > * {
        min-width: 0;
        padding: 9px 10px;
        border: 1px solid #e1e7df;
        border-radius: 8px;
        background: #fafcfa;
        color: inherit;
    }

    .terms-contact-grid span,
    .terms-contact-grid strong {
        display: block;
    }

    .terms-contact-grid span {
        color: #8b959b;
        font-size: .46rem;
    }

    .terms-contact-grid strong {
        overflow-wrap: anywhere;
        margin-top: 2px;
        color: #41515c;
        font-size: .54rem;
        font-weight: 900;
    }


/* =========================================================
   FINAL CARD
   ========================================================= */

.terms-final-card {
    display: grid;
    gap: 15px;
    align-items: center;
    padding: 21px 16px;
    border-radius: 14px;
    background: radial-gradient( circle at 90% 10%, rgba(255,255,255,.07), transparent 15rem), linear-gradient( 135deg, var(--terms-green-dark), #173720);
    color: #fff;
}

    .terms-final-card > div:first-child > span {
        color: #dcebd4;
        font-size: .5rem;
        font-weight: 950;
    }

    .terms-final-card h2 {
        max-width: 730px;
        margin: 5px 0 0;
        font-size: 1.05rem;
        font-weight: 950;
        line-height: 1.55;
    }

    .terms-final-card p {
        max-width: 760px;
        margin: 7px 0 0;
        color: rgba(255,255,255,.71);
        font-size: .58rem;
        line-height: 1.85;
    }

.terms-final-meta {
    min-width: 140px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
}

    .terms-final-meta span,
    .terms-final-meta strong {
        display: block;
    }

    .terms-final-meta span {
        color: rgba(255,255,255,.58);
        font-size: .45rem;
    }

    .terms-final-meta strong {
        margin-top: 2px;
        font-size: .57rem;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 640px) {

    .terms-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .terms-hero {
        padding: 30px 24px;
    }

    .terms-clause {
        grid-template-columns: 41px minmax(0,1fr);
        padding: 17px;
    }

    .terms-clause-number {
        width: 39px;
        height: 39px;
    }

    .terms-contact-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .terms-final-card {
        padding: 26px 22px;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    .gedian-terms-page {
        padding-top: 14px;
    }

    .terms-hero {
        grid-template-columns: minmax(0,1.45fr) minmax(275px,.55fr);
        min-height: 365px;
        align-items: center;
        padding: 36px 34px;
    }

    .terms-hero-mark {
        min-height: 260px;
    }

    .terms-layout {
        display: grid;
        grid-template-columns: 235px minmax(0,1fr);
        gap: 10px;
        align-items: start;
    }

    .terms-index {
        display: block;
    }

    .terms-mobile-index {
        display: none;
    }

    .terms-clause {
        grid-template-columns: 46px minmax(0,1fr);
        padding: 20px;
    }

        .terms-clause h2 {
            font-size: .83rem;
        }

        .terms-clause p {
            font-size: .6rem;
        }

        .terms-clause ul,
        .terms-clause ol {
            font-size: .58rem;
        }

    .terms-final-card {
        grid-template-columns: minmax(0,1fr) auto;
        padding: 30px 27px;
    }
}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 380px) {

    .terms-shell {
        width: min(1180px, calc(100% - 8px));
    }

    .terms-hero {
        padding: 20px 13px;
    }

    .terms-important-notice {
        grid-template-columns: 31px minmax(0,1fr);
        padding: 12px;
    }

    .terms-notice-icon {
        width: 30px;
        height: 30px;
    }

    .terms-clause {
        grid-template-columns: 29px minmax(0,1fr);
        gap: 7px;
        padding: 11px;
    }

    .terms-clause-number {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }
}
