/* =============================================
   LEGAL PAGES CSS - Privacy, Terms, Cookie Policy
   ============================================= */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #fee2e2;
    --secondary: #1d3557;
    --dark: #0d1b2a;
    --accent: #f4a261;
    --teal: #2ec4b6;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --text: #1e293b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Legal Hero Section */
.legal-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1d3557 50%, #162a3f 100%);
    overflow: hidden;
}

.legal-hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.legal-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.legal-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    top: -100px;
    right: -100px;
    animation: legalFloat 8s ease-in-out infinite;
}

.legal-shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1d3557, #2ec4b6);
    bottom: -50px;
    left: -50px;
    animation: legalFloat 10s ease-in-out infinite reverse;
}

.legal-shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f4a261, #e63946);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: legalFloat 6s ease-in-out infinite;
}

@keyframes legalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(244, 162, 97, 0.15));
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-bottom: 24px;
}

.legal-hero-icon i {
    font-size: 36px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.legal-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 24px;
}

.legal-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-hero-meta span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-hero-meta span i {
    margin-right: 6px;
    color: #f4a261;
}

/* Legal Content Section */
.legal-content-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-toc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

.legal-toc-title i {
    margin-right: 8px;
    color: #e63946;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc-list li {
    margin-bottom: 4px;
}

.legal-toc-link {
    display: block;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.legal-toc-link:hover {
    color: #e63946;
    background: rgba(230, 57, 70, 0.05);
    text-decoration: none;
}

.legal-toc-link.active {
    color: #e63946;
    background: rgba(230, 57, 70, 0.08);
    border-left-color: #e63946;
    font-weight: 500;
}

/* Main Legal Content */
.legal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Intro Card */
.legal-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(244, 162, 97, 0.05));
    border: 1px solid rgba(230, 57, 70, 0.12);
    border-radius: 12px;
    margin-bottom: 40px;
}

.legal-intro-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #fff;
    font-size: 18px;
}

.legal-intro-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Legal Section */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f4f8;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.legal-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.legal-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a2a4a;
    margin: 0;
}

.legal-section-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2a4a;
    margin: 20px 0 12px;
}

.legal-section-body p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section-body a.legal-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #e63946;
    transition: all 0.3s ease;
}

.legal-section-body a.legal-link:hover {
    color: #c1121f;
    border-bottom-style: solid;
}

/* Legal List */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.legal-list li i {
    color: #f4a261;
    font-size: 14px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Legal Grid (How We Use, Types of Cookies) */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.legal-grid-item {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.legal-grid-item:hover {
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.08);
    transform: translateY(-2px);
}

.legal-grid-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(244, 162, 97, 0.1));
    margin-bottom: 12px;
}

.legal-grid-icon i {
    font-size: 20px;
    color: #e63946;
}

.legal-grid-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 8px;
}

.legal-grid-item p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Highlight Box */
.legal-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.04), rgba(230, 57, 70, 0.06));
    border: 1px solid rgba(230, 57, 70, 0.12);
    margin: 20px 0;
}

.legal-highlight-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #fff;
    font-size: 20px;
}

.legal-highlight-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 6px;
}

.legal-highlight-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.7;
}

/* Rights Grid */
.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.legal-right-item {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.legal-right-item:hover {
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.08);
    transform: translateY(-2px);
}

.legal-right-item i {
    font-size: 28px;
    color: #e63946;
    margin-bottom: 12px;
    display: block;
}

.legal-right-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 8px;
}

.legal-right-item p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Contact Card */
.legal-contact-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.legal-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.legal-contact-item > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(244, 162, 97, 0.1));
    color: #e63946;
    font-size: 18px;
    flex-shrink: 0;
}

.legal-contact-item strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1a2a4a;
    display: block;
    margin-bottom: 4px;
}

.legal-contact-item p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.legal-contact-item a {
    color: #e63946;
    text-decoration: none;
}

.legal-contact-item a:hover {
    text-decoration: underline;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
}

.cookie-table thead {
    background: linear-gradient(135deg, #0d1b2a, #1d3557);
}

.cookie-table thead th {
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.cookie-table tbody tr {
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.3s ease;
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: rgba(230, 57, 70, 0.03);
}

.cookie-table tbody td {
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #475569;
}

.cookie-table code {
    background: rgba(230, 57, 70, 0.08);
    color: #c1121f;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}


/* =============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================= */

/* Cookie Consent Banner - Bottom Slide Up */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-inner {
    background: linear-gradient(135deg, #0d1b2a 0%, #162a3f 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(230, 57, 70, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 24px;
}

.cookie-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(244, 162, 97, 0.15));
    border: 1px solid rgba(230, 57, 70, 0.2);
    flex-shrink: 0;
    animation: cookiePulse 2s ease-in-out infinite;
}

@keyframes cookiePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.15); }
    50% { box-shadow: 0 0 20px 5px rgba(230, 57, 70, 0.1); }
}

