/* =====================================================
   Terms and Conditions Page - Modern Accordion Styles
   एजंटमराठा Matrimonial Platform
   ===================================================== */

/* =====================================================
   Privacy-Section Layout (matches privacy/disclaimer pages)
   ===================================================== */
.privacy-section {
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 200px);
}

.privacy-container {
    max-width: 1000px;
}

.privacy-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Privacy Header - Matches other policy pages */
.privacy-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
    color: white;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(5deg);
    }
}

.privacy-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
    }
}

.privacy-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.privacy-header .last-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-body {
    padding: 2.5rem;
}

/* Dark mode for privacy section */
body.dark-mode .privacy-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .privacy-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .privacy-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 50%, #581c87 100%);
}

body.dark-mode .privacy-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive for privacy section */
@media (max-width: 768px) {
    .privacy-section {
        padding: 1rem 0 2rem;
    }

    .privacy-header {
        padding: 2rem 1.5rem;
    }

    .privacy-header h1 {
        font-size: 1.75rem;
    }

    .privacy-subtitle {
        font-size: 1rem;
    }

    .privacy-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .privacy-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-header h1 {
        font-size: 1.5rem;
    }

    .privacy-subtitle {
        font-size: 0.9rem;
    }
}

/* CSS Variables for easy theming */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-header: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-header-hover: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    --gradient-active: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* =====================================================
   Main Container & Page Header
   ===================================================== */
.terms-container {
    padding: 3rem 0 5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Page Title Styling */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =====================================================
   Legal Notice Box - Enhanced
   ===================================================== */
.legal-notice-box {
    display: flex;
    gap: 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.legal-notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--warning-color);
}

.legal-notice-box i {
    font-size: 1.75rem;
    color: var(--warning-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.legal-notice-box div {
    color: #92400e;
    line-height: 1.7;
    font-weight: 500;
}

.legal-notice-box strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #78350f;
}

/* =====================================================
   Progress Indicator
   ===================================================== */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    cursor: pointer;
}

.progress-step:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.progress-step.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.progress-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* =====================================================
   Accordion Container
   ===================================================== */
.terms-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =====================================================
   Accordion Item - Glassmorphism Style
   ===================================================== */
.accordion-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
}

.accordion-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--border-color);
}

.accordion-item.active {
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color);
    transform: translateY(-4px);
}

/* =====================================================
   Accordion Header - Premium Styling
   ===================================================== */
.accordion-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1.5rem 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-base);
    position: relative;
}

.accordion-header:focus-visible {
    outline: 2px solid var(--border-color);
    outline-offset: -2px;
}

.accordion-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.accordion-item.active .accordion-header {
    background: transparent;
}

/* Ripple effect */
.accordion-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.accordion-header:active::after {
    width: 300px;
    height: 300px;
}

/* =====================================================
   Clause Number - Modern Badge
   ===================================================== */
.clause-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}


