/* MIRA Scan Legal Pages - EvalUY */
:root {
  --primary: #135bec;
  --primary-dark: #0d47a1;
  --bg-dark: #101622;
  --bg-card: #1c2333;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #fbbf24;
  --border: #334155;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f2e 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.logo-accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 16px;
  color: var(--text-primary);
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

nav a:hover {
  background: rgba(19, 91, 236, 0.15);
}

nav a.active {
  background: var(--primary);
  color: white;
}

/* Content Sections */
section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

section h2::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

section ul {
  list-style: none;
  margin: 12px 0;
}

section ul li {
  color: var(--text-secondary);
  padding: 8px 0 8px 24px;
  position: relative;
}

section ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 8px;
}

/* Highlight box */
.highlight {
  background: rgba(19, 91, 236, 0.1);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.highlight p {
  color: var(--text-primary);
  margin: 0;
}

/* Contact info */
.contact-box {
  background: linear-gradient(
    135deg,
    rgba(19, 91, 236, 0.15) 0%,
    rgba(96, 165, 250, 0.1) 100%
  );
  border: 1px solid rgba(19, 91, 236, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* Forms */
form {
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin: 14px 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(16, 22, 34, 0.35);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(19, 91, 236, 0.9);
  box-shadow: 0 0 0 4px rgba(19, 91, 236, 0.18);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-item input {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

button {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, opacity 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

button:active {
  transform: translateY(1px);
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(16, 22, 34, 0.25);
  color: var(--text-secondary);
}

.status.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.status.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.contact-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(19, 91, 236, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 24px 16px 40px;
  }

  .logo {
    font-size: 2rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  section {
    padding: 20px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}
