/*
 * narzedziahub.pl – Shared Design System
 * Includes: reset, CSS variables, header, footer, typography, dark/light mode.
 * Used by all pages. Font self-hosted — no Google Fonts dependency.
 */

/* ─── SELF-HOSTED INTER FONT (latin + latin-ext for Polish) ───
   Any page that includes shared.css gets Inter automatically.
   No <link> to Google Fonts needed in HTML ever again.
*/

/* Weight 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weight 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weight 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weight 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weight 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DESIGN TOKENS ─── */
:root {
  /* ─ Brand colours (match tool-premium.css palette) ─ */
  --primary:         #6c5cff;
  --primary-dark:    #4f46e5;
  --primary-light:   #a5b4fc;
  --secondary:       #3b82f6;
  --secondary-2:     #06b6d4;
  --success:         #10b981;
  --warning:         #f59e0b;
  --danger:          #ef4444;

  /* ─ Backgrounds (deep dark navy) ─ */
  --bg:              #0b1220;
  --bg-card:         #111827;
  --bg-input:        #1a2130;
  --bg-hover:        #1f2a3c;

  /* ─ Text ─ */
  --text:            rgba(255,255,255,0.92);
  --text-2:          rgba(255,255,255,0.62);
  --text-3:          rgba(255,255,255,0.52);

  /* ─ Borders ─ */
  --border:          rgba(255,255,255,0.10);
  --border-strong:   rgba(255,255,255,0.18);

  /* ─ Radius ─ */
  --radius:          18px;
  --radius-sm:       12px;
  --radius-xs:       8px;

  /* ─ Shadows ─ */
  --shadow-card:     0 4px 24px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover:    0 16px 48px rgba(0,0,0,0.55), 0 4px 8px rgba(0,0,0,0.35);
  --shadow-glow:     0 0 0 3px rgba(108,92,255,0.25);

  /* ─ Gradients (reusable) ─ */
  --primary-gradient:   linear-gradient(135deg, #6c5cff 0%, #3b82f6 100%);
  --primary-gradient-v: linear-gradient(180deg, #6c5cff 0%, #3b82f6 100%);
  --glow-primary:       0 18px 40px rgba(108,92,255,0.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* ─── LIGHT MODE TOKENS ─── */
body.light {
  --bg:            #f8fafc;
  --bg-card:       #ffffff;
  --bg-input:      #f1f5f9;
  --bg-hover:      #e8edf5;
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-card:   0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-hover:  0 8px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  --shadow-glow:   0 0 0 3px rgba(108,92,255,0.18);
}

/* ─── CLS FIX: Inter metric-compatible fallback (eliminates layout shift on font load) ─── */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

/* ─── BASE ─── */
body {
  font-family: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
  background:
    radial-gradient(900px 520px at 70% 5%, rgba(108,92,255,0.14), transparent 60%),
    radial-gradient(700px 520px at 10% 25%, rgba(143,123,255,0.09), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.25s, color 0.25s;
  line-height: 1.6;
  overflow-x: hidden;
}
body.light {
  background: #f8fafc;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ─── HEADER ─── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,18,.88);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.3);
}
body.light .header {
  background: rgba(255,255,255,.92);
  border-bottom-color: #e2e2ec;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}




.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: #c0c0c0;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.header-nav a:hover { color: #ffffff; background: rgba(255,255,255,0.06); }
.header-nav a.active { color: var(--primary-light); background: rgba(79,70,229,0.12); }
.header-nav a.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.header-nav a.disabled:hover { color: #c0c0c0; background: transparent; }
body.light .header-nav a { color: #555555; }
body.light .header-nav a:hover { color: #111111; background: rgba(0,0,0,0.05); }
body.light .header-nav a.active { color: var(--primary); background: rgba(79,70,229,0.08); }

.btn-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
body.light .btn-icon { border-color: #e0e0e0; background: #f4f4f4; }
.btn-icon:hover { border-color: var(--primary); background: rgba(79,70,229,0.1); }

/* ─── HAMBURGER BUTTON ─── */
.btn-menu {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
body.light .btn-menu { border-color: #e0e0e0; background: #f4f4f4; }
.btn-menu:hover { border-color: var(--primary); background: rgba(79,70,229,0.1); }

/* ─── MOBILE NAV DROPDOWN ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: rgba(14,14,18,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 98;
  padding: 10px 12px 14px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
body.light .mobile-nav {
  background: rgba(255,255,255,0.98);
  border-bottom-color: #e2e2ec;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

@media (max-width: 700px) {
  .header-nav { display: none; }
  .btn-menu { display: flex; }

  .mobile-nav {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #c0c0c0;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav a:hover { color: #ffffff; background: rgba(255,255,255,0.07); }
.mobile-nav a.active { color: var(--primary-light); background: rgba(79,70,229,0.12); }
.mobile-nav a.disabled { opacity: 0.4; pointer-events: none; cursor: default; }
body.light .mobile-nav a { color: #555; }
body.light .mobile-nav a:hover { color: #111; background: rgba(0,0,0,0.05); }
body.light .mobile-nav a.active { color: var(--primary); background: rgba(79,70,229,0.08); }
.mobile-nav .soon {
  font-size: 10px; font-weight: 600;
  background: rgba(79,70,229,0.18);
  color: var(--primary-light);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: auto;
}

/* ─── DESKTOP DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 200;
  padding: 6px 0;
  margin-top: 6px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 16px;
  font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: background 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(79,70,229,.08); color: var(--primary-light); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
body.light .dropdown-menu { background: #fff; border-color: #e2e2ec; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
body.light .dropdown-menu a { color: #555; }
body.light .dropdown-menu a:hover { background: rgba(79,70,229,.06); color: var(--primary); }

/* ─── PAGE WRAPPER ─── */
.page { max-width: 900px; margin: 0 auto; padding: 0 16px 60px; flex: 1; width: 100%; }

/* ─── LEGAL PAGE LAYOUT ─── */
.legal-page { max-width: 780px; margin: 0 auto; padding: 32px 16px 72px; flex: 1; width: 100%; }

/* ─── DESKTOP: WIDER CONTAINERS ─── */
@media (min-width: 1024px) {
  .page {
    max-width: 1300px;
    padding: 0 40px 80px;
  }
  .legal-page {
    max-width: 900px;
    padding: 40px 40px 80px;
  }
  .footer-inner {
    max-width: 1300px;
  }
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,92,255,.12);
  border: 1px solid rgba(108,92,255,.25);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.legal-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
body.light .legal-title {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.legal-meta {
  font-size: 13px;
  color: var(--text-3);
}
.legal-intro {
  background: rgba(108,92,255,0.08);
  border: 1px solid rgba(108,92,255,0.18);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 0 0 32px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
}
body.light .legal-intro {
  background: rgba(108,92,255,0.05);
  border-color: rgba(108,92,255,0.15);
  border-left-color: var(--primary);
}

/* ─── LEGAL CONTENT ─── */
.legal-content {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.3px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol {
  margin: 10px 0 18px 22px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--primary-light); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content .highlight-box {
  background: rgba(79,70,229,.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.legal-content .info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin: 24px 0;
}
.legal-content .info-card h3 { margin-top: 0; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-light); }

/* ─── CONTACT FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-3);
}
.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.btn-submit {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
  align-self: flex-start;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(79,70,229,.45); }
.btn-submit:active { transform: scale(.97); }
.form-note { font-size: 12px; color: var(--text-3); margin-top: -8px; }

/* ─── CONTACT INFO CARD ─── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}
.contact-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-info-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-info-icon { font-size: 24px; }
.contact-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); }
.contact-info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-info-value a { color: var(--primary-light); text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

/* ─── ABOUT PAGE – VALUES GRID ─── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.value-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.value-desc { font-size: 13px; color: var(--text-3); line-height: 1.65; }

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-3); margin-bottom: 16px;
}

/* ─── FOOTER ─── */
footer {
  background: #0b0b0f;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 0;
}
body.light footer { background: #ffffff; border-top-color: #e2e2ec; box-shadow: 0 -1px 0 rgba(0,0,0,.04); }

.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}


.footer-tagline { font-size: 13px; color: var(--text-3); line-height: 1.65; max-width: 240px; }
.footer-col-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-3); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  color: #888888; text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }
body.light .footer-links a:hover { color: var(--primary); }
.footer-links .sub { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; font-weight: 400; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0 24px;
  font-size: 12px; color: var(--text-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
body.light .footer-bottom { border-top-color: #e8e8e8; }
.footer-bottom a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-content h2 { font-size: 17px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

.header-brand, .footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.header-brand:hover, .footer-logo:hover { opacity: 0.85; }
.brand-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub {
  font-weight: 500;
  -webkit-text-fill-color: var(--text-3);
  color: var(--text-3);
}


/* GLOBAL LINK STYLES */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
    color: var(--primary);
    text-decoration: underline;
}

body.light a {
    color: var(--primary);
}
body.light a:hover {
    color: var(--primary-dark);
}

/* Exclude buttons, cards, logo, etc. from default link styling */
a.btn-primary, a.btn-primary:hover,
a.btn-ghost, a.btn-ghost:hover,
a.tool-card, a.tool-card:hover,
a.header-brand, a.header-brand:hover,
a.footer-logo, a.footer-logo:hover,
a.bottom-nav-item, a.bottom-nav-item:hover,
.header-nav a, .header-nav a:hover,
.mobile-nav a, .mobile-nav a:hover,
.toc-box a, .toc-box a:hover {
    text-decoration: none;
}

/* ─── UNIVERSAL BUTTON SYSTEM ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(108,92,255,0.30), 0 0 0 1px rgba(255,255,255,0.10) inset;
  color: #ffffff;
  text-decoration: none;
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  text-decoration: none;
}
body.light .btn-secondary {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}
body.light .btn-secondary:hover { background: #e8edf5; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--primary-light);
  background: rgba(108,92,255,0.1);
  color: var(--primary-light);
  transform: translateY(-2px);
  text-decoration: none;
}
body.light .btn-ghost {
  border-color: #cbd5e1;
  color: #0f172a;
}
body.light .btn-ghost:hover {
  border-color: var(--primary-dark);
  background: rgba(108,92,255,0.06);
  color: var(--primary-dark);
}

/* ─── GRADIENT TEXT UTILITY ─── */
.grad {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── UNIVERSAL CARD SYSTEM ─── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
body.light .card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ─── UNIVERSAL INPUT SYSTEM ─── */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
textarea,
select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  padding: 12px 16px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
body.light input[type="text"],
body.light input[type="number"],
body.light input[type="email"],
body.light input[type="date"],
body.light textarea,
body.light select {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}
body.light input::placeholder, body.light textarea::placeholder { color: #94a3b8; }

/* ─── ARTICLE CONTENT (shared across all tool pages) ─── */
.article-content,
.seo-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}
.article-content h2,
.seo-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
  letter-spacing: -0.3px;
}
.article-content h2:first-child,
.seo-content h2:first-child { margin-top: 0; }
.article-content h3,
.seo-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
}
.article-content p,
.seo-content p { margin-bottom: 14px; }
.article-content ul,
.article-content ol,
.seo-content ul,
.seo-content ol { margin: 8px 0 14px 20px; }
.article-content li,
.seo-content li { margin-bottom: 8px; }
.article-content strong,
.seo-content strong { color: var(--text); }
.article-content a,
.seo-content a { color: var(--primary-light); text-decoration: none; }
.article-content a:hover,
.seo-content a:hover { text-decoration: underline; }

/* ─── TRUST BADGES ─── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.trust-badge:hover {
  border-color: rgba(108,92,255,0.4);
  background: rgba(108,92,255,0.08);
  color: var(--text);
}
body.light .trust-badge {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: #475569;
}
body.light .trust-badge:hover {
  border-color: rgba(108,92,255,0.3);
  background: rgba(108,92,255,0.06);
  color: #0f172a;
}
