/*
 * legal.css — Legal document page styles
 * Extracted from legal_document.html inline <style> block.
 */

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: #1a1a1a;
      background-color: #ffffff;
      line-height: 1.7;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    /* Header Bar */
    .legal-header {
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      padding: 16px 24px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .legal-header-inner {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .legal-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      gap: 12px;
    }
    
    .legal-logo img {
      height: 28px;
      filter: brightness(0) invert(1);
    }
    
    .legal-logo-text {
      color: #ffffff;
      font-weight: 600;
      font-size: 18px;
      letter-spacing: -0.02em;
    }
    
    .legal-back-link {
      color: #94a3b8;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s ease;
    }
    
    .legal-back-link:hover {
      color: #5DBEA3;
    }
    
    .legal-back-link svg {
      width: 16px;
      height: 16px;
    }
    
    /* Main Content */
    .legal-main {
      flex: 1;
      padding: 60px 24px 80px;
    }
    
    .legal-content {
      max-width: 700px;
      margin: 0 auto;
    }
    
    /* Document Header */
    .legal-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 16px;
      letter-spacing: -0.03em;
      line-height: 1.2;
    }
    
    .legal-meta {
      color: #64748b;
      font-size: 14px;
      margin-bottom: 48px;
      padding-bottom: 24px;
      border-bottom: 1px solid #e2e8f0;
    }
    
    .legal-meta time {
      font-weight: 500;
    }
    
    /* Document Body Styles */
    .legal-body {
      color: #334155;
      font-size: 16px;
      line-height: 1.8;
    }
    
    .legal-body h1 {
      font-size: 1.875rem;
      font-weight: 700;
      color: #0f172a;
      margin-top: 48px;
      margin-bottom: 20px;
      letter-spacing: -0.02em;
    }
    
    .legal-body h2 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #0f172a;
      margin-top: 40px;
      margin-bottom: 16px;
      letter-spacing: -0.01em;
    }
    
    .legal-body h3 {
      font-size: 1.25rem;
      font-weight: 600;
      color: #1e293b;
      margin-top: 32px;
      margin-bottom: 12px;
    }
    
    .legal-body h4 {
      font-size: 1.125rem;
      font-weight: 600;
      color: #1e293b;
      margin-top: 24px;
      margin-bottom: 10px;
    }
    
    .legal-body p {
      margin-bottom: 20px;
    }
    
    .legal-body a {
      color: #2563eb;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s ease;
    }
    
    .legal-body a:hover {
      border-bottom-color: #2563eb;
    }
    
    .legal-body ul,
    .legal-body ol {
      margin-bottom: 20px;
      padding-left: 24px;
    }
    
    .legal-body li {
      margin-bottom: 10px;
      padding-left: 8px;
    }
    
    .legal-body ul li::marker {
      color: #5DBEA3;
    }
    
    .legal-body ol li::marker {
      color: #5DBEA3;
      font-weight: 600;
    }
    
    .legal-body strong {
      font-weight: 600;
      color: #0f172a;
    }
    
    .legal-body em {
      font-style: italic;
    }
    
    .legal-body blockquote {
      margin: 24px 0;
      padding: 16px 24px;
      border-left: 4px solid #5DBEA3;
      background: #f8fafc;
      border-radius: 0 8px 8px 0;
      color: #475569;
    }
    
    .legal-body blockquote p:last-child {
      margin-bottom: 0;
    }
    
    .legal-body table {
      width: 100%;
      margin: 24px 0;
      border-collapse: collapse;
      font-size: 15px;
    }
    
    .legal-body th,
    .legal-body td {
      padding: 12px 16px;
      text-align: left;
      border: 1px solid #e2e8f0;
    }
    
    .legal-body th {
      background: #f8fafc;
      font-weight: 600;
      color: #0f172a;
    }
    
    .legal-body tr:nth-child(even) td {
      background: #fafafa;
    }
    
    .legal-body hr {
      border: none;
      height: 1px;
      background: #e2e8f0;
      margin: 40px 0;
    }
    
    .legal-body code {
      font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
      font-size: 14px;
      background: #f1f5f9;
      padding: 2px 6px;
      border-radius: 4px;
      color: #0f172a;
    }
    
    .legal-body pre {
      background: #0f172a;
      color: #e2e8f0;
      padding: 20px;
      border-radius: 8px;
      overflow-x: auto;
      margin: 24px 0;
    }
    
    .legal-body pre code {
      background: none;
      padding: 0;
      color: inherit;
    }
    
    /* Footer */
    .legal-footer {
      background: #f8fafc;
      border-top: 1px solid #e2e8f0;
      padding: 32px 24px;
      text-align: center;
    }
    
    .legal-footer-inner {
      max-width: 700px;
      margin: 0 auto;
    }
    
    .legal-footer p {
      color: #64748b;
      font-size: 14px;
      margin: 0;
    }
    
    .legal-footer a {
      color: #5DBEA3;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s ease;
    }
    
    .legal-footer a:hover {
      color: #3da384;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .legal-header {
        padding: 14px 20px;
      }
      
      .legal-logo img {
        height: 24px;
      }
      
      .legal-logo-text {
        display: none;
      }
      
      .legal-main {
        padding: 40px 20px 60px;
      }
      
      .legal-title {
        font-size: 2rem;
      }
      
      .legal-meta {
        margin-bottom: 32px;
        padding-bottom: 20px;
      }
      
      .legal-body {
        font-size: 15px;
      }
      
      .legal-body h1 {
        font-size: 1.5rem;
        margin-top: 36px;
      }
      
      .legal-body h2 {
        font-size: 1.25rem;
        margin-top: 32px;
      }
      
      .legal-body h3 {
        font-size: 1.125rem;
        margin-top: 24px;
      }
      
      .legal-body ul,
      .legal-body ol {
        padding-left: 20px;
      }
    }
    
    @media (max-width: 480px) {
      .legal-header {
        padding: 12px 16px;
      }
      
      .legal-back-link span {
        display: none;
      }
      
      .legal-main {
        padding: 32px 16px 48px;
      }
      
      .legal-title {
        font-size: 1.75rem;
      }
      
      .legal-body {
        font-size: 15px;
        line-height: 1.75;
      }
      
      .legal-body blockquote {
        padding: 12px 16px;
        margin: 20px 0;
      }
      
      .legal-body table {
        font-size: 13px;
      }
      
      .legal-body th,
      .legal-body td {
        padding: 10px 12px;
      }
      
      .legal-footer {
        padding: 24px 16px;
      }
    }
    
    /* Print styles */
    @media print {
      .legal-header,
      .legal-footer,
      .legal-back-link {
        display: none;
      }
      
      .legal-main {
        padding: 0;
      }
      
      .legal-content {
        max-width: none;
      }
      
      .legal-body a {
        color: inherit;
        text-decoration: underline;
      }
      
      .legal-body a::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
      }
    }
