/* Terms of Service Page Styles */

/* Terms Hero Section */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
}

.terms-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.terms-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.terms-hero-description {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 18px;
    height: 18px;
}

/* Terms Content Section */
.terms-content-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, var(--white) 20%);
}

.terms-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Navigation */
.terms-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-sticky {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.terms-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding-left: 2.75rem;
}

.nav-link.active::before {
    background: var(--primary-color);
    width: 8px;
    height: 8px;
    left: 0.5rem;
}

/* Main Content */
.terms-main-content {
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    scroll-margin-top: 120px;
}

.terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.section-number {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
    z-index: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
    padding-left: 4rem;
}

.section-content {
    position: relative;
    z-index: 1;
    padding-left: 4rem;
}

.section-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.subsection-title:first-child {
    margin-top: 0;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terms-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.terms-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-info-box {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-item {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.info-item strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Agreement Section */
.terms-agreement {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.agreement-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.agreement-box svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.agreement-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.agreement-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Legal Information Section (Discrete) */
.legal-info-section {
    padding: 2rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.legal-info-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-info-summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    list-style: none;
    user-select: none;
    transition: all 0.3s ease;
}

.legal-info-summary::-webkit-details-marker {
    display: none;
}

.legal-info-summary::before {
    content: 'ℹ️ ';
    margin-right: 0.5rem;
}

.legal-info-summary:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.legal-info-details[open] .legal-info-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.legal-info-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.8;
}

.legal-info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.legal-info-item:last-child {
    border-bottom: none;
}

.legal-info-item strong {
    color: #4b5563;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-content-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
        padding-left: 3rem;
    }

    .section-content {
        padding-left: 3rem;
    }

    .section-number {
        font-size: 5rem;
        top: -1rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 4rem 0 3rem;
    }

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

    .terms-hero-description {
        font-size: 1.1rem;
    }

    .terms-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .terms-content-section {
        padding: 3rem 0;
    }

    .terms-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .terms-sidebar {
        position: static;
        order: 2;
    }

    .sidebar-sticky {
        padding: 1.5rem;
    }

    .terms-main-content {
        padding: 2rem 1.5rem;
        order: 1;
    }

    /* Hide step numbers on mobile */
    .terms-section .section-number {
        display: none !important;
    }

    .section-title {
        font-size: 1.5rem;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .section-content {
        padding-left: 0;
    }

    .section-content p {
        font-size: 1rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .terms-list li {
        font-size: 1rem;
    }

    .agreement-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .agreement-box svg {
        width: 40px;
        height: 40px;
    }

    .agreement-content h3 {
        font-size: 1.2rem;
    }

    .legal-info-details {
        padding: 0 1rem;
    }

    .legal-info-summary {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .legal-info-content {
        padding: 1.25rem;
        font-size: 0.75rem;
    }
}

