/* TookAndCook Legal Pages Styles */

:root {
  --primary: #48BB78;
  --background: #FAFAFA;
  --card-bg: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #4a4a4a;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  background: var(--card-bg);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Legal Content */
.legal-container {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px;
}

.legal-content {
  background: var(--card-bg);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.back-link {
  margin-top: 48px;
  text-align: center;
}

.back-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Intro & Meta */
.legal-content .intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

/* Lists */
.legal-content ul,
.legal-content ol {
  margin: 16px 0;
  padding-left: 0;
  margin-left: 24px;
  list-style-position: outside;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  padding-left: 8px;
}

.legal-content ul li strong,
.legal-content ol li strong {
  color: var(--text-primary);
}

/* Links */
.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: table;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  word-wrap: break-word;
}

.data-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.data-table tbody tr:hover {
  background: #f3f4f6;
}

/* Responsive Tables */
@media (max-width: 600px) {
  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* Info Box */
.info-box {
  background: #f3f4f6;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.info-box p {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Highlight Boxes */
.highlight-box {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.highlight-box p {
  margin-bottom: 8px;
  color: #92400e;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box.important {
  background: #fee2e2;
  border-color: #ef4444;
}

.highlight-box.important p {
  color: #991b1b;
}

.highlight-box.positive {
  background: #d1fae5;
  border-color: var(--primary);
}

.highlight-box.positive p {
  color: #065f46;
}

/* Rights Grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.right-item {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.right-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.right-item p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 32px 24px;
  }
  
  .legal-content h1 {
    font-size: 24px;
  }
  
  .legal-content h2 {
    font-size: 20px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
  
  .rights-grid {
    grid-template-columns: 1fr;
  }
}

