/* ── Explain Legal shared design system ── */

/* ── TOKENS ── */
:root {
  --bg: #0B0B0A;
  --bg2: #141412;
  --bg3: #1B1B18;
  --border: #242421;
  --text: #F5F5F0;
  --muted: #8C8C84;
  --accent: #FF4D00;
  --red: #E5484D;
  --green: #52c97a;
  --blue: #5b8dee;
  --orange: #f0a500;
}

/* ── RESET / BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── KEYFRAMES ── */
@keyframes up   { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes dotpulse { 0%,60%,100%{opacity:0.2;transform:scale(0.8)} 30%{opacity:1;transform:scale(1)} }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,11,10,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

/* ── TOOLS DROPDOWN ── */
.tools-dropdown { position: relative; }
.tools-dropdown summary {
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s;
  user-select: none;
}
.tools-dropdown summary::-webkit-details-marker { display: none; }
.tools-dropdown summary:hover { color: var(--text); }
.tools-dropdown[open] summary { color: var(--text); }
.tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.tools-menu a {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 7px;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tools-menu a:hover { color: var(--text); background: var(--bg3); }
.tool-name { font-weight: 700; color: var(--text); }
.tool-sub { font-size: 12px; color: #767670; }

/* ── FOOTER ── */
footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #767670;
  margin-top: 80px;
}
footer a { color: #8C8C84; text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--text); }

@media (max-width: 700px) {
  nav { padding: 14px 20px; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
}
