/* ============================================
   CarLog Website — Shared Base Styles
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Legal Pages (Privacy & Terms) — Shared
   ============================================ */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-header .last-updated {
  font-size: 0.9rem;
  opacity: 0.7;
}

.legal-header .app-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.legal-header .app-name img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.legal-content {
  flex: 1;
  padding: 48px 0;
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8f0;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d2d44;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: #444;
  line-height: 1.65;
}

.legal-content ul li strong {
  color: #1a1a2e;
}

.legal-content a {
  color: #4361ee;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #3a56d4;
}

.legal-content .highlight-box {
  background: #f0f4ff;
  border-left: 4px solid #4361ee;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.legal-content .highlight-box p {
  margin-bottom: 0;
  color: #2d2d44;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.legal-content table th,
.legal-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e8f0;
}

.legal-content table th {
  background: #f8f9fc;
  font-weight: 600;
  color: #1a1a2e;
}

.legal-content table td {
  color: #444;
}

/* Legal Footer */
.legal-footer {
  background: #f8f9fc;
  border-top: 1px solid #e8e8f0;
  padding: 32px 0;
  text-align: center;
}

.legal-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legal-footer .footer-links a {
  color: #4361ee;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.legal-footer .company-info {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

.legal-footer .company-info a {
  color: #4361ee;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 1.6rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  .legal-content {
    padding: 32px 0;
  }

  .legal-footer .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
