/**
 * ============================================================================
 * TERMENI.HTML - Page-Specific Styles
 * ============================================================================
 *
 * Pagina: Termeni și Condiții (utilizatori generali)
 * Accent: Blue (#2563eb)
 *
 * Structură:
 * 1. CSS Variables
 * 2. Legal Hero
 * 3. Legal TOC
 * 4. Legal Content Layout
 * 5. Legal Sidebar
 * 6. Legal Article
 * 7. Section Styles
 * 8. Steps Process
 * 9. Data Categories
 * 10. Cookie Types (Anulări)
 * 11. Rights Grid
 * 12. Info/Warning Boxes
 * 13. Authority Info
 * 14. Legal CTA
 * 15. Utility Classes
 * 16. Responsive Design
 *
 * ============================================================================
 */

/* ============================================================================
   1. CSS VARIABLES
   ============================================================================ */

:root {
    /* Page Accent - Blue */
    --accent-primary: #2563eb;
    --accent-primary-rgb: 37, 99, 235;
    --accent-light: #dbeafe;
    --accent-dark: #1d4ed8;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;

    /* Spacing */
    --section-padding: 4rem;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
    --accent-light: rgba(37, 99, 235, 0.15);
    --color-success-light: rgba(16, 185, 129, 0.15);
    --color-warning-light: rgba(245, 158, 11, 0.15);
    --color-danger-light: rgba(239, 68, 68, 0.15);
    --color-info-light: rgba(59, 130, 246, 0.15);
}

/* ============================================================================
   2. LEGAL HERO
   ============================================================================ */

.legal-hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.12) 0%,
      rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 40%,
      rgba(99, 102, 241, 0.08) 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .legal-hero,
[data-mode="dark"] .legal-hero {
    background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.15) 0%,
      rgba(var(--color-surface-rgb, 15, 23, 42), 0.98) 40%,
      rgba(99, 102, 241, 0.10) 100%
    );
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-primary, #0f172a), transparent);
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 0 50px rgba(37, 99, 235, 0.4),
      0 12px 40px rgba(37, 99, 235, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: heroIconPulse 3s ease-in-out infinite;
}

@keyframes heroIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), 0 12px 40px rgba(37, 99, 235, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(37, 99, 235, 0.5), 0 16px 50px rgba(37, 99, 235, 0.4); }
}

.hero-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.legal-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.updated-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.legal-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================================
   3. LEGAL TOC (Table of Contents)
   ============================================================================ */

.legal-toc {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 60px;
    z-index: 90;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .legal-toc {
    background: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.9);
}

.toc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.toc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.toc-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.15);
}

.toc-item.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.toc-item span:first-child {
    font-weight: 600;
    opacity: 0.7;
}

/* ============================================================================
   4. LEGAL CONTENT LAYOUT
   ============================================================================ */

.legal-content {
    padding: var(--section-padding) 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ============================================================================
   5. LEGAL SIDEBAR
   ============================================================================ */

.legal-sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: linear-gradient(145deg, rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 0%, rgba(var(--color-elevated-rgb, 30, 41, 59), 0.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.sidebar-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .sidebar-card {
    background: linear-gradient(145deg, rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 0%, rgba(var(--color-elevated-rgb, 30, 41, 59), 0.9) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .sidebar-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(99, 102, 241, 0.2);
}

/* Important Card */
.sidebar-card.important {
    border-left: 4px solid var(--color-warning);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 50%, rgba(var(--color-elevated-rgb, 30, 41, 59), 0.9) 100%);
}

[data-theme="dark"] .sidebar-card.important {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 50%, rgba(var(--color-elevated-rgb, 30, 41, 59), 0.9) 100%);
}

.sidebar-card.important .card-icon {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

[data-theme="dark"] .card-header h3 {
    color: #f1f5f9;
}

/* Card Content */
.sidebar-card p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .sidebar-card p {
    color: #cbd5e1;
}

/* Related Links */
.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.related-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.related-links a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.related-links a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    color: #a5b4fc;
}

/* Help Card */
.sidebar-card.help-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    border: none;
    color: white;
}

.sidebar-card.help-card h3,
.sidebar-card.help-card p {
    color: white;
}

.sidebar-card.help-card p {
    opacity: 0.9;
}

.sidebar-card.help-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--accent-primary);
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--transition-fast);
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-help svg {
    width: 16px;
    height: 16px;
}

/* ============================================================================
   6. LEGAL ARTICLE
   ============================================================================ */

.legal-article {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ============================================================================
   7. SECTION STYLES
   ============================================================================ */

.legal-section {
    scroll-margin-top: 160px;
}

.section-header-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    flex-shrink: 0;
}

.section-header-legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.section-content ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

.section-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.section-content ul li::marker {
    color: var(--accent-primary);
}

/* ============================================================================
   8. STEPS PROCESS
   ============================================================================ */

.steps-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.step-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .step-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   9. DATA CATEGORIES
   ============================================================================ */

