/* EasyTrashMail - Shared Legal Pages Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background - Matching Index Page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

/* Glass Effect Container - Matching Main Site */
.legal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section - Improved Design */
.legal-header {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(135deg, #3b82f6, #8b5cf6) 1;
    position: relative;
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 2rem;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.last-updated:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.last-updated::before {
    content: '📅';
    font-size: 1rem;
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: premiumPulse 2s ease-in-out infinite;
}

.premium-badge::before {
    content: '⭐';
}

@keyframes premiumPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
    }
}

/* Sections */
.legal-section {
    margin-bottom: 3.5rem;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, transparent) 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-section h2::before {
    content: '';
    width: 5px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.legal-section h3::before {
    content: '▸';
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: bold;
}

.legal-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
}

.legal-section p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 1.35rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.75rem;
}

.legal-section ul li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    transition: all 0.3s ease;
}

.legal-section ul li:hover {
    color: #1e293b;
    transform: translateX(5px);
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.legal-section ul li strong {
    color: #0f172a;
    font-weight: 700;
}

/* Links - Improved */
.legal-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.legal-section a:hover {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    transform: translateY(-1px);
}

/* Premium Feature Box */
.premium-feature-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-left: 5px solid #fbbf24;
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
    transition: all 0.3s ease;
}

.premium-feature-box:hover {
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.25);
    transform: translateY(-3px);
}

.premium-feature-box h4 {
    color: #92400e;
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-feature-box h4::before {
    content: '⭐';
    font-size: 1.5rem;
}

.premium-feature-box p {
    color: #78350f;
    margin-bottom: 0.85rem;
}

.premium-feature-box ul li::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Info Boxes - Improved */
.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.08));
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-left: 5px solid #3b82f6;
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.info-box h4 {
    color: #1e3a8a;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.info-box h4::before {
    content: 'ℹ️';
    font-size: 1.3rem;
}

.info-box p {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(251, 146, 60, 0.08));
    border: 2px solid rgba(239, 68, 68, 0.25);
    border-left: 5px solid #ef4444;
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.warning-box:hover {
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
    transform: translateY(-3px);
}

.warning-box h4 {
    color: #991b1b;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.warning-box h4::before {
    content: '⚠️';
    font-size: 1.3rem;
}

.warning-box p {
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(74, 222, 128, 0.08));
    border: 2px solid rgba(34, 197, 94, 0.25);
    border-left: 5px solid #22c55e;
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.success-box:hover {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.2);
    transform: translateY(-3px);
}

.success-box h4 {
    color: #065f46;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.success-box h4::before {
    content: '✓';
    font-size: 1.3rem;
}

.success-box p {
    color: #064e3b;
    margin-bottom: 0.5rem;
}

/* Contact Info Box - Improved */
.contact-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
}

.contact-info:hover {
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #0f172a;
    font-weight: 700;
}

