
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2d7d9a;
    --accent-color: #4ecdc4;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
}

[data-theme="light"] {
    --text-color: #1a1a2e;
    --text-muted: #666;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
}

.terms-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.terms-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.terms-header .effective-date {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 10px;
    background: var(--card-bg);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Quick Navigation */
.quick-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.quick-nav h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.quick-nav a {
    display: block;
    padding: 10px 15px;
    background: rgba(26, 95, 122, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-nav a:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h2 .section-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.terms-section p {
    margin-bottom: 15px;
}

.terms-section ul,
.terms-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.terms-section li {
    margin: 10px 0;
}

/* Important Boxes */
.important-box {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    border-left: 4px solid var(--danger-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.important-box h4 {
    color: var(--danger-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning-color);
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: var(--warning-color);
    margin: 0 0 10px 0;
}

.info-box {
    background: rgba(26, 95, 122, 0.1);
    border: 1px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

/* Highlight Text */
.highlight {
    background: rgba(78, 205, 196, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Table */
.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.terms-table th,
.terms-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.terms-table th {
    background: var(--primary-color);
    color: white;
}

.terms-table tr:hover {
    background: rgba(26, 95, 122, 0.05);
}

/* Agreement Box */
.agreement-box {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.2), rgba(78, 205, 196, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.agreement-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.agreement-box p {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.contact-section a {
    color: var(--accent-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 1.8rem;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .back-to-top, .quick-nav {
        display: none;
    }
}

/* Referral Section */
.referral-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(26, 95, 122, 0.1));
    border: 1px solid var(--warning-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.referral-section h3 {
    color: var(--warning-color);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.referral-section li {
    margin: 10px 0;
    padding-left: 0;
}

.referral-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(26, 95, 122, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.referral-section a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Internal Links Section */
.internal-links-section {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(26, 95, 122, 0.1));
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.internal-links-section h3 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

.coin-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.coin-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coin-symbol {
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.coin-name {
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Add specific colors for popular coins */
.coin-link[href*="/coin/BTC"] .coin-symbol {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
}

.coin-link[href*="/coin/ETH"] .coin-symbol {
    background: rgba(98, 126, 234, 0.2);
    color: #627eea;
}

.coin-link[href*="/coin/BNB"] .coin-symbol {
    background: rgba(243, 186, 47, 0.2);
    color: #f3ba2f;
}

.coin-link[href*="/coin/SOL"] .coin-symbol {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.coin-link[href*="/coin/XRP"] .coin-symbol {
    background: rgba(0, 162, 232, 0.2);
    color: #00a2e8;
}

.coin-link[href*="/coin/DOGE"] .coin-symbol {
    background: rgba(194, 177, 110, 0.2);
    color: #c2b16e;
}
/* Contact Section Styles */
.contact-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-section a:hover {
    color: white;
    text-decoration: underline;
}

/* Social media specific colors */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

/* YouTube */
.social-links a[href*="youtube"] {
    color: #FF0000;
}

/* X/Twitter */
.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
    color: #1DA1F2;
}

/* TikTok - Use TikTok's actual brand colors */
.social-links a[href*="tiktok"] {
    color: #69C9D0; /* TikTok teal */
}

.social-links a[href*="tiktok"]:hover {
    background: linear-gradient(135deg, #69C9D0, #EE1D52);
    color: white;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
