/* 
 * AysimaPOS - Terms of Service Page Styles
 * Modern SaaS Design - Variables Based
 * copilot-instructions.md COMPLIANT: NO inline styles, modular CSS
 */

/* Hero Section - Matching FAQ Design */
.terms-hero {
    background: var(--gradient-primary);
    padding: var(--spacing-16) 0 var(--spacing-14);
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.terms-hero .container {
    max-width: 1280px;
}

.terms-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-8);
    color: #ffffff;
    position: relative;
    z-index: var(--z-index-10);
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.terms-hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: #ffffff;
    opacity: 0.95;
    position: relative;
    z-index: var(--z-index-10);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Hero subtitle internal links - SEO optimized */
.terms-hero__subtitle a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.terms-hero__subtitle a:hover {
    color: var(--gray-100) !important;
    text-decoration-thickness: 2px !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3) !important;
}

.terms-hero__update {
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Content Section */
.terms-content {
    padding: 60px 0 80px;
    background-color: var(--gray-50);
}

.terms-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.terms-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.terms-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-600);
    display: flex;
    align-items: center;
}

.terms-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.terms-section__content {
    color: var(--gray-700);
    line-height: 1.8;
}

.terms-section__content p {
    margin-bottom: 1rem;
}

.terms-section__content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.terms-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.terms-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-700);
    line-height: 1.7;
    border-bottom: 1px solid var(--gray-200);
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list li i {
    position: absolute;
    left: 0;
    top: 0.85rem;
    font-size: 1.1rem;
    color: var(--success-400);
}

.terms-list li i.fa-times-circle {
    color: var(--danger-400);
}

.terms-list li i.fa-ban {
    color: var(--warning-500);
}

/* Info Box */
.info-box {
    background: var(--gray-100);
    border-left: 4px solid var(--primary-600);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box p {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Modern Alert Styles */
.alert-modern {
    display: flex;
    align-items: flex-start;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-modern .alert-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.alert-modern.alert-info .alert-icon {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-600);
}

.alert-modern.alert-warning .alert-icon {
    background: rgba(237, 137, 54, 0.15);
    color: var(--warning-500);
}

.alert-modern.alert-danger .alert-icon {
    background: rgba(245, 101, 101, 0.15);
    color: var(--danger-400);
}

.alert-modern.alert-success .alert-icon {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-400);
}

.alert-modern.alert-primary .alert-icon {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-600);
}

.alert-modern .alert-icon i {
    font-size: 1.3rem;
}

.alert-modern .alert-content {
    flex: 1;
}

.alert-modern .alert-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.alert-modern.alert-info {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid var(--primary-600);
}

.alert-modern.alert-warning {
    background: rgba(237, 137, 54, 0.05);
    border-left: 4px solid var(--warning-500);
}

.alert-modern.alert-danger {
    background: rgba(245, 101, 101, 0.05);
    border-left: 4px solid var(--danger-400);
}

.alert-modern.alert-success {
    background: rgba(72, 187, 120, 0.05);
    border-left: 4px solid var(--success-400);
}

.alert-modern.alert-primary {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid var(--primary-600);
}

/* Table Styles */
.terms-table {
    margin-top: 1.5rem;
}

.terms-table thead {
    background: var(--gray-100);
}

.terms-table th {
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-300);
    padding: 1rem;
}

.terms-table td {
    padding: 1rem;
    color: var(--gray-700);
    vertical-align: middle;
}

.terms-table tbody tr:hover {
    background: var(--gray-50);
}

/* Related Links */
.related-links {
    padding: 2rem 0;
}

.related-links h5 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-hero__title {
        font-size: 1.75rem;
    }

    .terms-section {
        padding: 1.5rem 1rem;
    }

    .terms-section__title {
        font-size: 1.25rem;
    }

    .alert-modern {
        flex-direction: column;
    }

    .alert-modern .alert-icon {
        margin-bottom: 1rem;
    }
}
.privacy-hero__link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--success-400);
    transition: all 0.3s ease;
}

.privacy-hero__link:hover {
    color: var(--success-400);
    text-decoration-color: #ffffff;
    text-underline-offset: 5px;
}

.privacy-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .privacy-hero {
        padding: 50px 0 40px;
    }
    
    .privacy-hero__title {
        font-size: 2rem;
    }
    
    .privacy-hero__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .privacy-hero__title {
        font-size: 1.75rem;
    }
}