.contact-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-info a:hover {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

/* Table of Contents Navigation */
.toc-nav {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.toc-nav h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.toc-nav h3::before {
    content: '📋';
    margin-right: 0.75rem;
}

.toc-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.toc-nav ul li {
    padding-left: 0;
}

.toc-nav ul li::before {
    display: none;
}

.toc-nav a {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.toc-nav a:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-color: #3b82f6;
    transform: translateX(5px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .legal-container {
        padding: 6rem 1rem 3rem;
        margin-top: 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }

    .legal-header {
        padding-bottom: 2rem;
        margin-bottom: 2.5rem;
    }

    .legal-header h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .last-updated {
        font-size: 0.8125rem;
        padding: 0.5rem 1.25rem;
    }

    .premium-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        margin-top: 0.75rem;
    }

    .legal-section {
        margin-bottom: 2.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .legal-section h2::before {
        width: 4px;
        height: 28px;
    }

    .legal-section h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .legal-section h4 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 1rem;
        line-height: 1.6;
    }

    .legal-section p {
        margin-bottom: 1.25rem;
    }

    .legal-section ul {
        margin-bottom: 1.5rem;
    }

    .legal-section ul li {
        padding-left: 2rem;
        margin-bottom: 0.875rem;
    }

    .legal-section ul li::before {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
        top: 1px;
    }

    .premium-feature-box,
    .info-box,
    .warning-box,
    .success-box {
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 1rem;
    }

    .premium-feature-box h4,
    .info-box h4,
    .warning-box h4,
    .success-box h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .premium-feature-box p,
    .info-box p,
    .warning-box p,
    .success-box p {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }

    .contact-info {
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1.5rem;
    }

    .contact-info p {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
    }

    .toc-nav {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .toc-nav ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Cookie Table Mobile */
    .cookie-table {
        margin: 1.5rem 0;
        border-radius: 1rem;
    }

    .cookie-table table {
        min-width: 500px;
        font-size: 0.875rem;
    }

    .cookie-table thead th {
        padding: 1rem 0.875rem;
        font-size: 0.875rem;
    }

    .cookie-table tbody td {
        padding: 1rem 0.875rem;
        font-size: 0.875rem;
    }

    .cookie-table tbody td code {
        font-size: 0.8125rem;
        padding: 0.35rem 0.75rem;
        word-break: break-word;
    }

    /* Browser Links Mobile */
    .browser-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .browser-links a {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .legal-container {
        padding: 5rem 0.75rem 2rem;
        margin-top: 0.5rem;
    }

    .legal-content {
        padding: 1.5rem 1.25rem;
        border-radius: 1rem;
    }

    .legal-header {
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .last-updated {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .premium-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.75rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .legal-section h2::before {
        width: 3px;
        height: 24px;
    }

    .legal-section h3 {
        font-size: 1.125rem;
        margin-top: 1.25rem;
    }

    .legal-section h4 {
        font-size: 1rem;
        margin-top: 1.25rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.9375rem;
    }

    .legal-section ul li {
        padding-left: 1.75rem;
    }

    .legal-section ul li::before {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .premium-feature-box,
    .info-box,
    .warning-box,
    .success-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .premium-feature-box h4,
    .info-box h4,
    .warning-box h4,
    .success-box h4 {
        font-size: 1rem;
    }

    .premium-feature-box p,
    .info-box p,
    .warning-box p,
    .success-box p {
        font-size: 0.875rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .contact-info p {
        font-size: 0.875rem;
    }

    /* Cookie Table Small Mobile */
    .cookie-table {
        margin: 1.25rem 0;
    }

    .cookie-table table {
        min-width: 450px;
        font-size: 0.8125rem;
    }

    .cookie-table thead th {
        padding: 0.875rem 0.75rem;
        font-size: 0.8125rem;
    }

    .cookie-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.8125rem;
    }

    .cookie-table tbody td code {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    /* Browser Links Small Mobile */
    .browser-links {
        gap: 0.875rem;
        margin: 1.25rem 0;
    }

    .browser-links a {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* Cookie Table Styles */
.cookie-table {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    min-width: 600px;
}

.cookie-table thead {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.cookie-table thead th {
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cookie-table tbody tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    transform: scale(1.01);
}

.cookie-table tbody td {
    padding: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

.cookie-table tbody td code {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 0.4rem 0.85rem;
    border-radius: 0.65rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 700;
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    word-break: break-all;
}

.browser-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.browser-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.browser-links a:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.browser-links a::before {
    content: '🌐';
    font-size: 1.5rem;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .last-updated:hover,
    .premium-feature-box:hover,
    .info-box:hover,
    .warning-box:hover,
    .success-box:hover,
    .contact-info:hover,
    .legal-section ul li:hover,
    .toc-nav a:hover,
    .cookie-table tbody tr:hover,
    .browser-links a:hover {
        transform: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }

    .legal-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .premium-feature-box:hover,
    .info-box:hover,
    .warning-box:hover,
    .success-box:hover,
    .contact-info:hover {
        box-shadow: none;
        transform: none;
    }
}

/* Accessibility */
.legal-section a:focus,
.contact-info a:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selection Styling */
::selection {
    background: rgba(59, 130, 246, 0.25);
    color: #0f172a;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.25);
    color: #0f172a;
}


