:root {

    --background: #f5f5f7;
    --card: rgba(255,255,255,0.72);

    --text: #1d1d1f;
    --secondary: #6e6e73;

    --border: rgba(0,0,0,0.08);

    --accent: #0071e3;

    --shadow:
        0 20px 60px rgba(0,0,0,0.08);
    
    /* fix scroll with sticky navbar */
    --header-height: 90px;

}

.dark-mode {

    --background: #000;

    --card: rgba(28,28,30,0.75);

    --text: #ffffff;

    --secondary: #b3b3b8;

    --border: rgba(255,255,255,0.08);

    --shadow:
        0 20px 60px rgba(0,0,0,0.5);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        sans-serif;

    background: var(--background);

    color: var(--text);

    transition: 0.35s ease;

    overflow-x: hidden;
}

h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

li{
    overflow-wrap:anywhere;
    word-break:break-word;
}

.progress-bar {

    position: fixed;

    top: 0;
    left: 0;

    width: 0;

    height: 4px;

    background: var(--accent);

    z-index: 9999;
}

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 22px 80px;

    backdrop-filter: blur(30px);

    background: rgba(255,255,255,0.65);

    border-bottom:
        1px solid var(--border);
}

.dark-mode .navbar {

    background:
        rgba(0,0,0,0.6);
}

.logo {

    font-size: 24px;

    font-weight: 700;

    letter-spacing: -0.03em;
}

.navbar nav {

    display: flex;

    gap: 30px;

    align-items: center;
}

.navbar a {

    color: var(--secondary);

    text-decoration: none;

    font-size: 15px;
}

#themeToggle {

    border: none;

    cursor: pointer;

    background: var(--card);

    border-radius: 999px;

    padding: 10px 14px;

    font-size: 16px;
}

.hero {

    min-height: 80vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 80px 20px;
}

.hero-content {

    max-width: 900px;
}

.eyebrow {

    color: var(--accent);

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.hero h1 {

    margin-top: 20px;

    font-size: clamp(3rem, 8vw, 6rem);

    line-height: 0.95;

    letter-spacing: -0.06em;
}

.hero p {

    margin-top: 30px;

    font-size: 1.2rem;

    color: var(--secondary);

    line-height: 1.8;
}

.documents {

    max-width: 1400px;

    margin: auto;

    padding: 100px 40px;
}

/* fix scroll with sticky navbar */
section[id]{     
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-title {

    text-align: center;

    margin-bottom: 70px;
}

.section-title h2 {

    font-size: 48px;

    margin-bottom: 15px;
}

.section-title p {

    color: var(--secondary);
}

.cards {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap: 30px;
}

.cards-aml {

    display: grid;

    gap: 30px;
}


.card {

    text-decoration: none;

    color: inherit;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 30px;

    padding: 35px;

    backdrop-filter: blur(25px);

    box-shadow: var(--shadow);

    transition: 0.35s ease;
}

.card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(0,113,227,0.3);
}

.card-icon {

    font-size: 42px;

    margin-bottom: 25px;
}

.card h3 {

    font-size: 28px;

    margin-bottom: 15px;
}

.card p {

    color: var(--secondary);

    line-height: 1.8;

    margin-bottom: 20px;
}

.card span {

    color: var(--accent);

    font-weight: 600;
}

.compliance {

    max-width: 1100px;

    margin: auto;

    padding: 0 40px 120px;
}

.glass-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 32px;

    padding: 60px;

    text-align: center;

    backdrop-filter: blur(30px);

    box-shadow: var(--shadow);
}

.glass-card h2 {

    font-size: 42px;

    margin-bottom: 25px;
}

.glass-card p {

    color: var(--secondary);

    line-height: 1.9;

    font-size: 18px;
}

footer {

    border-top:
        1px solid var(--border);

    padding: 40px 20px;
}

