.gradient-1 {
    top: 20px;
    left: -20px;
}

.gradient-3 {
    top: 20px;
    left: 0px;
}

@media (max-width: 767px) {
    .gradient-1 {
        top: 190px;
        left: -90px;
    }
    
    .gradient-3 {
        top: 190px;
        left: -70px;
    }
}


.hero-section {
    min-height: 60vh;
}

.docs-section {
    padding-top: 0rem; 
    padding-right: 2rem; 
    padding-bottom: 2rem; 
    padding-left: 2rem; 
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: -12px;
}

.docs-content {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.docs-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text_color);
}

[data-theme="light"] .docs-title {
    color: var(--text_color);
}

.docs-subtitle {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text_color);
    border-bottom: 1px solid rgba(109, 58, 255, 0.2);
    padding-bottom: 0.5rem;
}

[data-theme="light"] .docs-subtitle {
    color: var(--text_color);
}

.docs-heading {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--accent-color);
}

.docs-text {
    color: var(--text_color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-code {
    background-color: rgba(20, 20, 20, 0.9);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    font-family: monospace;
    overflow-x: auto;
    margin: 1rem 0;
    color: #eee;
}

[data-theme="light"] .docs-code {
    background-color: rgba(240, 240, 240, 0.9);
    color: #222;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.docs-table th {
    text-align: left;
    background-color: rgba(109, 58, 255, 0.1);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(109, 58, 255, 0.2);
    color: var(--text_color);
}

.docs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}



.docs-note {
    background-color: rgba(109, 58, 255, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

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

.docs-card {
    background-color: rgba(17, 17, 17, 0.98);
    border-radius: 8px;
    padding-top: 0.5rem; 
    padding-right: 1.5rem; 
    padding-bottom: 0.5rem; 
    padding-left: 1.5rem; 
    transition: transform 0.3s ease;
}

[data-theme="light"] .docs-card {
    background-color: var(--block_background);
}

.docs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(109, 58, 255, 0.15);
    border-color: rgba(109, 58, 255, 0.3);
}

.docs-card-title {
    font-size: 1.3rem;
    color: var(--text_color);
    margin-bottom: 1rem;
    font-weight: 600;
}

[data-theme="light"] .docs-card-title {
    color: var(--text_color);
}

.docs-card-description {
    color: var(--text_color);
    font-size: 15px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-title {
        font-size: 2rem;
    }
    
    .docs-subtitle {
        font-size: 1.5rem;
    }
    
    .docs-section {
        padding: 3rem;
        padding-left: 6px;
        padding-right: 6px;
    }
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 1rem;
}

html {
    scroll-behavior: smooth;
}

.docs-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.section-anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.docs-container {
    display: flex;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 80px;
}

.docs-sidebar {
    width: 250px;
    padding-top: 0px; /* top */
    padding-bottom: 2rem; /* bottom */
    padding-right: 1rem; /* right */
    padding-left: 1rem; /* left */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-sidebar.fixed {
    position: sticky;
}

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

.sidebar-nav li {
    margin-bottom: 1rem;
}

.sidebar-nav a {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.75rem 1rem;
    padding-bottom: 0px;
    padding-left: 0px;
    color: var(--text_color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(109, 58, 255, 0.1);
    color: var(--text_color);
    transform: translateX(5px);
}

[data-theme="light"] .sidebar-nav a:hover,
[data-theme="light"] .sidebar-nav a.active {
    background-color: rgba(109, 58, 255, 0.1);
    color: var(--text_color);
}

.sidebar-nav-icon {
    margin-right: 0.75rem;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.sidebar-nav-icon svg {
    width: 100%;
    height: 100%;
}

.docs-main-content {
    flex: 1;
    padding-left: 2rem;
}

.docs-main-content.with-sidebar {
    margin-left: 0;
}

@media (max-width: 1024px) {
    .docs-sidebar {
        width: 220px;
    }
}

@media (max-width: 767px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        box-sizing: border-box; /* sets box model to include padding and border in element's total width and height */
        padding: 1rem;
        padding-left: 10px;
        margin-bottom: 2rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-right: none;
        position: relative;
        top: 0;
    }
    
    .docs-main-content {
        padding-left: 0;
    }
}

.contact-section {
    background-color: rgba(17, 17, 17, 0.98);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: var(--container-width);
    padding: 3rem 2rem;
}

[data-theme="light"] .contact-section {
    background-color: var(--block_background);
    box-shadow: var(--block_shadow);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text_color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-method {
    background-color: rgba(109, 58, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(109, 58, 255, 0.1);
    transition: transform 0.3s ease;
}

[data-theme="light"] .contact-method {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(109, 58, 255, 0.2);
}

.contact-method:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 58, 255, 0.2);
}

.contact-method h3 {
    color: var(--text_color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-method p {
    color: var(--text_color);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
}

.contact-note {
    background-color: rgba(109, 58, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-top: 2rem;
}

.contact-note p {
    color: var(--text_color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-text {
        font-size: 1.1rem;
    }
}

.back-button-container {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(109, 58, 255, 0.1);
    border: 1px solid rgba(109, 58, 255, 0.2);
    border-radius: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(109, 58, 255, 0.15);
    border-color: rgba(109, 58, 255, 0.3);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 767px) {
    .back-button-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.policy-tabs {
    margin-bottom: 3rem;
}

.policy-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.policy-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(109, 58, 255, 0.15);
    border-color: rgba(109, 58, 255, 0.3);
}

.policy-tab.active {
    background-color: rgba(109, 58, 255, 0.1);
    border-color: var(--accent-color);
}

.policy-tab.active h3 {
    color: var(--accent-color);
}

.policy-contents {
    position: relative;
    min-height: 500px;
}

.policy-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.policy-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .policy-tabs .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .policy-tab {
        padding: 1rem;
    }
    
    .policy-contents {
        min-height: 300px;
    }

    .docs-card-description {
        display: none;
    }
    .docs-card-title {
        margin: 0;
        font-size: 14px; /* 1.3rem in px */
        font-weight: 500;
        letter-spacing: -0.2px;
    }
    .sidebar-nav a {
        max-width: max-content;
        padding: 8px;
        background-color: rgba(0, 0, 0, 0.05);
        
    }
    .sidebar-nav li {
        width: max-content;
        margin-bottom: 0px;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .docs-section {
        padding-top: 0px;
        padding-bottom: 0px;
        margin-top: 20px;
    }
    .docs-section {
        margin-top: -20px;
    }

}
