/* ===================================
   Terms Page Styles
   =================================== */

.terms-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #2acab9 100%);
}

.terms-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #2acab9 100%);
}

.terms-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.terms-header p {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.terms-category {
    margin-bottom: 4rem;
}

.terms-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 6px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.terms-category-title:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.terms-category-title .icon {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e3e8ef;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.terms-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.terms-item:hover::before {
    left: 100%;
}

.terms-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12);
    transform: translateY(-3px);
    border-left-color: #2acab9;
}

.terms-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #2acab9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 36px;
    height: 36px;
    padding: 0 0.875rem;
    border-radius: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
    letter-spacing: 0.5px;
}

.terms-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.terms-item-title::before {
    content: '●';
    color: #007bff;
    margin-right: 0.5rem;
    font-size: 0.6em;
}

.terms-item-content {
    font-size: 1.0625rem;
    color: #495057;
    line-height: 1.9;
    margin: 0;
    letter-spacing: 0.3px;
    text-align: justify;
}

.terms-note {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border: 1px solid #ffe5a1;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    margin-top: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
    position: relative;
}

.terms-note::before {
    content: '📌';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0.6;
}

.terms-note p {
    margin: 0;
    font-size: 1rem;
    color: #856404;
    line-height: 1.8;
    padding-right: 2.5rem;
    letter-spacing: 0.3px;
}

.terms-note strong {
    color: #664d03;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .terms-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .terms-header h2 {
        font-size: 2rem;
    }

    .terms-category-title {
        font-size: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .terms-item {
        padding: 1.75rem;
    }

    .terms-item-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .terms-header {
        padding: 2rem 1.25rem;
        margin-bottom: 3rem;
    }

    .terms-header h2 {
        font-size: 1.75rem;
    }

    .terms-header p {
        font-size: 1rem;
    }

    .terms-category {
        margin-bottom: 3rem;
    }

    .terms-category-title {
        font-size: 1.375rem;
        padding: 1rem;
    }

    .terms-category-title .icon {
        font-size: 1.25rem;
    }

    .terms-item {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .terms-item-title {
        font-size: 1.0625rem;
    }

    .terms-item-title::before {
        margin-right: 0.4rem;
    }

    .terms-item-content {
        font-size: 1rem;
    }

    .terms-note {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .terms-section::before {
        height: 3px;
    }

    .terms-content {
        padding: 0 12px;
    }

    .terms-header {
        margin-bottom: 2.5rem;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .terms-header h2 {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }

    .terms-header p {
        font-size: 0.9375rem;
    }

    .terms-category {
        margin-bottom: 2.5rem;
    }

    .terms-category-title {
        font-size: 1.25rem;
        padding: 0.875rem 1rem;
        border-left-width: 5px;
    }

    .terms-category-title .icon {
        font-size: 1.125rem;
        margin-right: 0.5rem;
    }

    .terms-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 10px;
        border-left-width: 4px;
    }

    .terms-item-number {
        font-size: 0.875rem;
        min-width: 32px;
        height: 32px;
        padding: 0 0.75rem;
        margin-bottom: 0.875rem;
    }

    .terms-item-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }

    .terms-item-title::before {
        font-size: 0.5em;
        margin-right: 0.35rem;
    }

    .terms-item-content {
        font-size: 0.9375rem;
        line-height: 1.8;
    }

    .terms-note {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 6px;
    }

    .terms-note::before {
        font-size: 1rem;
        top: 0.875rem;
        right: 0.875rem;
    }

    .terms-note p {
        font-size: 0.9375rem;
        padding-right: 2rem;
        line-height: 1.75;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .terms-header h2 {
        font-size: 1.375rem;
    }

    .terms-category-title {
        font-size: 1.125rem;
    }

    .terms-item {
        padding: 1rem;
    }

    .terms-item-title {
        font-size: 0.9375rem;
    }

    .terms-item-content {
        font-size: 0.875rem;
    }

    .terms-note p {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .terms-section {
        background: white;
    }

    .terms-item,
    .terms-category-title,
    .terms-header {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .terms-item:hover {
        transform: none;
    }
}
