/* src/main/resources/static/css/pages/terms.css */

/* ===== TERMS PAGE - COMPACT THEME ===== */

/* Hero Section */
.terms-hero {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
    border-bottom: 1px solid #e9eef2;
}

.terms-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.terms-hero h1 span {
    color: #2563eb;
}

.terms-hero p {
    font-size: 14px;
    color: #5b6778;
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    margin-top: 15px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.last-updated i {
    color: #2563eb;
    font-size: 12px;
}

/* Terms Content */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px;
}

/* Section Styling */
.terms-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.terms-section:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 16px rgba(37,99,235,0.05);
}

.section-header {
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header h2 i {
    color: #2563eb;
    font-size: 18px;
    width: 24px;
}

.section-content {
    padding: 24px;
}

.section-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 20px 0 10px;
}

.section-content h3:first-of-type {
    margin-top: 0;
}

.section-content ul, 
.section-content ol {
    padding-left: 25px;
    margin-bottom: 16px;
}

.section-content li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.section-content li i {
    color: #10b981;
    margin-right: 8px;
    font-size: 12px;
}

/* Notice Box */
.notice-box {
    background: #fef9e7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-box i {
    color: #f59e0b;
    font-size: 20px;
    margin-top: 2px;
}

.notice-box p {
    color: #92400e;
    margin: 0;
    font-size: 13px;
}

/* Important Box */
.important-box {
    background: #e6f7e6;
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.important-box i {
    color: #10b981;
    font-size: 20px;
    margin-top: 2px;
}

.important-box p {
    color: #065f46;
    margin: 0;
    font-size: 13px;
}

/* Warning Box */
.warning-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-box i {
    color: #ef4444;
    font-size: 20px;
    margin-top: 2px;
}

.warning-box p {
    color: #b91c1c;
    margin: 0;
    font-size: 13px;
}

/* Table Styling */
.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.terms-table th {
    background: #f1f5f9;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.terms-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.terms-table tr:hover td {
    background: #f8fafc;
}

/* Quick Links */
.quick-links-box {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin: 30px 0;
}

.quick-links-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links-box h3 i {
    color: #2563eb;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.quick-links-grid a {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.quick-links-grid a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.quick-links-grid a i {
    font-size: 12px;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin-top: 30px;
}

.contact-box i {
    font-size: 40px;
    color: #2563eb;
    margin-bottom: 15px;
    opacity: 0.8;
}

.contact-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 14px;
    color: #5b6778;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.contact-btn.primary {
    background: #0f172a;
    color: white;
}

.contact-btn.primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.contact-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.contact-btn.secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Acceptance Box */
.acceptance-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.acceptance-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acceptance-text i {
    color: #2563eb;
    font-size: 24px;
}

.acceptance-text p {
    margin: 0;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.acceptance-btn {
    padding: 10px 24px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.acceptance-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.acceptance-btn i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 30px;
    }
    
    .terms-content {
        padding: 30px 16px;
    }
    
    .section-header {
        padding: 15px 18px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .section-content {
        padding: 18px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .acceptance-box {
        flex-direction: column;
        text-align: center;
    }
    
    .acceptance-text {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 26px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-table {
        font-size: 12px;
    }
    
    .terms-table th,
    .terms-table td {
        padding: 8px;
    }
}