/* ============================================================
   BlueTeam Defense Console — auth-dark.css (ULTRA)
   Enterprise cyber-security theme · Elastic Security / Cortex XDR 2026
   Version: v10.0 · Date: 2026-04-21
   Paletë: deep space navy + electric cyan + violet accent + red danger
   ============================================================ */

:root {
    /* Backgrounds */
    --bg:          #050915;
    --bg-deep:     #020510;
    --surface:     #0d1424;
    --surface-2:   #131c33;
    --surface-3:   #1a2540;

    /* Borders */
    --border:      rgba(0, 212, 255, 0.14);
    --border-strong: rgba(0, 212, 255, 0.38);
    --border-soft: rgba(255, 255, 255, 0.06);

    /* Brand */
    --primary:     #00d4ff;
    --primary-2:   #0891b2;
    --primary-glow: rgba(0, 212, 255, 0.45);
    --accent:      #7c3aed;
    --accent-2:    #a855f7;
    --accent-glow: rgba(124, 58, 237, 0.45);

    /* Semantic */
    --cyan:        #22d3ee;
    --green:       #10b981;
    --amber:       #f59e0b;
    --danger:      #ff4466;
    --danger-bg:   rgba(255, 68, 102, 0.08);

    /* Text */
    --text:        #e8eefb;
    --text-muted:  #9aabc7;
    --text-dim:    #5d6b85;

    /* Type */
    --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Radii & shadows */
    --radius:      10px;
    --radius-lg:   16px;
    --radius-xl:   22px;
    --shadow-glow: 0 0 0 1px rgba(0, 212, 255, 0.18), 0 30px 80px -25px rgba(0, 212, 255, 0.28);
    --shadow-deep: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }

/* ============================================================
   DEKORIMI I SFONDIT: grid + orbet + scanline
   ============================================================ */
.bt-grid-bg {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    pointer-events: none;
}
.bt-orb {
    position: fixed; border-radius: 50%;
    filter: blur(130px); pointer-events: none;
    opacity: 0.30; z-index: 0;
    animation: bt-orb-drift 18s ease-in-out infinite alternate;
}
.bt-orb.a {
    top: -180px; left: -140px;
    width: 520px; height: 520px;
    background: var(--primary);
}
.bt-orb.b {
    bottom: -200px; right: -160px;
    width: 580px; height: 580px;
    background: var(--accent);
    animation-delay: -9s;
}
@keyframes bt-orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -20px) scale(1.08); }
}
.bt-scanline {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 212, 255, 0.03) 50%,
        transparent 100%);
    background-size: 100% 6px;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

/* ============================================================
   STATUS STRIP (krye e faqes)
   ============================================================ */
.bt-status-strip {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 24px;
    background: rgba(5, 9, 21, 0.7);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.bt-strip-left, .bt-strip-right {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.bt-strip-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: bt-blink 2s ease-in-out infinite;
}
.bt-strip-dot.down {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}
@keyframes bt-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
.bt-strip-text { color: var(--text); font-weight: 600; }
.bt-strip-sep { color: var(--text-dim); }
.bt-strip-meta { color: var(--text-muted); }

@media (max-width: 640px) {
    .bt-status-strip { font-size: 10px; padding: 8px 14px; }
    .bt-strip-right .bt-strip-meta:nth-child(n+4) { display: none; }
}

/* ============================================================
   LAYOUT: Split screen 60/40
   ============================================================ */
.auth-shell {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: calc(100vh - 42px);
}
.auth-visual {
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 20% 10%, rgba(0, 212, 255, 0.08), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(124, 58, 237, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(5, 9, 21, 0) 0%, rgba(13, 20, 36, 0.6) 100%);
    position: relative;
    overflow: hidden;
}
.auth-form-side {
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(5, 9, 21, 0.6) 0%, rgba(13, 20, 36, 0.75) 100%);
    position: relative;
}

/* ============================================================
   BRAND (në panelin vizual)
   ============================================================ */
