/* Terms Hero Section - Animated Background */
.terms-hero {
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--space-dark), var(--deep-space));
    color: white;
    margin-top: 80px;
    width: 100%;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--neon-violet-glow) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, var(--cyber-aqua-glow) 0%, transparent 30%);
    z-index: 0;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

.terms-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--starlight), var(--cyber-aqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--cyber-aqua-glow);
    animation: fadeInUp 1s ease;
    max-width: 100%;
    word-wrap: break-word;
}

.terms-hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    max-width: 100%;
    word-wrap: break-word;
}

/* Animated Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

/* Terms Content Section */
.terms-content {
    background-color: var(--deep-space);
    padding: 100px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.terms-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-violet) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.terms-content::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--cyber-aqua) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.terms-section {
    margin-bottom: 4rem;
    background: var(--space-light);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    will-change: transform;
    width: 100%;
    box-sizing: border-box;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--neon-violet-glow);
}

.terms-section:nth-child(2) {
    animation-delay: 0.2s;
}

.terms-section:nth-child(3) {
    animation-delay: 0.4s;
}

.terms-section h2 {
    font-size: 2rem;
    color: var(--starlight);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 10px var(--cyber-aqua-glow);
    max-width: 100%;
    word-wrap: break-word;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-violet), var(--cyber-aqua));
}

.terms-section h3 {
    font-size: 1.5rem;
    color: var(--starlight);
    margin: 2rem 0 1rem;
    text-shadow: 0 0 8px var(--cyber-aqua-glow);
    max-width: 100%;
    word-wrap: break-word;
}

.terms-section p {
    margin-bottom: 1.2rem;
    color: var(--cosmic-text);
    line-height: 1.8;
    opacity: 0.9;
    max-width: 100%;
    word-wrap: break-word;
}

.terms-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    max-width: 100%;
}

.terms-section li {
    margin-bottom: 0.8rem;
    color: var(--cosmic-text);
    line-height: 1.7;
    opacity: 0.9;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
}

.terms-section li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
    color: var(--matrix-green);
    text-shadow: 0 0 8px var(--matrix-green-glow);
}

.highlight-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--electric-orange);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    box-shadow: 0 0 15px var(--electric-orange-glow);
    max-width: 100%;
    box-sizing: border-box;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--starlight);
    font-weight: 500;
    max-width: 100%;
    word-wrap: break-word;
}

/* Accordion Styles */
.accordion {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    background: var(--space-light);
    width: 100%;
}

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

.accordion-header {
    padding: 1.5rem;
    background: var(--space-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--starlight);
    transition: all var(--transition-medium) ease;
    font-family: 'Orbitron', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.accordion-header:hover {
    background: var(--space-dark);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform var(--transition-medium) ease;
    color: var(--cyber-aqua);
    text-shadow: 0 0 8px var(--cyber-aqua-glow);
}

.accordion-header.active {
    background: var(--space-dark);
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease, padding var(--transition-medium) ease;
    background: var(--space-light);
    width: 100%;
    box-sizing: border-box;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 1000px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .terms-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .terms-hero {
        min-height: 400px;
        height: 50vh;
    }
    
    .terms-hero h1 {
        font-size: 3rem;
    }
    
    .terms-hero p {
        font-size: 1.25rem;
    }
    
    .terms-section h2 {
        font-size: 1.8rem;
    }
    
    .terms-section {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-hero p {
        font-size: 1.1rem;
    }
    
    .terms-section {
        padding: 2rem;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-content {
        padding: 0 1rem;
    }
    
    .accordion-content.active {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
    
    .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .highlight-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .terms-hero {
        margin-top: 70px;
        height: 40vh;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 1.8rem;
    }
    
    .terms-hero p {
        font-size: 1rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.25rem;
    }
    
    .terms-section {
        padding: 1.25rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
}