.cookie-banner-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, #f4a261, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-banner-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.cookie-banner-text p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #f4a261;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #ffc494;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: transparent;
    color: #f4a261;
    border: 1px solid rgba(244, 162, 97, 0.3);
}

.cookie-btn-customize:hover {
    background: rgba(244, 162, 97, 0.08);
    border-color: rgba(244, 162, 97, 0.5);
    transform: translateY(-2px);
}

.cookie-btn i {
    font-size: 12px;
}


/* Cookie Settings Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Cookie Settings Modal */
.cookie-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.cookie-modal-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1d3557 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-modal-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(244, 162, 97, 0.2));
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.cookie-modal-header-icon i {
    font-size: 22px;
    color: #f4a261;
}

.cookie-modal-header-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.cookie-modal-header-text p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.cookie-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Body */
.cookie-modal-body {
    padding: 28px 32px;
    max-height: calc(85vh - 180px);
    overflow-y: auto;
}

.cookie-modal-body::-webkit-scrollbar {
    width: 5px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cookie-modal-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f4f8;
}

/* Cookie Category */
.cookie-category {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.06);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.cookie-category-icon.essential {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.15));
    color: #22c55e;
}

.cookie-category-icon.analytics {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(244, 162, 97, 0.15));
    color: #e63946;
}

.cookie-category-icon.functional {
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.15));
    color: #2ec4b6;
}

.cookie-category-icon.marketing {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(244, 162, 97, 0.15));
    color: #f4a261;
}

.cookie-category-icon i {
    font-size: 16px;
}

.cookie-category-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 2px;
}

.cookie-category-text p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.cookie-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin-right: 10px;
}

.cookie-category-badge.always-on {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #e63946, #f4a261);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    transform: translateX(22px);
}

/* Cookie Category Details (collapsible) */
.cookie-category-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f4f8;
    display: none;
}

.cookie-category.expanded .cookie-category-details {
    display: block;
}

.cookie-category-details p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 20px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-modal-footer-left .cookie-btn {
    background: transparent;
    color: #e63946;
    padding: 10px 16px;
}

.cookie-modal-footer-left .cookie-btn:hover {
    background: rgba(230, 57, 70, 0.05);
}

.cookie-modal-footer-right {
    display: flex;
    gap: 10px;
}

.cookie-btn-save {
    background: linear-gradient(135deg, #e63946, #f4a261);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.25);
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.cookie-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

/* Cookie Settings Floating Button (re-open preferences) */
.cookie-settings-btn {
    position: fixed;
    bottom: 90px;
    left: 24px;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1b2a, #1d3557);
    border: 1px solid rgba(230, 57, 70, 0.25);
    color: #f4a261;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cookie-settings-btn.show {
    display: flex;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(230, 57, 70, 0.5);
}

.cookie-settings-btn .cookie-settings-tooltip {
    position: absolute;
    left: 54px;
    background: #1a2a4a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cookie-settings-btn:hover .cookie-settings-tooltip {
    opacity: 1;
    visibility: visible;
}


/* =============================================
   RESPONSIVE STYLES
   ============================================= */

@media (max-width: 991px) {
    .legal-hero {
        padding: 120px 0 60px;
    }

    .legal-hero-title {
        font-size: 36px;
    }

    .legal-content {
        padding: 28px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-contact-card {
        grid-template-columns: 1fr;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
    }

    .cookie-banner-left {
        flex-direction: column;
    }

    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .legal-hero {
        padding: 110px 0 50px;
    }

    .legal-hero-title {
        font-size: 28px;
    }

    .legal-hero-subtitle {
        font-size: 15px;
    }

    .legal-hero-icon {
        width: 64px;
        height: 64px;
    }

    .legal-hero-icon i {
        font-size: 28px;
    }

    .legal-hero-meta {
        gap: 16px;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-section-header h2 {
        font-size: 20px;
    }

    .legal-section-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .legal-rights-grid {
        grid-template-columns: 1fr;
    }

    .legal-intro-card {
        flex-direction: column;
        text-align: center;
    }

    .legal-highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-content {
        padding: 18px 16px;
    }

    .cookie-btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    .cookie-modal {
        max-height: 90vh;
        border-radius: 16px;
    }

    .cookie-modal-header {
        padding: 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .cookie-modal-footer-right {
        width: 100%;
    }

    .cookie-modal-footer-right .cookie-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 24px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .cookie-btn {
        flex: 1;
        justify-content: center;
    }

    .cookie-modal-header-text h3 {
        font-size: 16px;
    }
}