/*
  Legal pages styles for Cluck & Care.
  This CSS defines the layout and look for the Privacy Policy, Terms of Service
  and Thank You pages. It harmonizes with the overall site aesthetic while
  maintaining readability for long-form legal content.
*/

:root {
  /* Egg Road colour palette */
  --primary: #f45745;
  --dark: #171717;
  --light: #212121;
  --text-dark: #dddddd;
  --text-light: #ffffff;
  --card-bg: #2a2a2a;
  --card-shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--dark)!important;
}

a {
  color: inherit;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  background-color: var(--dark);
}
.navbar {
  background-color: var(--dark);
  gap: 40px;
}
.menu-wrap {
  gap: 40px;
}
.section {
  padding: 40px 0;
  background-color: var(--dark);
}

/* Hero / Banner */
.legal-hero {
  position: relative;
  height: 60vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  color: var(--text-light);
  text-align: center;
}
.legal-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}
.legal-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal-hero h1 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}
.legal-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* General section styling */
.legal-section {
  padding: 60px 0;
}
.legal-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}
.legal-section .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}
.legal-section .content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 24px;
  color: var(--primary);
}
.legal-section .content p {
  margin-bottom: 20px;
}
.legal-section .content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}
.legal-section .content ul li {
  margin-bottom: 10px;
  list-style-type: disc;
}

/* Contact cards section for legal pages */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}
.contact-card {
  flex: 1 1 260px;
  background-color: var(--dark);
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px var(--card-shadow);
}
.contact-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 16px;
  line-height: 1.4;
}
.contact-card a {
  color: var(--primary);
  text-decoration: underline;
}

/* Thank you page styling */
.thank-you-message {
  text-align: center;
  padding: 80px 20px;
}
.thank-you-message h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary);
}
.thank-you-message p {
  font-size: 18px;
  margin-bottom: 30px;
}
.thank-you-message a {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 20px;
  transition: opacity 0.3s;
}
.thank-you-message a:hover {
  opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* Egg Road legal pages custom styles */

/* Hero banner for privacy, terms and thank‑you pages */
.legal-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.legal-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.legal-hero .hero-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
}
.legal-hero .hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Legal content sections */
/*
 * Legal section styling for Egg Road
 * Use a consistent dark background and light text to match the rest
 * of the site. Headings retain the primary colour.
 */
.legal-section {
  padding: 80px 20px;
  background-color: var(--dark);
  color: var(--text-light);
}
/* Override alternating backgrounds – all sections use the same dark shade */
.legal-section:nth-of-type(even) {
  background-color: var(--dark);
}
.legal-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--primary);
  text-align: center;
}
.legal-section .content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
}
.legal-section .content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  color: var(--primary);
}
.legal-section .content p {
  margin-bottom: 20px;
}
.legal-section .content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}
.legal-section .content ul li {
  margin-bottom: 10px;
}

/* Thank you page message specific styling */
.thank-you-message {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.thank-you-message h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}
.thank-you-message p {
  font-size: 20px;
  margin-bottom: 30px;
}
.thank-you-message a {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: 24px;
  font-weight: 500;
  transition: opacity 0.3s;
}
.thank-you-message a:hover {
  opacity: 0.85;
}

/* Contact cards for legal pages (if used) */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}
.contact-card {
  flex: 1 1 260px;
  background-color: var(--card-bg);
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px var(--card-shadow);
}
.contact-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary);
}
.contact-card p {
  font-size: 16px;
  line-height: 1.4;
}
.contact-card a {
  color: var(--primary);
  text-decoration: underline;
}

.footer {
  background-color: var(--dark);
  color: var(--text-light);
}
.content-footer-wrap.dark {
  background-color: var(--dark);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 40px 20px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand-wrapper {
  flex: 1 1 60%;
}
.footer-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.text-footer {
  font-size: 36px;
  font-family: Rubik, sans-serif;
  color: var(--primary);
  margin-bottom: 12px;
}
.footer-brand-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text-light);
}
.footer-image-wrapper img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}
.footer-bottom-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-rights-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer-rights {
  font-size: 14px;
  color: var(--text-light);
}
.footer-rights a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-rights a:hover {
  color: var(--primary);
}
.footer-social-icons-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social-icon {
  border: 1px solid var(--text-light);
  border-radius: 40px;
  padding: 6px 12px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s, border-color 0.3s;
}
.footer-social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Override the .main-section for legal pages to align with the dark theme
 * The default .main-section from eggroad.css uses a light card. For the
 * privacy, terms and thank you pages we darken the background, reset
 * borders and adjust text colours. */
.main-section {
  background-color: var(--dark);
  border: none;
  border-radius: 0;
  padding-top: 120px;
  padding-bottom: 80px;
}
.main-section h1 {
  color: var(--primary);
  font-family: Rubik, sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
  text-align: center;
}
.main-section p {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 0 auto;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Additional styling to approximate the header, hero and footer from
   the contact and main pages. These rules mirror the dark navigation,
   overlay hero and multi-column footer used throughout Cluck & Care. */


/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.hero-image-content-block {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-top {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 160px 24px 40px;
  color: var(--text-light);
}
.hero-top-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  mix-blend-mode: normal;
}
.hero-sub-title {
  font-size: 18px;
  font-weight: 500;
}
.hero-title {
  font-size: 42px;
  font-weight: 700;
}
.hero-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.hero-bottom-left-descption-wrap {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 24px;
  max-width: 550px;
}
.hero-bottom-left-descption {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.hero-bottom-right-service-tag {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-service-tag {
  font-size: 14px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 50px;
  color: var(--text-light);
}
@media (max-width: 768px) {
  .hero-sub-title {
    font-size: 16px;
  }
  .hero-title {
    font-size: 32px;
  }
  .navbar {
  background-color: var(--gainsboro)!important;
  }
  .menu-wrap {
    gap: 20px;
  }
}
