/* /fam/css/terms.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #4b78a2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms-container {
    max-width: 900px;
    width: 100%;
    background: rgba(1, 21, 52, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.terms-header {
    background: linear-gradient(135deg, #034481 0%, #106bc0 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid #f39c12;
}

.terms-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.terms-header h1 i { color: #f39c12; }
.terms-header p { font-size: 1.1rem; opacity: 0.9; }

.terms-content {
    padding: 40px;
    max-height: 600px;
    overflow-y: auto;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h2 i { color: #f39c12; font-size: 1.2rem; }

.terms-section p {
    color: #9ad0ff;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1rem;
}

.terms-section ul {
    margin: 10px 0 10px 20px;
    color: #9ad0ff;
    list-style: none;
}

.terms-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ★ icon colors بدل inline style */
.icon-green { color: #27ae60; }
.icon-red   { color: #e74c3c; }
.highlight-icon { color: #f39c12; }

.highlight {
    background: rgba(243, 156, 18, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
    margin: 15px 0;
}

.highlight p { color: #ffd580; margin-bottom: 0; }

.terms-footer {
    background: rgba(255,255,255,0.05);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.terms-footer p { color: #9ad0ff; font-size: 0.9rem; }
.terms-footer a { color: #f39c12; text-decoration: none; font-weight: 600; }
.terms-footer a:hover { text-decoration: underline; }
.footer-copy { margin-top: 5px; }

/* Scrollbar */
.terms-content::-webkit-scrollbar       { width: 8px; }
.terms-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.terms-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.terms-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .terms-container { margin: 10px; }
    .terms-header h1 { font-size: 1.8rem; }
    .terms-content { padding: 20px; }
    .terms-section h2 { font-size: 1.2rem; }
}