/* CE Ledger - Legal Pages Stylesheet */
/* Minimal, professional, compliance-focused styling */

:root {
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-heading: #111827;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-bg-header: #f8fafc;
  --color-border: #e5e7eb;
  --color-brand: #0d9488;
  --color-brand-hover: #0f766e;
  --color-brand-light: #ccfbf1;
  --color-link: #0d9488;
  --color-link-hover: #0f766e;
  --max-width: 800px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Header */
.header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-header);
  background-image: linear-gradient(180deg, rgba(13, 148, 136, 0.03) 0%, transparent 100%);
}

.header .logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.header .tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Main Content */
main {
  padding: 2.5rem 0;
}

/* Section Headings */
h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-brand-light);
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

li {
  margin-bottom: 0.5rem;
}

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

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.disclaimer-box p {
  margin-bottom: 0.75rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* About Section */
.about-section {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.about-section p {
  margin-bottom: 0.75rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Legal Links */
.legal-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.legal-links a {
  font-weight: 500;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer .operator {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Page Title for Legal Docs */
.page-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
}

.last-updated {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .header {
    padding: 2rem 1rem 1.5rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .legal-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  h2 {
    font-size: 1.125rem;
  }
}

/* Print Styles */
@media print {
  .header, .footer {
    background-color: transparent;
  }

  .back-link {
    display: none;
  }

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

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.875rem;
    color: var(--color-text-muted);
  }
}

