/* ═══════════════════════════════════════════════
   takeKONTROL — legal page styles
   Loaded after tokens.css, base.css and chrome.css.
   ═══════════════════════════════════════════════ */

/* Token values this page declared that differ from the shared
   set in tokens.css. Preserved exactly rather than normalised,
   so the refactor changes no pixel. Delete a line here once the
   design agrees on one value for it. */
:root,
[data-theme="light"] {
  --card-shadow: 0 8px 24px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 16px 32px rgba(179, 32, 32, 0.12);
  --radius-corp: 12px;
}

[data-theme="dark"] {
  --card-bg: #161616;
  --card-shadow: 0 8px 24px rgba(0,0,0,0.4);
  --card-shadow-hover: 0 16px 32px rgba(211, 47, 47, 0.15);
}

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

body, html {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: var(--text-main); line-height: 1.6; scroll-behavior: smooth;
            background-color: var(--primary-bg);
            transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
            overflow-x: hidden;
            width: 100%;
        }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Interactive Action Elements */

.btn {
            display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px; text-decoration: none; 
            font-weight: 600; border-radius: 50px; transition: all var(--transition-speed) ease; cursor: pointer; 
            border: 1px solid transparent; font-size: 0.95rem; letter-spacing: 0.5px; text-align: center;
        }

.btn-primary:hover { background-color: var(--primary-red-hover); box-shadow: 0 4px 15px rgba(179, 32, 32, 0.4); transform: translateY(-2px); }

/* Flush Corporate Global Header Navigation */

.tesla-header {
            position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; 
            padding: 16px 48px; z-index: 1000; background: transparent; background-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
            color: #ffffff; transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease, color var(--transition-speed) ease, padding var(--transition-speed) ease;
        }

.tesla-header.scrolled {
            background-color: var(--header-bg-scrolled); backdrop-filter: blur(10px); background-image: none;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border-color); color: var(--nav-text-scrolled);
            padding: 12px 48px;
        }

.tesla-header .logo { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; color: inherit; text-decoration: none; }

.tesla-header a, .theme-toggle, .lang-toggle { color: inherit; text-decoration: none; }

.tesla-header nav a { font-size: 0.95rem; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-corp); transition: background var(--transition-speed) ease; }

.lang-toggle { background: none; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-corp); letter-spacing: 0.5px; transition: background var(--transition-speed) ease; color: inherit; }

.theme-toggle { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: var(--radius-corp); transition: transform 0.2s ease, background var(--transition-speed) ease; color: inherit; }

.cart-wrapper { position: relative; display: flex; align-items: center; cursor: pointer; padding: 8px; border-radius: var(--radius-corp); transition: background var(--transition-speed) ease; margin-left: 5px; color: inherit; }

.drawer-header .logo { font-weight: 700; font-size: 1.1rem; color: var(--text-heading); letter-spacing: 1px; text-decoration: none; display: flex; align-items: center; gap: 8px; }

/* Legal Mini Hero Cover */

.hero-mini {
            position: relative; height: 35vh; min-height: 320px; width: 100%; display: flex; align-items: center;
            justify-content: center; text-align: center; background-color: #080808; margin-bottom: 60px;
            padding: 0 20px;
        }

.hero-mini h1 { font-size: 3.5rem; color: #ffffff; margin: 0; margin-top: 50px; line-height: 1.1; }

.hero-mini p { color: #dddddd; font-size: 1.2rem; max-width: 600px; margin: 15px auto 0; }

/* ---------------------------------------------------
           SCROLL DOWN HOVER HINT
        ----------------------------------------------------- */

.scroll-down-hint {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 1;
            transition: opacity 0.6s ease, visibility 0.6s ease;
            z-index: 10;
        }

.scroll-down-hint.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px; position: relative; }

.scroll-wheel {
            width: 4px; height: 8px; background-color: var(--primary-red); border-radius: 2px;
            position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
            animation: scrollWheel 1.5s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
        }

@keyframes scrollWheel { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 15px); opacity: 0; } }

/* Legal Page Architecture */

.legal-content {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-corp);
            padding: 60px;
            box-shadow: var(--card-shadow);
            margin-bottom: 80px;
        }

