/* Terms of Service Styles */

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, #0c1222 0%, #1a1f35 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1), transparent 70%);
    pointer-events: none;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.terms-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.95rem;
    color: #34d399;
    font-style: italic;
    margin-top: 20px;
}

/* Content Section */
.terms-content {
    background: #000000;
    padding: 80px 0;
    min-height: 100vh;
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Table of Contents */
.terms-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(26, 31, 53, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 30px;
}

.terms-toc h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-toc li {
    margin-bottom: 12px;
}

.terms-toc a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
}

.terms-toc a:hover {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

/* Main Content */
.terms-main {
    background: rgba(12, 18, 34, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 50px;
}

.terms-introduction {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.terms-introduction p {
    color: #fef3c7;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.terms-introduction strong {
    color: #fbbf24;
}

.terms-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terms-section h2::before {
    content: '';
    width: 4px;
    height: 35px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 2px;
}

.terms-section h3 {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-section h4 {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.terms-section p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.terms-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.terms-section li {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.terms-section li strong {
    color: #ffffff;
}

.terms-section a {
    color: #34d399;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.terms-section a:hover {
    color: #6ee7b7;
    border-bottom-color: #34d399;
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: #34d399;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box li {
    color: #d1fae5;
}

/* Requirement Items */
.requirement-item,
.account-subsection,
.trading-subsection,
.fee-info,
.ip-subsection,
.termination-subsection,
.dispute-subsection {
    background: rgba(26, 31, 53, 0.3);
    border-left: 3px solid #10b981;
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.requirement-item h3,
.account-subsection h3,
.trading-subsection h3,
.fee-info h3,
.ip-subsection h3,
.termination-subsection h3,
.dispute-subsection h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background: rgba(26, 31, 53, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.service-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.service-disclaimer {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 30px;
}

.service-disclaimer h3 {
    color: #c7d2fe;
    margin-top: 0;
}

/* Prohibited Activities Grid */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.prohibited-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
}

.prohibited-item h3 {
    color: #fca5a5;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.prohibited-item ul {
    margin: 0;
    padding-left: 20px;
}

.prohibited-item li {
    color: #fecaca;
    font-size: 0.95rem;
}

.consequence-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 30px;
}

.consequence-box h3 {
    color: #fbbf24;
    margin-top: 0;
}

.consequence-box p {
    color: #fef3c7;
}

/* Risk Disclosure */
.risk-warning {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.risk-warning h3 {
    color: #fca5a5;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.risk-warning p {
    color: #fecaca;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.8;
}

.risk-list {
    margin: 30px 0;
}

.risk-list > h3 {
    color: #fca5a5;
    margin-bottom: 25px;
}

.risk-item {
    background: rgba(26, 31, 53, 0.3);
    border-left: 3px solid #ef4444;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.risk-item h4 {
    color: #fca5a5;
    margin-top: 0;
    margin-bottom: 10px;
}

.risk-item p {
    margin: 0;
}

.risk-acknowledgment {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 30px;
}

.risk-acknowledgment h3 {
    color: #34d399;
    margin-top: 0;
}

/* Liability Disclaimer */
.liability-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

.liability-disclaimer h3 {
    color: #fca5a5;
    margin-top: 0;
    margin-bottom: 15px;
}

.liability-disclaimer p {
    color: #fecaca;
    margin: 0;
}

.liability-limits {
    background: rgba(26, 31, 53, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

.liability-limits h3 {
    color: #ffffff;
    margin-top: 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    background: rgba(26, 31, 53, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.contact-method h3 {
    color: #34d399;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.contact-method p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.contact-method p:last-child {
    margin-bottom: 0;
}

.contact-method strong {
    color: #ffffff;
}

/* Final Acknowledgment */
.final-acknowledgment {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.final-acknowledgment h3 {
    color: #34d399;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.final-acknowledgment p {
    color: #d1fae5;
    margin-bottom: 15px;
}

.final-acknowledgment p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .terms-toc {
        position: static;
        margin-bottom: 30px;
    }

    .service-grid,
    .prohibited-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 80px 0 60px;
    }

    .terms-hero h1 {
        font-size: 2.5rem;
    }

    .terms-subtitle {
        font-size: 1.1rem;
    }

    .terms-main {
        padding: 30px 20px;
    }

    .terms-section h2 {
        font-size: 1.6rem;
    }

    .terms-section h3 {
        font-size: 1.2rem;
    }

    .terms-section p,
    .terms-section li {
        font-size: 1rem;
    }

    .service-grid,
    .prohibited-grid {
        grid-template-columns: 1fr;
    }

    .terms-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 2rem;
    }

    .terms-subtitle {
        font-size: 1rem;
    }

    .terms-main {
        padding: 20px 15px;
    }

    .terms-section h2 {
        font-size: 1.4rem;
    }

    .requirement-item,
    .account-subsection,
    .trading-subsection,
    .fee-info,
    .highlight-box,
    .service-card,
    .prohibited-item {
        padding: 15px 20px;
    }

    .terms-introduction {
        padding: 20px;
    }
}