/* Legal Pages Stylesheet
   Dark theme matching the main World Cup 2026 Planner site
   Used for: Privacy Policy, Terms of Service, About, Contact pages
*/

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Main container */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.legal-header {
  padding: 20px 0 30px;
  border-bottom: 1px solid #333;
  margin-bottom: 40px;
}

.legal-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.legal-header .site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-header .site-title:hover {
  color: #4ecdc4;
}

.legal-header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-header nav a {
  color: #4ecdc4;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.legal-header nav a:hover {
  color: #6ee7df;
  text-decoration: underline;
}

/* Main content area */
.legal-content {
  flex: 1;
  padding-bottom: 40px;
}

/* Page title */
.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Last updated date */
.last-updated {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 35px;
  font-style: italic;
}

/* Section headings */
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ddd;
  margin-top: 25px;
  margin-bottom: 12px;
}

/* Paragraphs */
.legal-content p {
  margin-bottom: 16px;
  color: #e0e0e0;
}

/* Links */
.legal-content a {
  color: #4ecdc4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: #6ee7df;
  text-decoration: underline;
}

/* Lists */
.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #e0e0e0;
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

/* Nested lists */
.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Emphasis and strong */
.legal-content strong {
  color: #fff;
  font-weight: 600;
}

.legal-content em {
  font-style: italic;
  color: #ccc;
}

/* Block quotes (for important notices) */
.legal-content blockquote {
  border-left: 3px solid #4ecdc4;
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #141414;
  border-radius: 0 4px 4px 0;
}

.legal-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Contact info boxes */
.contact-box {
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.contact-box p {
  margin-bottom: 8px;
}

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

/* Footer */
.legal-footer {
  padding: 25px 0;
  border-top: 1px solid #333;
  margin-top: auto;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.legal-footer .copyright {
  font-size: 0.9rem;
  color: #888;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer nav a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.legal-footer nav a:hover {
  color: #4ecdc4;
}

/* Divider */
.legal-divider {
  height: 1px;
  background-color: #333;
  margin: 30px 0;
}

/* Back to top link */
.back-to-top {
  display: inline-block;
  margin-top: 30px;
  color: #4ecdc4;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #6ee7df;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .legal-container {
    padding: 15px;
  }

  .legal-header {
    padding: 15px 0 20px;
    margin-bottom: 30px;
  }

  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header nav {
    gap: 15px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
    margin-top: 30px;
  }

  .legal-content h3 {
    font-size: 1.1rem;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-footer nav {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 12px;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  .legal-header nav,
  .legal-footer nav {
    gap: 12px;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: 20px;
  }
}

/* =============================================================================
   ABOUT PAGE - Feature Cards
   ============================================================================= */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 20px;
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
  border-color: #4ecdc4;
  transform: translateX(4px);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  line-height: 1.2;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  font-size: 1rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

/* =============================================================================
   ABOUT PAGE - Tournament Info Cards
   ============================================================================= */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.info-card {
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.info-card:hover {
  border-color: #4ecdc4;
}

.info-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
  line-height: 1;
}

.info-card-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================================================
   ABOUT PAGE - Host Countries
   ============================================================================= */

.host-countries {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
  padding: 20px 0;
}

.host-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.host-flag {
  font-size: 4rem;
  line-height: 1;
}

.host-name {
  font-size: 0.95rem;
  color: #888;
  font-weight: 500;
}

/* =============================================================================
   ABOUT PAGE - Disclaimer Box
   ============================================================================= */

.disclaimer-box {
  background-color: #141414;
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.disclaimer-box p {
  margin: 0;
  color: #ccc;
}

.disclaimer-box strong {
  color: #f59e0b;
}

/* =============================================================================
   ABOUT PAGE - Navigation Buttons
   ============================================================================= */

.nav-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background-color: #4ecdc4;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-button:hover {
  background-color: #6ee7df;
  transform: translateY(-2px);
  text-decoration: none;
  color: #0a0a0a;
}

.nav-button.secondary {
  background-color: #333;
  color: #fff;
}

.nav-button.secondary:hover {
  background-color: #444;
  color: #fff;
}

/* =============================================================================
   ABOUT PAGE - Section Intro
   ============================================================================= */

.section-intro {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* =============================================================================
   ABOUT PAGE - Hero Section
   ============================================================================= */

.hero-section {
  text-align: center;
  padding: 40px 0 30px;
  border-bottom: 1px solid #333;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   ABOUT PAGE - Credits Section
   ============================================================================= */

.credits-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.credits-list li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
  color: #ccc;
}

.credits-list li:last-child {
  border-bottom: none;
}

/* =============================================================================
   Responsive Adjustments for About Page
   ============================================================================= */

@media (max-width: 768px) {
  .feature-item {
    padding: 14px 16px;
  }

  .feature-icon {
    font-size: 1.3rem;
    width: 28px;
  }

  .info-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .info-card {
    padding: 18px 14px;
  }

  .info-card-value {
    font-size: 2rem;
  }

  .host-countries {
    gap: 25px;
  }

  .host-flag {
    font-size: 3rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .nav-button {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }

  .info-card-value {
    font-size: 1.75rem;
  }

  .host-flag {
    font-size: 2.5rem;
  }

  .hero-section h1 {
    font-size: 1.7rem;
  }
}

/* Print styles */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  .legal-container {
    max-width: 100%;
  }

  .legal-header nav,
  .legal-footer,
  .back-to-top {
    display: none;
  }

  .legal-content a {
    color: #000;
    text-decoration: underline;
  }

  .legal-content h1,
  .legal-content h2,
  .legal-content h3,
  .legal-content strong {
    color: #000;
  }

  .feature-item,
  .info-card,
  .disclaimer-box {
    border-color: #ccc;
    background-color: #f9f9f9;
  }

  .info-card-value {
    color: #333;
  }
}
