/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0D0D0D;
    /* Modern dark background */
    color: #EAEAEA;
    /* Light text for contrast */
    display: flex;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #FFD700;
    /* Golden Yellow */
    padding: 30px 20px;
    height: 100vh;
    /* Full height */
    position: fixed;
    overflow-y: auto;
    /* Enables scrolling if content is too long */
    scrollbar-width: thin;
    /* For modern browsers */
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Custom scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar h2 {
    color: #000;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 12px 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    /* Dark text for contrast */
    font-size: 15px;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 18px;
}

/* Content Section */
.content {
    margin-left: 300px;
    /* Offset for sidebar */
    padding: 50px;
    max-width: calc(100% - 320px);
    /* Adjusted to take up more space */
    width: 100%;
}

h1 {
    font-size: 40px;
    font-weight: 600;
    color: #FFD700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

h1 span {
    display: block;
}

.update-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Links */
a {
    color: #FFD700;
    /* Golden Yellow */
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .sidebar {
        width: 250px;
    }

    .content {
        margin-left: 270px;
        padding: 30px;
        max-width: calc(100% - 290px);
    }
}

@media (max-width: 600px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar ul li {
        flex: 1 1 45%;
    }

    .content {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }
}

/* Additional Sections for Terms & Conditions */
.content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #FFD700;
    margin-top: 20px;
}

.content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.content ul li {
    margin-bottom: 10px;
}

.content .section {
    margin-bottom: 30px;
}

/* Back Button Styles */
.back-button {
    position: absolute;
    right: 0;
    /* Changed from left to right */
    top: 10px;
    background-color: #E6A317;
    padding: 15px 0;
    border-radius: 10px 0px 0px 10px;
    /* Adjusted border radius */
    display: flex;
    height: 120px;
    width: 10px;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}

/* Use ::after to add text only on hover */
.back-button::after {
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* On hover, expand width and show text */
.back-button:hover {
    background-color: #D09014;
    width: 50px;
}

.back-button:hover::after {
    color: #bbb;
    content: "BACK";
    opacity: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 5px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}