.bt-brand {
    display: flex; align-items: center; gap: 14px;
    position: relative; z-index: 2;
}
.bt-brand-icon {
    width: 54px; height: 54px;
    background:
        conic-gradient(from 140deg, var(--primary), var(--accent), var(--primary));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 12px 36px rgba(0, 212, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
}
.bt-brand-icon::after {
    content: ''; position: absolute; inset: 2px;
    background: var(--surface);
    border-radius: 12px;
    z-index: 0;
}
.bt-brand-icon svg {
    width: 28px; height: 28px; color: var(--primary);
    position: relative; z-index: 1;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}
.bt-brand-text h1 {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.bt-brand-text .codename {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.bt-hero {
    margin: 60px 0 36px;
    max-width: 620px;
    position: relative; z-index: 2;
}
.bt-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    color: #6ee7b7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.bt-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: bt-pulse 2s infinite;
}
@keyframes bt-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.bt-hero h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 20%, #9aabc7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.bt-hero p {
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--text-muted);
    max-width: 580px;
}

/* Feature grid */
.bt-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 32px;
    max-width: 620px;
}
.bt-feat {
    padding: 16px 18px;
    background: rgba(13, 20, 36, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.bt-feat:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.12);
}
.bt-feat-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(124, 58, 237, 0.22));
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin-bottom: 11px;
}
.bt-feat-icon svg { width: 17px; height: 17px; }
.bt-feat h4 {
    font-size: 13px; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
}
.bt-feat p {
    font-size: 12px; color: var(--text-muted); line-height: 1.55;
}

/* META badges */
.bt-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 36px;
    font-family: var(--mono);
    font-size: 11px;
    position: relative; z-index: 2;
}
.bt-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.bt-badge svg { width: 11px; height: 11px; color: var(--primary); }
.bt-badge.accent svg { color: var(--accent); }
.bt-badge.green svg { color: var(--green); }

/* ============================================================
   ANIMATED NETWORK GRAPH (SVG në panelin vizual)
   ============================================================ */
.bt-net {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 70% 50%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 10%, transparent 75%);
}
.bt-net .bt-edges line {
    stroke: url(#edgeGrad);
    stroke-width: 0.8;
    opacity: 0.6;
    animation: bt-edge-flow 5s ease-in-out infinite;
}
.bt-net .bt-edges line:nth-child(2n)   { animation-delay: -1s; }
.bt-net .bt-edges line:nth-child(3n)   { animation-delay: -2s; }
.bt-net .bt-edges line:nth-child(4n+1) { animation-delay: -3s; }
@keyframes bt-edge-flow {
    0%, 100% { opacity: 0.25; stroke-width: 0.6; }
    50%      { opacity: 0.75; stroke-width: 1.1; }
}

.bt-net .bt-node {
    fill: var(--primary);
    filter: drop-shadow(0 0 4px var(--primary-glow));
    animation: bt-node 3.5s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.bt-net .n1 { animation-delay: 0s; }
.bt-net .n2 { animation-delay: -1.2s; fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.bt-net .n3 { animation-delay: -2.4s; fill: var(--cyan); }
@keyframes bt-node {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.35); }
}

.bt-threat-pulse {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.2;
    opacity: 0;
    transform-origin: 230px 200px;
    transform-box: view-box;
    animation: bt-threat 3s ease-out infinite;
}
.bt-threat-pulse.delay {
    stroke: var(--accent);
    transform-origin: 400px 130px;
    animation-delay: -1.5s;
}
@keyframes bt-threat {
    0%   { opacity: 0.9; transform: scale(0.3); }
    100% { opacity: 0;   transform: scale(4); }
}

/* ============================================================
   LOGIN CARD (djathtas) — glassmorphism
   ============================================================ */
.bt-card {
    width: 100%;
    max-width: 440px;
    background: rgba(13, 20, 36, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 38px 34px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow-glow), var(--shadow-deep);
    position: relative;
}
/* Gradient border via mask */
.bt-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.55) 0%,
        rgba(124, 58, 237, 0.25) 45%,
        transparent 75%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
