/* Legal Pages Styles */

/* Legal Content Layout */
.legal-content {
  padding: 4rem 0;
  background: white;
}

.legal-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.legal-toc {
  background: var(--light-cream);
  padding: 2rem;
  border-radius: 12px;
  position: sticky;
  top: 2rem;
  border: 1px solid #e8e5d9;
}

.legal-toc h3 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--rust-orange);
  padding-bottom: 0.5rem;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 0.75rem;
}

.legal-toc a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  padding: 0.5rem 0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.legal-toc a:hover {
  color: var(--rust-orange);
  background: rgba(139, 69, 19, 0.05);
  padding-left: 0.5rem;
}

/* Main Legal Content */
.legal-main {
  background: white;
  padding: 0;
}

.legal-meta {
  background: var(--light-cream);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--rust-orange);
}

.legal-meta p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-meta strong {
  color: var(--dark-brown);
}

/* Legal Sections */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--rust-orange);
  scroll-margin-top: 100px;
}

.legal-section h3 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 2rem 0 1rem 0;
}

.legal-section h4 {
  color: var(--dark-brown);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: 600;
}

.legal-section p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--rust-orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-section a:hover {
  border-bottom-color: var(--rust-orange);
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(
    135deg,
    var(--eucalyptus-green),
    var(--warm-orange)
  );
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-box h4 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.highlight-box p {
  color: white;
  margin: 0;
  opacity: 0.95;
}

.highlight-box ul {
  margin: 1rem 0 0 0;
}

.highlight-box li {
  color: white;
  opacity: 0.95;
}

/* Contact Info Boxes */
.contact-info {
  background: var(--light-cream);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e5d9;
  margin: 1.5rem 0;
}

.contact-info h4 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.contact-info p {
  margin: 0;
  line-height: 1.6;
}

.contact-info strong {
  color: var(--dark-brown);
  display: inline-block;
  min-width: 60px;
}

/* Cookie-specific Styles */
.cookie-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cookie-type {
  background: var(--light-cream);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e8e5d9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookie-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cookie-type h4 {
  color: var(--dark-brown);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cookie-type i {
  color: var(--rust-orange);
  font-size: 1.2rem;
}

.cookie-type p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

/* Cookie Tables */
.cookie-table {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 600px;
}

.cookie-table th {
  background: var(--dark-brown);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-color);
  font-size: 0.9rem;
}

.cookie-table tr:nth-child(even) {
  background: #fafafa;
}

.cookie-table tr:hover {
  background: var(--light-cream);
}

/* Third-party Services */
.third-party-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service {
  background: var(--light-cream);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e8e5d9;
}

.service h4 {
  color: var(--dark-brown);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--rust-orange);
  padding-bottom: 0.5rem;
}

.service ul {
  margin: 0;
  padding-left: 1rem;
}

.service li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Cookie Controls */
.cookie-controls {
  text-align: center;
  margin: 2rem 0;
}

.cookie-controls .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
}

/* Browser Guides */
.browser-guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.browser-guide {
  background: var(--light-cream);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e8e5d9;
  text-align: center;
}

.browser-guide h4 {
  color: var(--dark-brown);
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.browser-guide i {
  color: var(--rust-orange);
  font-size: 1.2rem;
}

.browser-guide p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.85rem;
  font-family: monospace;
}

/* Legal Footer */
.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rust-orange);
  text-align: center;
}

.legal-footer p {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .legal-container {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }

  .legal-toc {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
    order: 2;
    margin-top: 2rem;
  }

  .legal-main {
    order: 1;
  }

  .legal-section h2 {
    font-size: 1.6rem;
  }

  .cookie-types {
    grid-template-columns: 1fr;
  }

  .third-party-services {
    grid-template-columns: 1fr;
  }

  .browser-guides {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 2rem 0;
  }

  .legal-toc,
  .contact-info,
  .cookie-type,
  .service,
  .browser-guide {
    padding: 1rem;
  }

  .legal-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .legal-section h3 {
    font-size: 1.1rem;
  }

  .browser-guides {
    grid-template-columns: 1fr;
  }

  .cookie-table {
    font-size: 0.8rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .legal-toc {
    display: none;
  }

  .legal-container {
    grid-template-columns: 1fr;
  }

  .legal-section {
    break-inside: avoid;
  }

  .legal-section h2 {
    break-after: avoid;
  }

  .highlight-box {
    background: #f0f0f0 !important;
    color: black !important;
    box-shadow: none;
  }

  .contact-info,
  .cookie-type,
  .service {
    background: #f8f8f8 !important;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
