/* Terms & Policy Page Styles */

.terms-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.terms-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.policy-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.policy-button {
    display: block;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 200px;
    height: 200px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.policy-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 210, 255, 0.2);
}

.terms-button:hover {
    border-color: var(--accent-glow);
    background: linear-gradient(135deg, rgba(142, 202, 230, 0.1) 0%, rgba(142, 202, 230, 0.05) 100%);
}

.terms-button:hover .button-icon {
    color: var(--accent-glow);
}

.privacy-button:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.privacy-button:hover .button-icon {
    color: var(--accent-blue);
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.policy-button:hover .button-content {
    gap: 16px;
}

.button-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.policy-button:hover .button-icon {
    transform: scale(1.1);
}

.button-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.button-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.button-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.policy-button:hover .button-description {
    opacity: 1;
    max-height: 40px;
}

.policy-button:hover .button-title {
    transform: translateY(-2px);
}

.terms-button:hover .button-title {
    color: var(--accent-glow);
}

.privacy-button:hover .button-title {
    color: var(--accent-blue);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.policy-section {
    margin-bottom: 24px;
}

.policy-section h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.policy-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.policy-intro {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 210, 255, 0.1);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
}

.policy-intro p {
    margin: 0;
    font-weight: 500;
}

.subsection {
    margin-bottom: 16px;
    padding-left: 16px;
}

.subsection h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.policy-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.policy-section li {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.policy-section strong {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero {
        min-height: 70vh;
        padding: 60px 20px;
    }
    
    .terms-content h1 {
        font-size: 2.5rem;
    }
    
    .terms-content p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .policy-buttons-container {
        gap: 20px;
    }
    
    .policy-button {
        width: 160px;
        height: 160px;
        padding: 16px;
    }
    
    .button-icon {
        width: 50px;
        height: 50px;
    }
    
    .button-title {
        font-size: 1rem;
    }
    
    .button-description {
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }
}

@media (max-width: 480px) {
    .terms-content h1 {
        font-size: 2rem;
    }
    
    .policy-button {
        width: 140px;
        height: 140px;
    }
    
    .button-icon {
        width: 45px;
        height: 45px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}