/* Card brand keyhole në krye */
.bt-card-brand {
    display: flex; justify-content: center;
    margin-bottom: 14px;
    margin-top: -6px;
}
.bt-keyhole {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: conic-gradient(from 200deg, var(--primary), var(--accent), var(--primary));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px rgba(0, 212, 255, 0.4);
    position: relative;
    animation: bt-keyhole-spin 12s linear infinite;
}
.bt-keyhole::before {
    content: ''; position: absolute; inset: 2px;
    background: var(--surface);
    border-radius: 14px;
}
.bt-keyhole svg {
    width: 26px; height: 26px;
    color: var(--primary);
    position: relative; z-index: 1;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
@keyframes bt-keyhole-spin {
    to { filter: hue-rotate(360deg); }
}

.bt-card-head { margin-bottom: 22px; text-align: center; }
.bt-card-head h2 {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--text);
}
.bt-card-head .sub {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* 2FA required strip */
.bt-mfa-strip {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.14), rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 12.5px;
    color: var(--text);
}
.bt-mfa-strip svg {
    width: 18px; height: 18px; color: var(--accent-2);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.bt-mfa-strip strong {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 2px;
}
.bt-mfa-strip span { color: var(--text-muted); font-size: 12px; }

/* Alert */
.bt-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--danger-bg);
    border: 1px solid rgba(255, 68, 102, 0.4);
    color: #fca5a5;
}
.bt-alert svg {
    width: 16px; height: 16px;
    flex-shrink: 0; margin-top: 1px;
    color: var(--danger);
}

/* Fields */
.bt-field { margin-bottom: 16px; }
.bt-field label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.bt-input-wrap { position: relative; }
.bt-input-wrap svg.icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.2s;
}
.bt-input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    background: rgba(2, 5, 16, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.bt-input::placeholder { color: var(--text-dim); }
.bt-input:hover { border-color: rgba(0, 212, 255, 0.24); }
.bt-input:focus {
    border-color: var(--primary);
    background: rgba(2, 5, 16, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18), 0 0 22px rgba(0, 212, 255, 0.15);
}
.bt-input:focus + svg.icon,
.bt-input-wrap:focus-within svg.icon { color: var(--primary); }

/* Reveal button për password */
.bt-reveal {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none; cursor: pointer;
    color: var(--text-dim);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}
.bt-reveal:hover { color: var(--primary); background: rgba(0, 212, 255, 0.08); }
.bt-reveal.on { color: var(--primary); }
.bt-reveal svg { width: 16px; height: 16px; }

/* Submit button */
.bt-btn {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 212, 255, 0.32);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.bt-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s;
}
.bt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 212, 255, 0.45);
    filter: brightness(1.08);
}
.bt-btn:hover::before { transform: translateX(120%); }
.bt-btn:active { transform: translateY(0); }
.bt-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bt-btn svg { width: 16px; height: 16px; }

/* Card foot */
.bt-card-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    display: flex; flex-direction: column; gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
.bt-sec-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bt-sec-badges span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
}
.bt-sec-badges span::before {
    content: '';
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 4px var(--green);
}
.bt-sec-badges span.accent { color: var(--accent-2); border-color: rgba(124, 58, 237, 0.35); background: rgba(124, 58, 237, 0.08); }
.bt-sec-badges span.accent::before { background: var(--accent-2); box-shadow: 0 0 4px var(--accent-glow); }
.bt-legal-links { color: var(--text-dim); text-align: center; font-family: var(--sans); font-size: 11.5px; }
.bt-legal-links a { color: var(--text-muted); }
.bt-legal-links a:hover { color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .auth-visual { padding: 44px 40px; }
    .auth-form-side { padding: 40px 32px; }
}
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual {
        padding: 36px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .auth-form-side { padding: 36px 24px; }
    .bt-features { grid-template-columns: 1fr; }
    .bt-hero { margin: 32px 0 24px; }
    .bt-hero h2 { font-size: 28px; }
}
@media (max-width: 520px) {
    .bt-card { padding: 32px 22px 24px; max-width: 100%; }
    .bt-keyhole { width: 48px; height: 48px; }
    .bt-card-head h2 { font-size: 20px; }
    .auth-visual { padding: 28px 20px; }
    .bt-brand-icon { width: 46px; height: 46px; }
}

