/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: "Instrument Sans", sans-serif;
}

h1 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h2 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

h3 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.008em;
}

h5 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.005em;
}

h6 {
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.125rem);
    font-weight: 600;
    letter-spacing: -0.003em;
}

p, .body-text {
    font-family: "Noto Sans", sans-serif;
    line-height: 1.6;
}

.btn {
    font-family: "Instrument Sans", sans-serif;
}

/* Terms Hero Section */
.terms-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.terms-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-particles .particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: heroParticleFloat var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes heroParticleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 1; }
}

.terms-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.terms-hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    margin-bottom: 2rem;
}

.terms-hero-badge .badge {
    background: #0184FA;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.terms-hero-badge .badge-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.terms-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.terms-hero-title .gradient-text {
    background: linear-gradient(135deg, #0184FA 0%, #8b5cf6 50%, #06d6a0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.terms-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Terms Content Section */
.terms-content {
    padding: 80px 0;
    background: white;
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.terms-navigation {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.terms-navigation h3 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.terms-nav-list li {
    margin-bottom: 0.5rem;
}

.terms-nav-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.terms-nav-link:hover {
    background: #0184FA;
    color: white;
    transform: translateX(4px);
}

.terms-sections {
    background: white;
}

.terms-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #0184FA, #8b5cf6);
    border-radius: 2px;
}

.section-content {
    color: #374151;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Service List */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(1, 132, 250, 0.15);
    border-color: #0184FA;
}

.service-item h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: #64748b;
    margin: 0;
}

/* Account Requirements */
.account-requirements,
.account-responsibility {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0184FA;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-requirements h4,
.account-responsibility h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* License Terms */
.license-grant,
.license-scope {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.license-grant:hover,
.license-scope:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0184FA;
}

.license-grant h4,
.license-scope h4 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.restriction-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.restriction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.restriction-item:hover::before {
    transform: scaleX(1);
}

.restriction-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.restriction-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: white;
}

.restriction-item h4 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.restriction-item p {
    color: #64748b;
    margin: 0;
    font-size: 0.875rem;
}

/* Payment Terms */
.payment-terms,
.refund-policy {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.payment-terms h4,
.refund-policy h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Privacy Highlights */
.privacy-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.privacy-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.privacy-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #0184FA;
}

.privacy-item h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.privacy-item p {
    color: #64748b;
    margin: 0;
}

/* IP Ownership */
.ip-ownership,
.user-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0184FA;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.ip-ownership h4,
.user-content h4 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Liability Terms */
.disclaimer,
.liability-limit,
.excluded-damages {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.disclaimer::before,
.liability-limit::before,
.excluded-damages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 12px 12px 0 0;
}

.disclaimer h4,
.liability-limit h4,
.excluded-damages h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Termination Terms */
.termination-rights,
.termination-by-us,
.post-termination {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.termination-rights h4,
.termination-by-us h4,
.post-termination h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Legal Contact */
.legal-contact-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h4,
.governing-law h4 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 500;
}

.contact-item i {
    color: #0184FA;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-navigation {
        position: static;
        order: -1;
    }
    
    .terms-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .terms-nav-list li {
        margin-bottom: 0;
    }
    
    .terms-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 100px 0 60px;
    }
    
    .terms-hero-title {
        font-size: 2.5rem;
    }
    
    .terms-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .restrictions-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-highlights {
        grid-template-columns: 1fr;
    }
    
    .legal-contact-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::before {
        left: 0;
        top: -0.5rem;
        bottom: auto;
        width: 2rem;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .terms-hero-container {
        padding: 0 1rem;
    }
    
    .terms-hero-title {
        font-size: 2rem;
    }
    
    .terms-container {
        padding: 0 1rem;
    }
    
    .terms-navigation {
        padding: 1.5rem;
    }
    
    .service-item,
    .restriction-item,
    .privacy-item {
        padding: 1.5rem;
    }
    
    .legal-contact-card {
        padding: 1.5rem;
    }
    
    .license-grant,
    .license-scope,
    .disclaimer,
    .liability-limit,
    .excluded-damages {
        padding: 1.5rem;
    }
}