/* ========== MOBILE-FIRST BASE STYLES ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #dc2626;
    --primary-light: #ef4444;
    --primary-soft: #fee2e2;
    --accent: #dc2626;
    --accent-soft: #fee2e2;
    --success: #991b1b;
    --success-soft: #fee2e2;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== NAVIGATION (MOBILE) ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-links {
    display: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.25rem;
}

/* ========== HERO (MOBILE) ========== */
.hero {
    min-height: auto;
    padding: 7rem 0 4rem;
    background: #ffffff;
    border-bottom: 2px solid var(--accent-soft);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
}

.hero-content {
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    width: 100%;
    min-height: 52px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.8);
    color: var(--text);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.hero-visual {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    flex: 1;
    min-width: 140px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ========== SECTIONS (MOBILE) ========== */
.section {
    padding: 4rem 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-soft) 0%, #f1f5f9 100%);
}

.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.875rem;
    background: var(--primary-soft);
    border-radius: 100px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ========== MECHANISMS (MOBILE) ========== */
.mechanisms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.mechanism {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mechanism:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(220,38,38,0.2);
}

.mechanism-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #fef2f2 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.mechanism-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.mechanism-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.mechanism-example {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.mechanism-example strong {
    color: var(--accent);
    font-weight: 600;
}

.mechanism-tip {
    background: var(--success-soft);
    border-left: 3px solid var(--success);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.mechanism-tip strong {
    color: var(--success);
    font-weight: 600;
}

/* ========== CASES (MOBILE) ========== */
.cases {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.case {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.case:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(220,38,38,0.15);
}

.case-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.35rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.case-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.case > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.case-source a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.case-source a:hover {
    text-decoration: underline;
}

.case-lesson {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.case-lesson strong {
    color: var(--success);
    font-weight: 600;
}

/* ========== CHECKLIST (MOBILE) ========== */
.checklist {
    padding: 0 1rem;
}

.checklist-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.checklist-item:hover {
    box-shadow: var(--shadow);
}

.checklist-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.4;
    flex-shrink: 0;
    width: 36px;
    line-height: 1;
}

.checklist-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.checklist-content ul {
    list-style: none;
}

.checklist-content li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checklist-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.checklist-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checklist-content a:hover {
    text-decoration: underline;
}

/* ========== ALTERNATIVES (MOBILE) ========== */
.alternatives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.alternative {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.alternative:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.alternative.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-card) 100%);
}

.alt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alt-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.alt-price {
    background: var(--success-soft);
    color: var(--success);
    padding: 0.35rem 0.875rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.alternative > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.alt-locations {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alt-locations span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alt-check {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ========== LEGAL (MOBILE) ========== */
.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
}

.legal-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.legal-item:hover {
    box-shadow: var(--shadow);
}

.legal-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legal-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== FOOTER (MOBILE) ========== */
.footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin: 0 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== TABLET BREAKPOINT (768px+) ========== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav {
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        gap: 2rem;
        box-shadow: none;
    }
    
    .nav-links a {
        padding: 0;
        font-size: 0.9rem;
    }
    
    .nav-links a:hover {
        background: none;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-container {
        flex-direction: row;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-cta {
        flex-direction: row;
        width: auto;
    }
    
    .btn {
        width: auto;
        min-height: auto;
    }
    
    .hero-visual {
        flex-direction: column;
        width: auto;
    }
    
    .stat-card {
        padding: 2rem;
        min-width: 220px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .mechanisms {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .mechanism {
        flex-direction: row;
    }
    
    .cases {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .alternatives {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .legal-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0;
    }
}

/* ========== DESKTOP BREAKPOINT (1024px+) ========== */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .mechanisms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .alternatives {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .legal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .checklist-item {
        padding: 1.5rem;
    }
}

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
    .hero {
        gap: 6rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text: #000000;
        --text-secondary: #333333;
        --border: #666666;
    }
}

/* ========== FOOTER LEGAL TEXT ========== */
.footer-legal-text {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.footer-legal-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-legal-text p strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-soft);
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ========== COOKIES TABLE ========== */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cookies-table thead {
    background: var(--bg-soft);
}

.cookies-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border);
}

.cookies-table td {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

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

.cookies-table tbody tr:hover {
    background: var(--bg-soft);
}

/* ========== RESPONSIVE TABLES ========== */
@media (max-width: 768px) {
    .cookies-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.15rem;
    }
    
    .footer-legal-text {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .footer-legal-text p {
        font-size: 0.8rem;
    }
}
