/* File: pages/terms.css
  Project: MCP Link Toolchain
  Component: Browser Extension  
  Author: Christopher Nathan Drake (cnd)
  Created: 2025-07-26
  Last Modified: 2025-07-26 by cnd
  SPDX-License-Identifier: Proprietary
  Copyright: © 2025 Christopher Nathan Drake. All rights reserved.
  Purpose: GitHub-like styling for legal document viewer
  ChangeLog:
    0.1.0: Initial version
    0.2.0: Added active states and error styling
  MODULE_VERSION: 0.2.0
  "signature": "mΕѵȜƴ7ⲢⅮꓦрwTĐɡ𝟛NÐ𝟣ƌǝyԝƊꓰƍƨwМ𝙰ꓝΥcҮƏųҮjƻƍᴍҳɗАЗꓗƦɌTᴅƊⲘꜱȷɗiRΥXʈƵƛþRᗷһ𝙰ꓣWƿhɗҮɅıoВ𝟢V8zᴡꜱ𝛢58𝟤𝟛BɌƬР𐐕R𝟦ĵВȷеƽⲢ8ⅠƘΗꓠꓔᏎµT"
  "signdate": "2025-10-10T03:47:23.763Z"
*/

* {
  box-sizing: border-box;
}

body { 
  margin: 0; 
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2328;
  background-color: #ffffff;
}

.container { 
  max-width: 1350px; 
  margin: 0 auto; 
  padding: 32px; 
}

nav {
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid #d1d9e0;
}

nav a { 
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 8px;
  padding: 8px 12px;
  color: #0969da;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

nav a:hover {
  background-color: #f6f8fa;
  border-color: #d1d9e0;
  text-decoration: none;
}

nav a:focus {
  outline: 2px solid #0969da;
  outline-offset: 2px;
}

/* Active navigation link styling */
nav a.active {
  background-color: #0969da;
  color: #ffffff;
  border-color: #0969da;
}

nav a.active:hover {
  background-color: #0860ca;
  border-color: #0860ca;
}

#md-root {
  min-height: 400px;
}

/* Loading state */
.loading {
  color: #656d76;
  font-style: italic;
  padding: 32px;
  text-align: center;
}

/* Error state */
.error {
  color: #d1242f;
  background-color: #ffebe9;
  padding: 16px;
  border: 1px solid #fd8c73;
  border-radius: 6px;
  margin: 16px 0;
}

.error p {
  margin: 0;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 { 
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2328;
}

h1 {
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d9e0;
}

h2 {
  font-size: 1.5em;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d9e0;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1em;
}

h5 {
  font-size: 0.875em;
}

h6 {
  font-size: 0.85em;
  color: #656d76;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 2em;
}

li {
  margin-bottom: 0;
}

li > p {
  margin-top: 0;
  margin-bottom: 0;
}

li + li {
  margin-top: 0;
}

blockquote { 
  margin: 0 0 16px 0; 
  padding: 0 1em; 
  color: #656d76; 
  border-left: 0.25em solid #d1d9e0;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

pre { 
  padding: 16px; 
  margin-bottom: 16px;
  overflow: auto; 
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa; 
  border-radius: 6px;
}

code { 
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  white-space: break-spaces;
  background-color: rgba(175,184,193,0.2);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

pre code {
  padding: 0;
  margin: 0;
  font-size: 100%;
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #0969da;
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

del {
  text-decoration: line-through;
}

hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #d1d9e0;
  border: 0;
}

img { 
  max-width: 100%; 
  height: auto;
  border-radius: 6px;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 16px;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}

table th,
table td {
  padding: 6px 13px;
  border: 1px solid #d1d9e0;
}

table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

table tr {
  background-color: #ffffff;
  border-top: 1px solid #d1d9e0;
}

table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  nav a {
    margin-right: 8px;
    padding: 6px 8px;
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75em;
  }
  
  h2 {
    font-size: 1.375em;
  }
  
  h3 {
    font-size: 1.125em;
  }
}

/* Print styles */
@media print {
  nav {
    display: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  a {
    color: #000000;
    text-decoration: underline;
  }
  
  pre {
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
  }
}

/* GitHub Alert Styles (matching GitHub.com exactly) */
/* ============================================================================ */

.markdown-alert {
  padding: 16px;
  margin: 16px 0;
  border: 1px solid;
  border-radius: 6px;
  border-left-width: 4px;
}

.markdown-alert-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin: 0 0 16px 0;
  font-size: 14px;
}

.markdown-alert-title svg {
  margin-right: 8px;
  fill: currentColor;
  flex-shrink: 0;
}

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

.markdown-alert h1,
.markdown-alert h2,
.markdown-alert h3,
.markdown-alert h4,
.markdown-alert h5,
.markdown-alert h6 {
  margin-top: 0;
}

/* Fix spacing for consecutive lists in alerts */
.markdown-alert ul + ul,
.markdown-alert ol + ol {
  margin-top: -16px;
}

/* Fix spacing for consecutive paragraphs in alerts */
.markdown-alert p + p {
  margin-top: -8px;
}

/* Note Alert */
.markdown-alert-note {
  border-color: #3b82f6;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.markdown-alert-note .markdown-alert-title {
  color: #1e40af;
}

/* Important Alert */
.markdown-alert-important {
  border-color: #8b5cf6;
  border-left-color: #8b5cf6;
}

.markdown-alert-important .markdown-alert-title {
  color: #6b21a8;
}

/* Warning Alert */
.markdown-alert-warning {
  border-color: #f59e0b;
  border-left-color: #f59e0b;
  color: #92400e;
}

.markdown-alert-warning .markdown-alert-title {
  color: #92400e;
}

/* Tip Alert */
.markdown-alert-tip {
  border-color: #10b981;
  border-left-color: #10b981;
  color: #065f46;
}

.markdown-alert-tip .markdown-alert-title {
  color: #065f46;
}

/* Caution Alert */
.markdown-alert-caution {
  border-color: #ef4444;
  border-left-color: #ef4444;
  color: #b91c1c;
}

.markdown-alert-caution .markdown-alert-title {
  color: #b91c1c;
}

/* EULA Acceptance System Styles */
/* ============================================================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#eula-floating-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  max-width: 90vw;
  animation: slideDown 0.3s ease-out;
}

#eula-acceptance-ui {
  margin-top: 40px;
}

.eula-acceptance-container {
  padding: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.eula-acceptance-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.eula-acceptance-description {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.9;
}

.eula-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eula-acceptance-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #4CAF50;
}

.eula-checkbox-label {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.eula-button-container {
  text-align: center;
}

.eula-accept-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eula-accept-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eula-accept-button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.eula-accept-button:not(:disabled):hover {
  background: #45a049;
  transform: translateY(-1px);
}

.eula-uninstall-note {
  margin: 16px 0 0 0;
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
}

#eula-already-accepted-ui {
  margin-top: 40px;
}

.eula-already-accepted-container {
  padding: 24px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
}

.eula-already-accepted-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
}

.eula-already-accepted-date {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Responsive adjustments for EULA components */
@media (max-width: 768px) {
  #eula-floating-banner {
    top: 10px;
    padding: 10px 16px;
    font-size: 12px;
    max-width: 95vw;
  }
  
  .eula-acceptance-container,
  .eula-already-accepted-container {
    padding: 16px;
    margin: 20px 0;
  }
  
  .eula-acceptance-title,
  .eula-already-accepted-title {
    font-size: 16px;
  }
  
  .eula-checkbox-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .eula-accept-button {
    padding: 10px 24px;
    font-size: 13px;
  }
}