/* Styles for Terms Page */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@160..700&display=swap');

/* Apply custom font to all text */
* {
    font-family: 'Readex Pro', sans-serif !important;
}

body {
    font-family: 'Readex Pro', sans-serif;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Readex Pro', sans-serif;
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.terms-header h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.terms-header .subtitle {
    font-size: 1.1em;
    color: #666;
}

/* Tabs Navigation */
.terms-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e5e5;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #31B07D;
    background-color: #f9f9f9;
}

.tab-btn.active {
    color: #31B07D;
    border-bottom-color: #31B07D;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Styling */
.tab-content h2 {
    color: #1a1a1a;
    font-size: 1.8em;
    margin-bottom: 10px;
    border-bottom: 2px solid #31B07D;
    padding-bottom: 10px;
}

.tab-content h3 {
    color: #2a2a2a;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tab-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1em;
}

.last-update {
    color: #999;
    font-size: 0.95em;
    margin-bottom: 20px;
    font-style: italic;
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tab-content ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.tab-content a {
    color: #31B07D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tab-content a:hover {
    color: #237d57;
    text-decoration: underline;
}
/* Markdown content styling */
.tab-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.tab-content em {
    font-style: italic;
}

.tab-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Readex Pro', sans-serif;
    color: #d63384;
}

.tab-content ul {
    list-style-type: disc;
    margin-right: 20px;
}

.tab-content ul li {
    margin-right: 10px;
}

.markdown-content {
    min-height: 300px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #31B07D;
    font-size: 1.1em;
    font-weight: 500;
}
/* Important Notice */
.important-notice {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #856404;
}

.important-notice strong {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 1.8em;
    }

    .terms-header .subtitle {
        font-size: 1em;
    }

    .terms-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-right: 3px solid transparent;
        border-bottom: none;
        margin-bottom: 0;
        margin-right: -3px;
        text-align: right;
    }

    .tab-btn.active {
        border-right-color: #31B07D;
        border-bottom: none;
    }

    .tab-content h2 {
        font-size: 1.5em;
    }

    .tab-content h3 {
        font-size: 1.1em;
    }

    .terms-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .terms-header h1 {
        font-size: 1.5em;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .tab-content h3 {
        font-size: 1em;
    }

    .tab-content p {
        font-size: 0.9em;
    }
}
