/* ===================================================
   ORANGE THEME STYLESHEET
   Cleaned, Optimized & Orange-Enhanced
   =================================================== */

/* Global Styles */
:root {
  --primary: #111827;
  /* Dark Gray/Black for text/headings */
  --secondary: #F26522;
  /* Orange replaces old secondary */
  --accent: #d94e0f;
  /* Darker Orange accent tone */
  --gold: #F26522;
  /* Retaining var name for compatibility, but mapped to Orange */
  --gold-light: #ffcdb2;
  /* Light orange for subtle effects */
  --light: #f9f9f9;
  --dark: #111827;
  --gray: #6b7280;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Figtree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* Containers & Sections */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 20px;
  line-height: 1.2;
}

p {
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 101, 34, 0.3);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Handled in welcome.blade.php mainly */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3b4b60 100%);
  color: white;
  padding: 150px 0 100px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 101, 34, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), #ff8c5a);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.1), rgba(255, 140, 90, 0.05));
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.2), rgba(255, 140, 90, 0.1));
}

.service-icon i {
  font-size: 2.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: #d94e0f;
  text-shadow: 0 0 15px rgba(242, 101, 34, 0.4);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* Footer - Handled in welcome.blade.php mainly */
footer {
  background-color: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .support-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 80px;
  }

  section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Partners Section */
.partners {
  background: linear-gradient(180deg, #fff 0%, #fff6f2 100%);
  position: relative;
  overflow: hidden;
}

.partners::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.05) 0%, transparent 70%);
  animation: orange-glow 10s infinite alternate;
  z-index: 0;
}

@keyframes orange-glow {
  0% {
    transform: rotate(0deg);
    opacity: 0.4;
  }

  100% {
    transform: rotate(360deg);
    opacity: 0.8;
  }
}

.partners .section-title {
  position: relative;
  z-index: 2;
}

.partners .section-title h2 {
  color: var(--primary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.partner-logo {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(242, 101, 34, 0.1);
  position: relative;
  overflow: hidden;
}

.partner-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), #ff8c5a);
  transition: var(--transition);
}

.partner-logo:hover::after {
  left: 0;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%) brightness(0.8);
  transition: var(--transition);
  transform: scale(0.95);
}

.partner-logo:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(242, 101, 34, 0.2);
}

.partner-logo:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-grid {
    gap: 25px;
  }

  .partner-logo {
    height: 100px;
    padding: 20px;
  }
}


.support-section {
  background: linear-gradient(180deg, #fff, #fff6f2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.support-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.06) 0%, transparent 70%);
  animation: orange-glow 12s infinite alternate;
  z-index: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.support-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--secondary);
  background: rgba(242, 101, 34, 0.1);
  border-radius: 50%;
  padding: 12px;
}

.support-contacts {
  margin-top: 30px;
}

.support-contacts h4 {
  color: #222;
  font-weight: 600;
  margin-bottom: 15px;
}

.support-contacts ul {
  list-style: none;
  padding: 0;
}

.support-contacts li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.support-contacts a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.support-contacts a:hover {
  color: var(--secondary);
}

