/* Terms of Service Page Styles */

/* Page Layout */
.terms-page {
    padding: 140px 0 80px;
    background: #0f1420;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs a {
    color: #a0a0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #7c5cff;
}

.breadcrumbs .separator {
    color: #6b7280;
    font-size: 0.9rem;
}

.breadcrumbs .current {
    color: #7c5cff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #a0a0c0;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 92, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #7c5cff;
    font-size: 0.9rem;
    border: 1px solid rgba(124, 92, 255, 0.2);
}

.last-updated svg {
    width: 16px;
    height: 16px;
}

/* Terms Navigation */
.terms-navigation {
    position: sticky;
    top: 120px;
    float: left;
    width: 280px;
    margin-right: 40px;
    background: rgba(20, 25, 40, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.nav-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h3 {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-links .nav-link {
    color: #a0a0c0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    padding-left: 20px;
}

.nav-links .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #7c5cff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
    color: #7c5cff;
    background: rgba(124, 92, 255, 0.1);
}

.nav-links .nav-link:hover::before,
.nav-links .nav-link:focus::before {
    opacity: 1;
}

/* Terms Content */
.terms-content {
    margin-left: 320px;
    background: rgba(20, 25, 40, 0.6);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Intro Section */
.intro-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #a0a0c0;
    margin-bottom: 20px;
}

/* Notice Boxes */
.notice {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    align-items: flex-start;
}

.notice.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.notice.warning svg {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice.important {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.notice.important svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.terms-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(124, 92, 255, 0.3);
}

.terms-section h4 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: white;
}

.terms-section p {
    color: #a0a0c0;
    line-height: 1.7;
    margin-bottom: 15px;
}

.terms-section ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-section ul li {
    color: #a0a0c0;
    line-height: 1.7;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.terms-section ul li::before {
    content: '•';
    color: #7c5cff;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.terms-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.terms-section ol li {
    color: #a0a0c0;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.requirement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 92, 255, 0.3);
}

.requirement-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.requirement-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.requirement-card p {
    font-size: 0.9rem;
    margin: 0;
    color: #a0a0c0;
}

/* Service Details */
.service-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

/* Prohibited List */
.prohibited-list li {
    color: #ef4444;
}

.prohibited-list li::before {
    color: #ef4444;
    content: '✗';
}

/* Restrictions Grid */
.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.restriction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.restriction-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.restriction-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* IP Grid */
.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ip-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-card h4 {
    color: #7c5cff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.note {
    background: rgba(124, 92, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #7c5cff;
    margin: 20px 0;
}

/* Privacy Highlights */
.privacy-highlights {
    background: rgba(124, 92, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

/* Liability List */
.liability-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.liability-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.liability-item .number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c5cff, #01d1fb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.liability-item .content h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.1rem;
}

.liability-item .content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Termination Reasons */
.termination-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.reason {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reason h4 {
    color: #ef4444;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reason p {
    margin: 0;
    font-size: 0.9rem;
}

/* Changes Info */
.changes-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.change-process,
.change-notice {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
}

.change-notice {
    background: rgba(124, 92, 255, 0.05);
}

/* Law Details */
.law-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.law-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.law-item h4 {
    color: #7c5cff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.law-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Info */
.contact-info {
    background: rgba(124, 92, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-method svg {
    color: #7c5cff;
    flex-shrink: 0;
}

.contact-method a,
.contact-method span {
    color: #a0a0c0;
    text-decoration: none;
    font-size: 1rem;
}

.contact-method a:hover {
    color: #7c5cff;
}

/* Acceptance Section */
.acceptance-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(124, 92, 255, 0.3);
}

.acceptance-box {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1) 0%, rgba(1, 209, 251, 0.1) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(124, 92, 255, 0.2);
}

.acceptance-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.acceptance-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #a0a0c0;
}

.acceptance-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.acceptance-box ul li {
    color: #a0a0c0;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    text-align: left;
}

.acceptance-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Inline Link */
.inline-link {
    color: #7c5cff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.inline-link:hover {
    text-decoration: underline;
    color: #01d1fb;
}

/* Back to Top Wrapper */
.back-to-top-wrapper {
    position: sticky;
    bottom: 30px;
    margin-top: 40px;
    text-align: right;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c5cff, #01d1fb);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-navigation {
        position: static;
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .terms-content {
        margin-left: 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .terms-page {
        padding: 120px 0 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 25px;
    }
    
    .acceptance-box {
        padding: 30px 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .last-updated {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .terms-navigation {
        padding: 20px;
    }
    
    .terms-content {
        padding: 20px;
    }
    
    .requirements-grid,
    .restrictions-grid,
    .ip-grid,
    .termination-reasons,
    .law-details {
        grid-template-columns: 1fr;
    }
    
    .liability-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .acceptance-box ul li {
        padding-left: 25px;
    }
}

/* Print Styles */
@media print {
    .terms-navigation,
    .back-to-top-wrapper,
    .header,
    .footer,
    .actions,
    .notice {
        display: none !important;
    }
    
    .terms-content {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .terms-section h2,
    .terms-section h4,
    .page-title {
        color: black;
        -webkit-text-fill-color: black;
        background: none;
    }
    
    .terms-section p,
    .terms-section li {
        color: #333;
    }
    
    .page-header {
        page-break-after: avoid;
    }
    
    .terms-section {
        page-break-inside: avoid;
    }
}