/* FormChase Legal Pages - Shared Styles */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --max-width: 800px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Disclaimer box */
.disclaimer {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.disclaimer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #92400e;
}

/* Contact box */
.contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.contact-box p {
  margin: 0.25rem 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

footer nav {
  margin-top: 1rem;
}

footer nav a {
  margin: 0 0.75rem;
  color: var(--text-light);
}

footer nav a:hover {
  color: var(--primary);
}

/* Mobile responsive */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem;
  }
}

/* Print styles */
@media print {
  header, .lang-switch {
    display: none;
  }

  .container {
    max-width: 100%;
  }
}