.data-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.category-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-icon.blue {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.category-icon.green {
    background: var(--color-success-light);
    color: var(--color-success);
}

.category-icon.yellow {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   10. COOKIE TYPES (Politici Anulare)
   ============================================================================ */

.cookie-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cookie-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-normal);
}

.cookie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .cookie-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Flexibilă - Green */
.cookie-card.flexible {
    border-color: var(--color-success);
    background: linear-gradient(180deg, var(--color-success-light) 0%, var(--bg-primary) 100%);
}

.cookie-card.flexible .cookie-icon {
    background: var(--color-success);
}

.cookie-card.flexible h4 {
    color: var(--color-success);
}

/* Moderată - Warning/Orange */
.cookie-card.moderate {
    border-color: var(--color-warning);
    background: linear-gradient(180deg, var(--color-warning-light) 0%, var(--bg-primary) 100%);
}

.cookie-card.moderate .cookie-icon {
    background: var(--color-warning);
}

.cookie-card.moderate h4 {
    color: var(--color-warning);
}

/* Strictă - Danger/Red */
.cookie-card.strict {
    border-color: var(--color-danger);
    background: linear-gradient(180deg, var(--color-danger-light) 0%, var(--bg-primary) 100%);
}

.cookie-card.strict .cookie-icon {
    background: var(--color-danger);
}

.cookie-card.strict h4 {
    color: var(--color-danger);
}

.cookie-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   11. RIGHTS GRID
   ============================================================================ */

.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.right-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.right-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .right-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.right-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.right-icon svg {
    width: 20px;
    height: 20px;
}

.right-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.right-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   12. INFO/WARNING BOXES
   ============================================================================ */

.info-box,
.warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Info Box */
.info-box {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(var(--color-surface-rgb, 15, 23, 42), 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(var(--color-surface-rgb, 15, 23, 42), 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.warning-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.warning-icon svg {
    width: 20px;
    height: 20px;
}

.warning-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.warning-content p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   13. AUTHORITY INFO
   ============================================================================ */

.authority-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

.authority-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.authority-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   14. LEGAL CTA
   ============================================================================ */

.legal-cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

[data-theme="dark"] .legal-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, var(--bg-secondary) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================================
   15. UTILITY CLASSES
   ============================================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================================
   16. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }

    .steps-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-categories,
    .cookie-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }

    .legal-hero {
        padding: 5rem 0 3rem;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .hero-icon svg {
        width: 32px;
        height: 32px;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-toc {
        padding: 1.5rem 0;
    }

    .toc-grid {
        gap: 0.5rem;
    }

    .toc-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .legal-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        min-width: 100%;
    }

    .section-header-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-header-legal h2 {
        font-size: 1.25rem;
    }

    .steps-process,
    .data-categories,
    .cookie-types {
        grid-template-columns: 1fr;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.75rem;
    }

    .legal-hero p {
        font-size: 1rem;
    }

    .toc-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .toc-item {
        justify-content: center;
    }

    .legal-article {
        gap: 2.5rem;
    }

    .step-item,
    .category-card,
    .cookie-card {
        padding: 1.25rem;
    }

    .info-box,
    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .info-icon,
    .warning-icon {
        margin: 0 auto;
    }

    .right-card {
        flex-direction: column;
        text-align: center;
    }

    .right-icon {
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .legal-toc,
    .legal-sidebar,
    .legal-cta,
    .main-header,
    .main-footer,
    .mobile-menu-overlay {
        display: none !important;
    }

    .legal-hero {
        padding: 2rem 0;
        background: none !important;
    }

    .legal-grid {
        display: block;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .section-number {
        background: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE-LEVEL AMBIENT EFFECTS - LEGAL BLUE THEME
   ═══════════════════════════════════════════════════════════════════
   Tema: Document oficial, profesional, încredere
   Culori: Blue (#2563eb), Slate (#475569), Indigo accent
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Primary Floating Orb (Blue Document) ─── */
.page-terms::before {
  content: '';
  position: fixed;
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(59, 130, 246, 0.08) 35%,
    rgba(37, 99, 235, 0.03) 60%,
    transparent 75%
  );
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: termsOrbPrimary 25s ease-in-out infinite;
}

/* ─── Secondary Floating Orb (Slate Professional) ─── */
.page-terms::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.10) 0%,
    rgba(71, 85, 105, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: termsOrbSecondary 30s ease-in-out infinite;
}

/* ─── Keyframe Animations ─── */
@keyframes termsOrbPrimary {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  50% {
    transform: translate(60px, 40px) scale(1.05);
    opacity: 0.16;
  }
}

@keyframes termsOrbSecondary {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.10;
  }
  50% {
    transform: translate(-50px, -30px) scale(1.08);
    opacity: 0.14;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .page-terms::before {
    width: 350px;
    height: 350px;
    filter: blur(35px);
  }

  .page-terms::after {
    width: 400px;
    height: 400px;
    filter: blur(40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-terms::before,
  .page-terms::after {
    animation: none !important;
  }
}