.legal-section {
            margin-bottom: 50px;
            padding-bottom: 40px;
            border-bottom: 1px solid var(--border-color);
        }

.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Dynamic Scroll-Fill Underline for Titles */

.legal-title { font-size: 1.8rem; font-weight: 700; color: var(--text-heading); margin-bottom: 24px; }

.title-fill-text { position: relative; display: inline-block; padding-bottom: 12px; }

.title-fill-text::after {
            content: ''; position: absolute; bottom: 0; left: 0;
            width: var(--fill-width, 0%); height: 3px; background-color: var(--primary-red);
            transition: width 0.1s ease-out;
        }

/* Single Column Standard Layout */

.legal-section p, .custom-list li { font-size: 1.05rem; color: var(--text-main); line-height: 1.7; margin-bottom: 15px; }

.rate-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }

.rate-table th, .rate-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }

.rate-table th { color: var(--text-heading); font-weight: 700; background: var(--secondary-bg); }

.rate-table td { color: var(--text-main); }

.custom-list { list-style: none; padding-left: 0; margin-top: 20px; }

.custom-list li { position: relative; padding-left: 24px; }

.custom-list li::before { content: '■'; position: absolute; left: 0; top: 2px; color: var(--primary-red); font-size: 0.75rem; }

strong { color: var(--text-heading); font-weight: 600; }

/* Warning Highlight Box */

.warning-box {
            display: flex; align-items: flex-start; gap: 20px;
            background: rgba(211, 47, 47, 0.05); border-left: 4px solid var(--primary-red);
            padding: 24px 30px; border-radius: 0 var(--radius-corp) var(--radius-corp) 0;
            margin-bottom: 30px;
        }

.warning-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }

.warning-content p { margin-bottom: 0; color: var(--text-heading); font-weight: 500; font-size: 1.05rem;}

.contact-block {
            background-color: var(--secondary-bg); border: 1px solid var(--border-color);
            padding: 30px; border-radius: var(--radius-corp); margin-top: 20px;
        }

.contact-line { display: flex; align-items: center; gap: 15px; font-size: 1.05rem; color: var(--text-main); margin-bottom: 15px; }

.contact-line:last-child { margin-bottom: 0; }

.contact-line a { color: var(--primary-red); text-decoration: none; font-weight: 500; }

.contact-line a:hover { text-decoration: underline; }

/* Layout Footer */

footer { background-color: var(--footer-bg); border-top: 1px solid var(--border-color); padding: 80px 0 40px; color: var(--text-muted); transition: background-color var(--transition-speed) ease; }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; flex-wrap: wrap; gap: 15px;}

/* ─── COMPREHENSIVE MOBILE OPTIMIZATIONS ─── */

@media (max-width: 992px) {
            .tesla-header { padding: 16px 24px; }
            .hero-mini h1 { font-size: 2.8rem; }
        }

@media (max-width: 768px) {
            .container { padding: 0 20px; }
            .desktop-only, .center-nav { display: none !important; }
            .mobile-toggle { display: inline-flex !important; }
            
            .hero-mini { min-height: 280px; margin-bottom: 40px;}
            .hero-mini h1 { font-size: 2.2rem; }
            .hero-mini p { font-size: 1rem; }
            
            .legal-content { padding: 30px 20px; margin-bottom: 60px; }
            .legal-title { font-size: 1.4rem; margin-bottom: 20px; }
            .legal-section { margin-bottom: 40px; padding-bottom: 30px; }
            .legal-section p, .custom-list li { font-size: 1rem; }
            
            .warning-box { flex-direction: column; gap: 12px; padding: 20px; border-radius: 0 8px 8px 0; }
            .contact-block { padding: 20px; }
            .contact-line { font-size: 0.95rem; align-items: flex-start;}
            
            .footer-grid { grid-template-columns: 1fr; gap: 40px; }
            .footer-form { flex-direction: column; }
            .footer-form .btn { width: 100%; }
            .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
            
            .scroll-down-hint { bottom: 20px; }
        }

@media (max-width: 480px) {
            .hero-mini h1 { font-size: 1.8rem; }
        }