.support-form {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.support-form h3 {
  margin-bottom: 25px;
  color: #222;
}

.support-form .form-group {
  margin-bottom: 20px;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 5px rgba(242, 101, 34, 0.4);
  outline: none;
}

.btn-support {
  background: linear-gradient(90deg, var(--secondary), #ff8c5a);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-support:hover {
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-form {
    margin-top: 30px;
  }
}

.testimonials-section {
  background: linear-gradient(180deg, #fff6f2 0%, #fff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.06) 0%, transparent 70%);
  animation: orange-glow 15s infinite alternate;
  z-index: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 4px solid var(--secondary);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(242, 101, 34, 0.2);
}

.testimonial-content p {
  font-style: italic;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  color: #222;
  margin: 0;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: #777;
  margin: 3px 0 5px;
}

.stars i {
  color: var(--secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .testimonials-grid {
    gap: 25px;
  }
}



.about-section {
  background: linear-gradient(180deg, #fff, #fff6f2);
  padding: 100px 0;
  overflow: hidden;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 80%;
  max-width: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary);
  box-shadow: 0 8px 25px rgba(242, 101, 34, 0.25);
  transition: all 1s ease-in-out;
  animation: rotateBorder 15s linear infinite;
}


.about-content {
  flex: 1.2;
  animation: fadeSlide 1s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.about-content h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.about-content ul {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.about-content li {
  margin-bottom: 10px;
  color: #333;
}

@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    margin-top: 30px;
  }

  .about-image img {
    width: 60%;
  }
}

@media (max-width: 600px) {
  .about-image img {
    width: 80%;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }
}

/* ===================================================
   PRIVACY POLICY & TERMS OF SERVICE STYLES
   =================================================== */

/* Ensure policy pages scroll smoothly on mobile phone viewports */
html.policy-html,
body.policy-body {
  overflow: auto !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  -webkit-overflow-scrolling: touch !important;
}

.policy-body {
  font-family: 'Instrument Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header styles */
.policy-header-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(217, 88, 41, 0.08);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.policy-logo img {
  height: 38px;
  width: auto;
}

.policy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.policy-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff !important;
  background: var(--primary);
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(217, 88, 41, 0.25);
}

.policy-print-btn:hover {
  background: var(--primary-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 88, 41, 0.35);
}

.policy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1.5px solid rgba(217, 88, 41, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: transparent;
}

.policy-back-btn:hover {
  color: var(--primary);
  background: rgba(217, 88, 41, 0.05);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Banner */
.policy-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 2.25rem 5% 3.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.policy-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(30px);
}

.policy-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(40px);
}

.policy-banner h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: -0.5px;
}

.policy-proverb {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem;
  letter-spacing: 0.25px;
}

.policy-date {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
  font-weight: 500;
}

/* Document Layout Grid */
.policy-container {
  max-width: 1200px;
  margin: -2.25rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* TOC Sidebar styles */
.policy-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid #ffece5;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(217, 88, 41, 0.02);
}

.policy-toc {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-link {
  display: block;
  font-size: 0.84rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  border-left: 4px solid transparent;
}

.toc-link:hover {
  color: #d95829;
  background: rgba(217, 88, 41, 0.08);
}

.toc-link.active {
  color: #d95829 !important;
  background: rgba(217, 88, 41, 0.12) !important;
  border-left: 4px solid #d95829 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(217, 88, 41, 0.08);
}

/* Card container */
.policy-card {
  background: var(--white);
  border: 1px solid #ffece5;
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 15px 35px rgba(217, 88, 41, 0.03);
}

/* Content Typography */
.policy-card section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 100px;
}

.policy-card section:last-child {
  margin-bottom: 0;
}

.policy-card h2 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.65rem;
  border-bottom: 2px solid #ffece5;
  padding-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.policy-card h3 {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.policy-card p {
  color: var(--text-dark);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 0.65rem;
  opacity: 0.92;
}

.policy-card ul {
  margin: 0 0 0.65rem 1.15rem;
  padding: 0;
}

.policy-card li {
  color: var(--text-dark);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  opacity: 0.92;
}

.policy-card li strong {
  color: var(--primary-dark);
}

/* Print Media Query */
@media print {

  .policy-header-bar,
  .policy-banner,
  .footer-section,
  .policy-print-btn,
  .policy-back-btn,
  .policy-sidebar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .policy-container {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  .policy-layout {
    display: block;
  }

  .policy-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .policy-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {

  html.policy-html,
  body.policy-body {
    overflow: auto !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
  }

  .policy-header-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 4%;
  }

  .policy-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .policy-print-btn,
  .policy-back-btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    border-radius: 50px !important;
  }

  .policy-print-btn i,
  .policy-back-btn i {
    font-size: 0.75rem !important;
  }

  .policy-banner {
    padding: 1.75rem 5% 3rem;
  }

  .policy-banner h1 {
    font-size: 1.65rem;
  }

  .policy-proverb {
    font-size: 0.92rem;
  }

  .policy-container {
    margin: -1.75rem auto 3rem;
  }

  .policy-card {
    padding: 2.5rem 1.75rem;
  }

  .policy-card h2 {
    font-size: 1.3rem;
  }

  .policy-card p,
  .policy-card li {
    font-size: 0.98rem;
  }
}

/* Dark Mode Overrides for Policy & Terms pages */
html.dark .policy-header-bar,
html[data-theme="dark"] .policy-header-bar {
  background: #0b1120 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark .policy-back-btn,
html[data-theme="dark"] .policy-back-btn {
  color: #f8fafc !important;
  border-color: rgba(255, 120, 65, 0.4) !important;
}

html.dark .policy-back-btn:hover,
html[data-theme="dark"] .policy-back-btn:hover {
  color: #ff7841 !important;
  background: rgba(255, 120, 65, 0.12) !important;
  border-color: #ff7841 !important;
}

html.dark .policy-card,
html[data-theme="dark"] .policy-card,
html.dark .policy-sidebar,
html[data-theme="dark"] .policy-sidebar {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

html.dark .policy-card h2,
html[data-theme="dark"] .policy-card h2 {
  color: #ff7841 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .policy-card p,
html.dark .policy-card li,
html[data-theme="dark"] .policy-card p,
html[data-theme="dark"] .policy-card li {
  color: #cbd5e1 !important;
}

html.dark .policy-card li strong,
html[data-theme="dark"] .policy-card li strong {
  color: #ff7841 !important;
}

html.dark .toc-link,
html[data-theme="dark"] .toc-link {
  color: #94a3b8 !important;
}

html.dark .toc-link:hover,
html[data-theme="dark"] .toc-link:hover {
  color: #ff7841 !important;
  background: rgba(255, 120, 65, 0.12) !important;
}

html.dark .toc-link.active,
html[data-theme="dark"] .toc-link.active {
  color: #ff7841 !important;
  background: rgba(255, 87, 34, 0.22) !important;
  border-left: 4px solid #ff7841 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}