/* Reduce motion — parim aksesibiliteti */
@media (prefers-reduced-motion: reduce) {
    .bt-orb,
    .bt-net .bt-edges line,
    .bt-net .bt-node,
    .bt-threat-pulse,
    .bt-keyhole,
    .bt-strip-dot,
    .bt-pill .dot {
        animation: none !important;
    }
    .bt-btn::before { display: none; }
}

/* ============================================================
   FAQET LIGJORE (cookies.html, privatesia.html) — dark themed
   ============================================================ */
.legal-shell {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding: 32px 20px 60px;
}
.legal-topbar {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    gap: 16px;
    flex-wrap: wrap;
}
.legal-topbar .bt-brand { gap: 10px; }
.legal-topbar .bt-brand-icon { width: 40px; height: 40px; border-radius: 11px; }
.legal-topbar .bt-brand-icon svg { width: 22px; height: 22px; }
.legal-topbar .bt-brand-text h1 { font-size: 14px; }
.legal-topbar .bt-brand-text .codename { font-size: 10px; }
.legal-back {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}
.legal-back:hover {
    color: var(--primary);
    border-color: var(--border-strong);
    text-decoration: none;
    background: rgba(0, 212, 255, 0.06);
}

.legal-breadcrumb {
    max-width: 1100px; margin: 0 auto 18px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 6px;
}
.legal-breadcrumb a { color: var(--text-muted); }
.legal-breadcrumb a:hover { color: var(--primary); }
.legal-breadcrumb .sep { margin: 0 8px; color: var(--text-dim); }

.legal-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}
.legal-toc {
    position: sticky;
    top: 20px;
    align-self: start;
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.legal-toc h3 {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: 2px; }
.legal-toc a {
    display: block;
    padding: 7px 10px 7px 32px;
    font-size: 12.5px;
    color: var(--text-muted);
    border-radius: 6px;
    position: relative;
    transition: all 0.15s;
    line-height: 1.4;
}
.legal-toc a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 8px; top: 7px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
}
.legal-toc a:hover {
    color: var(--text);
    background: rgba(0, 212, 255, 0.08);
    text-decoration: none;
}

.legal-content {
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 46px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}
.legal-content h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 30%, #9aabc7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.legal-content .legal-sub {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-content h2::before {
    content: '';
    width: 3px; height: 18px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-glow);
}
.legal-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 8px;
}
.legal-content p, .legal-content li {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.72;
}
.legal-content ul { margin-left: 22px; margin-bottom: 14px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--primary); }

.legal-notice {
    padding: 16px 20px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 14px;
    color: var(--text);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
    background: rgba(2, 5, 16, 0.45);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.legal-content th, .legal-content td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-content th {
    background: rgba(0, 212, 255, 0.07);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.legal-content td { color: var(--text-muted); }
.legal-content td code, .legal-content p code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--cyan);
    background: rgba(2, 5, 16, 0.65);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.legal-footer {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 18px 22px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-align: center;
    border-top: 1px solid var(--border);
}
.legal-footer strong { color: var(--text-muted); }

@media (max-width: 900px) {
    .legal-grid { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-content { padding: 28px 22px; }
    .legal-content h1 { font-size: 24px; }
    .legal-content table { display: block; overflow-x: auto; }
}

/* Focus visible për accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Scrollbar dark */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 6px;
    border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--surface-3); }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }
