/* ============================================================
   Madelaide — Legal Site
   Identidade visual unificada com o app mobile
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-card: #FAFAFA;
  --bg-highlight: #F5F3FF;
  --border: #E5E7EB;
  --border-highlight: #D8B4FE;
  --text-primary: #1A1A2E;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-link: #7C3AED;
  --accent: #7C3AED;
  --accent-light: #F5F3FF;
  --accent-dark: #5B21B6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-card: #1C1C1E;
    --bg-highlight: #2D1F5E;
    --border: #2C2C2E;
    --border-highlight: rgba(167, 139, 250, 0.4);
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-link: #A78BFA;
    --accent: #A78BFA;
    --accent-light: rgba(167, 139, 250, 0.13);
    --accent-dark: #DDD6FE;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ─── Header ─── */
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}

.brand:hover { opacity: 0.85; }

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.lang-switcher a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.lang-switcher a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
}

.lang-switcher .sep {
  color: var(--border);
}

/* ─── Hero ─── */
.hero {
  margin: 40px 0 48px;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.version {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ─── Sections ─── */
section.section {
  margin: 40px 0;
}

section.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

section.section .icon {
  font-size: 22px;
  flex-shrink: 0;
}

section.section .body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.highlight {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-highlight);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent-dark);
}

/* ─── Footer ─── */
footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-message {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
}

.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ─── Mobile ─── */
@media (max-width: 600px) {
  .container { padding: 32px 20px 64px; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 16px; }
  .intro { font-size: 16px; padding: 20px; }
  section.section h2 { font-size: 21px; }
  section.section .body { font-size: 15px; }
}