.accordion-item.active .clause-number {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

body.dark-mode .clause-number {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .accordion-item.active .clause-number {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* =====================================================
   Clause Title - Typography
   ===================================================== */
.clause-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--transition-base);
    letter-spacing: -0.025em;
}

.accordion-item.active .clause-title {
    color: var(--text-primary);
}

/* =====================================================
   Toggle Icon - Animated
   ===================================================== */
.toggle-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.toggle-icon {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.accordion-header:hover .toggle-icon-container {
    background: var(--bg-tertiary);
}

.accordion-header:hover .toggle-icon {
    color: var(--text-primary);
}

.accordion-item.active .toggle-icon-container {
    background: var(--bg-tertiary);
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--text-secondary);
}

/* =====================================================
   Accordion Content - Smooth Animation
   ===================================================== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
}

.accordion-item.active .accordion-content {
    max-height: 50000px;
}

.content-inner {
    padding: 2rem 2.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
}

.content-inner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-inner h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.content-inner h3:first-child {
    margin-top: 0;
}

.content-inner h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.content-inner p {
    margin-bottom: 1.25rem;
}

.content-inner ul,
.content-inner ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.content-inner li {
    margin-bottom: 0.75rem;
    position: relative;
}

.content-inner ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

.content-inner ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* =====================================================
   Highlight Boxes - Modern Cards
   ===================================================== */
.highlight-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.highlight-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.highlight-box.warning::before {
    background: var(--warning-color);
}

.highlight-box.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.highlight-box.danger::before {
    background: var(--danger-color);
}

.highlight-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.highlight-box.info::before {
    background: var(--info-color);
}

.highlight-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.highlight-box.success::before {
    background: var(--success-color);
}

.highlight-box strong {
    display: inline;
    white-space: nowrap;
    font-weight: 700;
}

.highlight-box ul {
    margin: 0.75rem 0 0;
}

/* Icon indicators - only for first strong element (header) */
.highlight-box strong:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.highlight-box.warning strong:first-child::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.highlight-box.danger strong:first-child::before {
    content: '\f057';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.highlight-box.info strong:first-child::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* =====================================================
   Tables - Modern Design
   ===================================================== */
.terms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
}

.terms-table th,
.terms-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.terms-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.terms-table td {
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}

.terms-table tr:hover td {
    background: var(--bg-secondary);
}

.terms-table tr:last-child td {
    border-bottom: none;
}

.terms-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.terms-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

/* Zebra striping */
.terms-table tbody tr:nth-child(even) td {
    background: rgba(99, 102, 241, 0.03);
}

.terms-table tbody tr:nth-child(even):hover td {
    background: var(--bg-secondary);
}

/* =====================================================
   States List
   ===================================================== */
.states-list {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.states-list::before {
    content: '\f279';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

/* =====================================================
   Terms Footer
   ===================================================== */
.terms-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
    position: relative;
}

.terms-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: var(--gradient-primary);
}

.copyright-notice {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.copyright-notice h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.copyright-notice p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.copyright-notice .copyright-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

.accordion-item.active .content-inner {
    animation: slideDown 0.4s ease;
}

.accordion-item.highlight-pulse {
    animation: highlightPulse 1.5s ease;
}

/* =====================================================
   Search & Filter Bar
   ===================================================== */
.terms-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.terms-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.terms-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.expand-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.expand-all-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* =====================================================
   Dark Mode Support - Enhanced
   ===================================================== */
body.dark-mode {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .accordion-item {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.dark-mode .accordion-header {
    background: transparent;
}

body.dark-mode .accordion-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

body.dark-mode .clause-title {
    color: var(--text-primary);
}

body.dark-mode .content-inner {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

body.dark-mode .content-inner h3 {
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .content-inner h4 {
    color: var(--text-primary);
}

body.dark-mode .terms-table {
    background: var(--bg-primary);
}

body.dark-mode .terms-table th {
    background: var(--gradient-primary);
}

body.dark-mode .terms-table td {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.dark-mode .terms-table tbody tr:nth-child(even) td {
    background: rgba(99, 102, 241, 0.1);
}

body.dark-mode .terms-table tbody tr:hover td {
    background: var(--bg-tertiary);
}

body.dark-mode .highlight-box.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #fcd34d;
}

body.dark-mode .highlight-box.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #fca5a5;
}

body.dark-mode .highlight-box.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #93c5fd;
}

body.dark-mode .highlight-box.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #6ee7b7;
}

body.dark-mode .states-list {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

body.dark-mode .terms-footer {
    border-color: var(--border-color);
}

body.dark-mode .copyright-notice {
    background: var(--bg-secondary);
}

body.dark-mode .copyright-notice h4 {
    color: var(--text-primary);
}

body.dark-mode .copyright-notice {
    color: var(--text-secondary);
}

body.dark-mode .legal-notice-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #fcd34d;
}

body.dark-mode .legal-notice-box div,
body.dark-mode .legal-notice-box strong {
    color: #fcd34d;
}

body.dark-mode .terms-search-input {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .terms-search-input:focus {
    border-color: var(--primary-light);
}

body.dark-mode .expand-all-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* =====================================================
   Responsive Design - Enhanced
   ===================================================== */

/* Disable hover effects on touch devices */
@media (hover: none) {
    .accordion-item:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .accordion-item.active:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

    .accordion-header:hover {
        background: transparent;
    }

    .progress-step:hover {
        transform: none;
    }

    .expand-all-btn:hover {
        background: var(--bg-primary);
        color: var(--text-secondary);
    }
}

/* Tablet breakpoint */
@media (max-width: 992px) {
    .terms-container {
        padding: 2rem 1rem 4rem;
    }

    .page-title {
        font-size: 1.875rem;
    }

    .progress-indicator {
        gap: 0.375rem;
        padding: 0.75rem;
    }

    .progress-step {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .clause-title {
        font-size: 1.05rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .privacy-section {
        padding: 1rem 0 2rem;
    }

    .privacy-header {
        padding: 2rem 1.5rem;
    }

    .privacy-header h1 {
        font-size: 1.75rem;
    }

    .privacy-subtitle {
        font-size: 1rem;
    }

    .privacy-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .privacy-body {
        padding: 1.5rem;
    }

    .terms-container {
        padding: 1.5rem 1rem 3rem;
    }

    .page-title {
        font-size: 1.625rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .legal-notice-box {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .legal-notice-box i {
        font-size: 1.5rem;
    }

    .legal-notice-box strong {
        font-size: 1rem;
    }

    .accordion-header {
        padding: 1.25rem;
        gap: 1rem;
    }

    .clause-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .clause-title {
        font-size: 1rem;
    }

    .toggle-icon-container {
        width: 32px;
        height: 32px;
    }

    .content-inner {
        padding: 1.5rem;
    }

    .content-inner h3 {
        font-size: 1.1rem;
    }

    .content-inner h4 {
        font-size: 1rem;
    }

    .content-inner p {
        font-size: 0.95rem;
    }

    .terms-table {
        font-size: 0.85rem;
    }

    .terms-table th,
    .terms-table td {
        padding: 0.75rem;
    }

    .terms-search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .expand-all-btn {
        justify-content: center;
        width: 100%;
    }

    .highlight-box {
        padding: 1.125rem;
    }

    .terms-footer {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .copyright-notice {
        padding: 1.5rem;
    }

    .copyright-notice h4 {
        font-size: 1.15rem;
    }
}

/* Small mobile breakpoint */
@media (max-width: 576px) {
    .privacy-section {
        padding: 0.75rem 0 1.5rem;
    }

    .privacy-header {
        padding: 1.5rem 1.25rem;
    }

    .privacy-header h1 {
        font-size: 1.5rem;
    }

    .privacy-subtitle {
        font-size: 0.9rem;
    }

    .privacy-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .privacy-body {
        padding: 1.25rem;
    }

    .terms-container {
        padding: 1.25rem 0.75rem 2.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
    }

    .legal-notice-box {
        padding: 1rem;
        gap: 0.75rem;
    }

    .legal-notice-box i {
        font-size: 1.25rem;
    }

    .legal-notice-box strong {
        font-size: 0.95rem;
    }

    .legal-notice-box div {
        font-size: 0.9rem;
    }

    .accordion-header {
        padding: 1rem;
        gap: 0.875rem;
    }

    .clause-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .clause-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .toggle-icon-container {
        width: 30px;
        height: 30px;
    }

    .toggle-icon {
        font-size: 0.75rem;
    }

    .content-inner {
        padding: 1.25rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .content-inner h3 {
        font-size: 1.05rem;
        margin: 1.5rem 0 0.875rem;
    }

    .content-inner h4 {
        font-size: 0.95rem;
        margin: 1.25rem 0 0.625rem;
    }

    .content-inner p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .content-inner ul,
    .content-inner ol {
        padding-left: 1.5rem;
    }

    .terms-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .terms-table th,
    .terms-table td {
        padding: 0.625rem 0.75rem;
    }

    .terms-table th {
        font-size: 0.7rem;
    }

    .terms-search-input {
        font-size: 16px;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }

    .expand-all-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .highlight-box {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .highlight-box strong:first-child {
        font-size: 1rem;
    }

    .progress-indicator {
        display: none;
    }

    .terms-footer {
        margin-top: 2.5rem;
        padding-top: 1.75rem;
    }

    .copyright-notice {
        padding: 1.25rem;
    }

    .copyright-notice h4 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .copyright-notice p {
        font-size: 0.875rem;
    }

    .last-updated {
        font-size: 0.85rem;
    }
}

/* Very small mobile breakpoint */
@media (max-width: 400px) {
    .privacy-section {
        padding: 0.5rem 0 1.25rem;
    }

    .privacy-header {
        padding: 1.25rem 1rem;
    }

    .privacy-header h1 {
        font-size: 1.35rem;
    }

    .privacy-subtitle {
        font-size: 0.85rem;
    }

    .privacy-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .privacy-body {
        padding: 1rem;
    }

    .terms-container {
        padding: 1rem 0.5rem 2rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .legal-notice-box {
        padding: 0.875rem;
        gap: 0.625rem;
    }

    .legal-notice-box i {
        font-size: 1.125rem;
    }

    .legal-notice-box strong {
        font-size: 0.9rem;
    }

    .legal-notice-box div {
        font-size: 0.85rem;
    }

    .accordion-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .clause-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .clause-title {
        font-size: 0.875rem;
    }

    .content-inner {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .content-inner h3 {
        font-size: 1rem;
    }

    .content-inner h4 {
        font-size: 0.9rem;
    }

    .terms-table th,
    .terms-table td {
        padding: 0.5rem 0.625rem;
    }

    .highlight-box {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .copyright-notice {
        padding: 1rem;
    }

    .copyright-notice h4 {
        font-size: 1rem;
    }

    .copyright-notice p {
        font-size: 0.85rem;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    .accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .accordion-item {
        break-inside: avoid;
        margin-bottom: 1.5rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .accordion-header {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .accordion-item.active .accordion-header {
        background: #6366f1 !important;
    }

    .toggle-icon-container {
        display: none;
    }

    .legal-notice-box {
        break-inside: avoid;
        background: #fff3cd !important;
    }

    .content-inner {
        padding: 1.5rem;
    }

    .terms-search-bar,
    .progress-indicator {
        display: none;
    }

    .clause-number {
        background: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border-color);
    }
}

/* =====================================================
   Reduced Motion Support
   ===================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .accordion-content {
        transition: none;
    }
}

/* =====================================================
   High Contrast Mode Support
   ===================================================== */
@media (prefers-contrast: high) {
    .accordion-item {
        border-width: 2px;
    }

    .accordion-header:focus-visible {
        outline-width: 4px;
    }

    .highlight-box {
        border: 2px solid currentColor;
    }
}

/* =====================================================
   Nested Bootstrap Accordion for Sub-Clauses
   ===================================================== */
.sub-clause-accordion {
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: rgba(99, 102, 241, 0.08);
    --bs-accordion-active-color: var(--text-primary);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.sub-clause-accordion .accordion-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sub-clause-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.sub-clause-accordion .accordion-button {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    padding-right: 3rem;
}

.sub-clause-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.sub-clause-accordion .accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.sub-clause-accordion .accordion-button::after {
    background-size: 1rem;
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.sub-clause-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.sub-clause-accordion .accordion-body {
    padding: 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    line-height: 1.8;
}

.sub-clause-accordion .accordion-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem;
}

.sub-clause-accordion .accordion-body h4:first-child {
    margin-top: 0;
}

.sub-clause-accordion .accordion-body p {
    margin-bottom: 1rem;
}

.sub-clause-accordion .accordion-body ul,
.sub-clause-accordion .accordion-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.sub-clause-accordion .accordion-body li {
    margin-bottom: 0.5rem;
}

.sub-clause-accordion .accordion-body .highlight-box {
    margin: 1rem 0;
}

.sub-clause-accordion .accordion-body .terms-table {
    margin: 1rem 0;
}

/* Make sub-clauses expanded by default */
.sub-clause-accordion .accordion-collapse {
    display: block !important;
}

.sub-clause-accordion .accordion-button::after {
    display: none;
}

.sub-clause-accordion .accordion-button {
    cursor: default;
    pointer-events: none;
}

/* Nested accordion dark mode */
body.dark-theme .sub-clause-accordion .accordion-item {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.dark-theme .sub-clause-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
}

body.dark-theme .sub-clause-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--text-primary);
}

body.dark-theme .sub-clause-accordion .accordion-body {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Responsive nested accordion */
@media (max-width: 768px) {
    .sub-clause-accordion .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .sub-clause-accordion .accordion-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sub-clause-accordion .accordion-button {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .sub-clause-accordion .accordion-body {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   CSP-Compliant Styles (No Inline Styles Needed)
   ===================================================== */

/* Hidden class for search filter */
.accordion-item.hidden {
    display: none !important;
}

/* Accordion content animation using CSS Grid */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.accordion-content.opening {
    grid-template-rows: 1fr;
}

.accordion-content>.content-inner {
    overflow: hidden;
}

/* Reading Progress Bar (CSP-compliant, no inline styles) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(99, 102, 241, 0.1);
    z-index: 9999;
}

.reading-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Progress level classes */
.reading-progress-bar .progress-fill.progress-0 {
    width: 0%;
}

.reading-progress-bar .progress-fill.progress-10 {
    width: 10%;
}

.reading-progress-bar .progress-fill.progress-20 {
    width: 20%;
}

.reading-progress-bar .progress-fill.progress-30 {
    width: 30%;
}

.reading-progress-bar .progress-fill.progress-40 {
    width: 40%;
}

.reading-progress-bar .progress-fill.progress-50 {
    width: 50%;
}

.reading-progress-bar .progress-fill.progress-60 {
    width: 60%;
}

.reading-progress-bar .progress-fill.progress-70 {
    width: 70%;
}

.reading-progress-bar .progress-fill.progress-80 {
    width: 80%;
}

.reading-progress-bar .progress-fill.progress-90 {
    width: 90%;
}

.reading-progress-bar .progress-fill.progress-100 {
    width: 100%;
}

/* Animation for clause number */
.clause-number.animate-pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}