/* Custom Alert Boxes - Modular CSS (No AdminLTE dependency) */
.privacy-alert {
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    background-color: var(--gray-50);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.privacy-alert:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.privacy-alert i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.privacy-alert strong {
    font-weight: 700;
}

/* Info Alert - Blue */
.privacy-alert--info {
    background-color: var(--primary-100);
    border-left-color: var(--info-500);
    color: var(--info-700);
}

.privacy-alert--info i {
    color: var(--info-500);
}

/* Success Alert - Green */
.privacy-alert--success {
    background-color: var(--success-100);
    border-left-color: var(--success-500);
    color: var(--success-800);
}

.privacy-alert--success i {
    color: var(--success-500);
}

/* Warning Alert - Yellow/Orange */
.privacy-alert--warning {
    background-color: var(--warning-100);
    border-left-color: var(--warning-500);
    color: var(--warning-800);
}

.privacy-alert--warning i {
    color: var(--warning-500);
}

/* Danger Alert - Red */
.privacy-alert--danger {
    background-color: var(--danger-100);
    border-left-color: var(--danger-500);
    color: var(--danger-900);
}

.privacy-alert--danger i {
    color: var(--danger-500);
}

/* Secondary Alert - Gray */
.privacy-alert--secondary {
    background-color: var(--gray-100);
    border-left-color: var(--gray-500);
    color: var(--gray-700);
}

.privacy-alert--secondary i {
    color: var(--gray-500);
}

/* Alert with no margin top */
.privacy-alert--no-mt {
    margin-top: 0;
}

/* Alert with margin bottom */
.privacy-alert--mb {
    margin-bottom: 1rem;
}

/* Alert List Styling */
.privacy-alert ul {
    margin-bottom: 0;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.privacy-alert ul li {
    margin-bottom: 0.25rem;
}

.privacy-alert ul li:last-child {
    margin-bottom: 0;
}

/* Responsive Alert */
@media (max-width: 767px) {
    .privacy-alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   CUSTOM ALERT BOXES - NO BOOTSTRAP DEPENDENCY
   Terms of Service için özel alert sistemi
   AdminLTE ile çakışma olmadan çalışır
   ============================================ */

.terms-alert {
    padding: 1rem 1.25rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.5rem !important;
    border-left: 4px solid !important;
    background-color: var(--gray-50) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.terms-alert:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

.terms-alert i {
    font-size: 1.1rem !important;
    vertical-align: middle !important;
}

.terms-alert strong,
.terms-alert h5,
.terms-alert h6 {
    font-weight: 700 !important;
}

.terms-alert p {
    margin-bottom: 0.5rem !important;
}

.terms-alert p:last-child {
    margin-bottom: 0 !important;
}

/* Info Alert - Blue */
.terms-alert--info {
    background-color: var(--primary-100) !important;
    border-left-color: var(--info-500) !important;
    color: var(--info-700) !important;
}

.terms-alert--info i {
    color: var(--info-500) !important;
}

.terms-alert--info strong,
.terms-alert--info h5,
.terms-alert--info h6 {
    color: var(--info-700) !important;
}

/* Success Alert - Green */
.terms-alert--success {
    background-color: var(--success-100) !important;
    border-left-color: var(--success-500) !important;
    color: var(--success-800) !important;
}

.terms-alert--success i {
    color: var(--success-500) !important;
}

.terms-alert--success strong,
.terms-alert--success h5,
.terms-alert--success h6 {
    color: var(--success-800) !important;
}

/* Warning Alert - Yellow/Orange */
.terms-alert--warning {
    background-color: var(--warning-100) !important;
    border-left-color: var(--warning-500) !important;
    color: var(--warning-800) !important;
}

.terms-alert--warning i {
    color: var(--warning-500) !important;
}

.terms-alert--warning strong,
.terms-alert--warning h5,
.terms-alert--warning h6 {
    color: var(--warning-800) !important;
}

/* Danger Alert - Red */
.terms-alert--danger {
    background-color: var(--danger-100) !important;
    border-left-color: var(--danger-500) !important;
    color: var(--danger-900) !important;
}

.terms-alert--danger i {
    color: var(--danger-500) !important;
}

.terms-alert--danger strong,
.terms-alert--danger h5,
.terms-alert--danger h6 {
    color: var(--danger-900) !important;
}

/* Primary Alert - Blue/Purple */
.terms-alert--primary {
    background-color: var(--primary-200) !important;
    border-left-color: var(--primary-700) !important;
    color: var(--primary-800) !important;
}

.terms-alert--primary i {
    color: var(--primary-700) !important;
}

.terms-alert--primary strong,
.terms-alert--primary h5,
.terms-alert--primary h6 {
    color: var(--primary-800) !important;
}

/* Secondary Alert - Gray */
.terms-alert--secondary {
    background-color: var(--gray-100) !important;
    border-left-color: var(--gray-500) !important;
    color: var(--gray-700) !important;
}

.terms-alert--secondary i {
    color: var(--gray-500) !important;
}

/* Alert with no margin top */
.terms-alert--no-mt {
    margin-top: 0 !important;
}

/* Alert with margin bottom */
.terms-alert--mb {
    margin-bottom: 1rem !important;
}

/* Alert List Styling */
.terms-alert ul {
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
    padding-left: 1.5rem !important;
}

.terms-alert ul li {
    margin-bottom: 0.25rem !important;
}

.terms-alert ul li:last-child {
    margin-bottom: 0 !important;
}

/* Responsive Alert */
@media (max-width: 767px) {
    .terms-alert {
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   BOOTSTRAP ALERT OVERRIDES
   AdminLTE stilleri yüzünden kaybolmasın diye
   ============================================ */

/* Base Alert Override - Ensures visibility */
.card-body .alert {
    position: relative !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease !important;
}

/* Alert Warning - Yellow */
.card-body .alert-warning {
    color: var(--warning-800) !important;
    background-color: var(--warning-100) !important;
    border-color: var(--warning-100) !important;
    border-left: 4px solid var(--warning-500) !important;
}

.card-body .alert-warning strong {
    color: var(--warning-800) !important;
    font-weight: 700 !important;
}

.card-body .alert-warning i {
    color: var(--warning-500) !important;
}

/* Alert Danger - Red */
.card-body .alert-danger {
    color: var(--danger-900) !important;
    background-color: var(--danger-100) !important;
    border-color: var(--danger-200) !important;
    border-left: 4px solid var(--danger-500) !important;
}

.card-body .alert-danger strong {
    color: var(--danger-900) !important;
    font-weight: 700 !important;
}

.card-body .alert-danger i {
    color: var(--danger-500) !important;
}

/* Alert Success - Green */
.card-body .alert-success {
    color: var(--success-800) !important;
    background-color: var(--success-100) !important;
    border-color: var(--success-200) !important;
    border-left: 4px solid var(--success-500) !important;
}

.card-body .alert-success strong {
    color: var(--success-800) !important;
    font-weight: 700 !important;
}

.card-body .alert-success h5,
.card-body .alert-success h6 {
    color: var(--success-800) !important;
    font-weight: 700 !important;
}

.card-body .alert-success i {
    color: var(--success-500) !important;
}

/* Alert Info - Blue */
.card-body .alert-info {
    color: var(--info-700) !important;
    background-color: var(--info-100) !important;
    border-color: var(--info-100) !important;
    border-left: 4px solid var(--info-500) !important;
}

.card-body .alert-info strong {
    color: var(--info-700) !important;
    font-weight: 700 !important;
}

.card-body .alert-info i {
    color: var(--info-500) !important;
}

/* Alert Primary - Purple */
.card-body .alert-primary {
    color: var(--primary-800) !important;
    background-color: var(--primary-200) !important;
    border-color: var(--primary-300) !important;
    border-left: 4px solid var(--primary-700) !important;
}

.card-body .alert-primary strong,
.card-body .alert-primary h6 {
    color: var(--primary-800) !important;
    font-weight: 700 !important;
}

.card-body .alert-primary i {
    color: var(--primary-700) !important;
}

/* Alert Hover Effect */
.card-body .alert:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Alert Icons */
.card-body .alert i.fas,
.card-body .alert i.far {
    font-size: 1.1rem !important;
    vertical-align: middle !important;
    margin-right: 0.5rem !important;
}

/* Alert Headings */
.card-body .alert h5,
.card-body .alert h6 {
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}

/* Alert Paragraphs */
.card-body .alert p {
    margin-bottom: 0.5rem !important;
}

.card-body .alert p:last-child {
    margin-bottom: 0 !important;
}

/* Responsive Alert */
@media (max-width: 767px) {
    .card-body .alert {
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .card-body .alert i.fas,
    .card-body .alert i.far {
        font-size: 1rem !important;
    }
}

/* ============================================
   Hero Animations - Unique Style: Zoom In
   ============================================ */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.terms-hero__title {
    animation: zoomIn 0.7s ease-out;
}

.terms-hero__subtitle {
    animation: fadeIn 0.6s ease-out 0.15s both;
}

.terms-hero__update {
    animation: fadeIn 0.5s ease-out 0.25s both;
}