.footer-content {

    max-width: 1400px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-content p {

    color: var(--secondary);
}

@media (max-width: 768px) {

    .navbar {

        padding: 20px;
    }

    .navbar nav {

        gap: 15px;
    }

    .hero h1 {

        font-size: 3rem;
    }

    .section-title h2 {

        font-size: 36px;
    }

    .glass-card {
        
        padding: 40px 25px;

    }

    .footer-content {

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

    h2 {
        font-size: 30px !important;
    }
}

/** START This is for Responsible Gaming */
.policy-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    max-width:1600px;
    margin:auto;
    gap:40px;
    padding:40px;
}

.sidebar{
    position:sticky;
    top:100px;
    height:fit-content;
    background:var(--card);
    backdrop-filter:blur(20px);
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
}

.sidebar ul{
    list-style:none;
    margin-top:20px;
}

.sidebar li{
    margin:12px 0;
}

.sidebar a{
    text-decoration:none;
    color:var(--secondary);
}

.policy-content{
    display:flex;
    flex-direction:column;
    /* gap:60px; edited*/
    gap:20px;
}

.policy-content.terms{
    display:flex;
    flex-direction:column;
    /* gap:60px; edited*/
    gap:10px;
}

.hero-small h1{
    /* font-size:64px; edited */
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing:-0.05em;
    margin:10px 0 20px;
}

.warning-card{
    background:#fff4d6;
    border-left:4px solid #ffb000;
    padding:24px;
    border-radius:18px;
    margin-top:24px;
}

.dark-mode .warning-card{
    background:#332700;
}

.assessment .question{
    margin-bottom:28px;
}

.answers{
    display:flex;
    gap:24px;
    margin-top:10px;
}

.primary-button{
    background:var(--accent);
    color:#fff;
    border:none;
    padding:14px 26px;
    border-radius:999px;
    cursor:pointer;
}

.policy-footer{
    text-align:center;
    padding:60px 0;
}

@media(max-width:900px){
    .policy-layout{
        grid-template-columns:1fr;
        padding:20px;
        gap:20px;
    }

    .sidebar{
        display:none;
    }

    .hero-small h1{
        /* font-size:46px; edited */
        font-size:32px;
    }
}
/** END This is for Responsible Gaming */

/* ScrollSpy */

.sidebar a.active{
    color:var(--accent);
    font-weight:600;
}

/* Fade Animation */

.fade{
    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;
}

.fade.visible{
    opacity:1;
    transform:translateY(0);
}

/* Accordion */

.accordion{
    overflow:hidden;
    border-radius:20px;
    margin-bottom:20px;
}

.terms .accordion{
    overflow:hidden;
    border-radius:20px;
    margin-bottom:0;
}

.accordion-header{
    cursor:pointer;
    padding:20px;
    font-weight:600;
}

.accordion-content{
    display:none;
    padding:0 20px 20px;
}

.terms .accordion-content{
    display:none;
    padding:0 20px 0 20px;
}

.accordion.open .accordion-content{
    display:block;
}

/* Search */

.search-box{
    width:100%;
    padding:14px 18px;
    border-radius:999px;
    border:1px solid var(--border);
    background:var(--card);
    color:var(--text);
    margin-bottom:24px;
    outline:none;
}

/* Back To Top */

#backToTop{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:999;
}

/** START This is for Terms and Conditions */
.meta-info{
    display:flex;
    gap:20px;
    margin-top:30px;
    flex-wrap:wrap;
}

.meta-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:20px;
    padding:16px 24px;
    backdrop-filter:blur(20px);
}

.meta-card strong{
    display:block;
    margin-bottom:6px;
}

.meta-card span{
    color:var(--secondary);
}

.accordion-content ul{
    margin:20px 0 20px 20px;
}

.accordion-content li{
    margin-bottom:10px;
}

.hero-small p{
    max-width:700px;
    color:var(--secondary);
    line-height:1.8;
}

ul.no-bullets {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.no-bullets li {
    margin-bottom: 15px;
}

ul.no-bullets-2 {
  list-style: none;
  padding-left: 10px;
  margin-left: 10px;
}
/** END This is for Terms and Conditions */

/* START This is for AML KYC */
.process-flow{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:20px 0;
}

.process-step{
    width:260px;
    text-align:center;
    padding:18px;
    border-radius:20px;
    background:var(--card);
    border:1px solid var(--border);
    backdrop-filter:blur(20px);
    font-weight:600;
}

.process-step span{
    display:block;
    margin-top:6px;
    color:var(--secondary);
    font-weight:400;
}

.process-arrow{
    font-size:24px;
    color:var(--secondary);
}

.aml-list{
    margin-top:24px;
    margin-bottom:24px;
    margin-left: 20px;
    padding-left: 20px;
}

.aml-list li{
    margin-bottom:12px;
    font-size:16px;
}
/* END This is for AML KYC */

/** START Customized **/
.text-left {
    text-align: left;
}
.glass-card p.text-line {
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
    text-align: justify;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.card p.text-line {
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
    text-align: justify;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-15 {
    margin-top: 15px;
    margin-bottom: 15px;
}
/** END Customized **/