/* Terms of Use Modal Styles */

.terms-modal {
    display: block;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-in;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terms-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
}

.terms-header-reminder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.terms-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.terms-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    flex: 1;
}

.terms-page {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terms-language-switch {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn:active {
    transform: translateY(0);
}

.terms-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 200px);
    color: #333;
    line-height: 1.6;
}

.terms-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-body::-webkit-scrollbar {
    width: 8px;
}

.terms-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.terms-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.terms-section {
    margin-bottom: 25px;
}

.terms-section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-left: 3px solid #667eea;
    margin-bottom: 10px;
    padding-left: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.terms-section ul li strong {
    color: #667eea;
}

.terms-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin: 25px 0;
}

.terms-warning p {
    margin: 10px 0;
    color: #856404;
}

.terms-warning strong {
    color: #d63031;
    font-size: 16px;
}

.terms-acceptance {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 5px;
}

/* Reminder Page Styles */
.reminder-content {
    padding: 20px 0;
}

.reminder-box {
    animation: fadeIn 0.4s ease-in;
}

.reminder-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #f5576c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.reminder-item:hover {
    transform: translateX(5px);
}

.reminder-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.reminder-text h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.reminder-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.reminder-text strong {
    color: #f5576c;
    font-weight: 600;
}

.reminder-highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.reminder-highlight p {
    margin: 0;
    font-size: 18px;
}

.reminder-highlight strong {
    font-size: 20px;
}

.terms-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.terms-accept-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.terms-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.terms-accept-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .terms-header {
        padding: 20px;
    }

    .terms-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .terms-header h2 {
        font-size: 22px;
    }

    .terms-language-switch {
        width: 100%;
        justify-content: center;
    }

    .terms-body {
        padding: 20px;
        max-height: calc(95vh - 220px);
    }

    .terms-section h3 {
        font-size: 18px;
    }

    .terms-accept-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-modal-content {
        width: 98%;
    }

    .terms-header {
        padding: 15px;
    }

    .terms-header h2 {
        font-size: 20px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .terms-body {
        padding: 15px;
    }

    .terms-section ul li {
        padding: 8px 0 8px 15px;
        font-size: 14px;
    }

    .reminder-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .reminder-icon {
        font-size: 36px;
        text-align: center;
    }

    .reminder-text h3 {
        font-size: 18px;
    }

    .reminder-highlight p {
        font-size: 16px;
    }

    .reminder-highlight strong {
        font-size: 18px;
    }
}
