/* CSS Variables */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
}

/* Tagline Section */
.tagline-section {
  padding-bottom: 20px;
  padding-left: 20px;
}

/* Base Styles */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  max-width: 100%;
}

/* Override reset for range inputs */
input[type="range"] {
  margin: 10px 0 !important;
  padding: 0 !important;
}

input[type="range"]::-webkit-slider-thumb {
  margin-top: -6px !important;
  padding: 0 !important;
}

input[type="range"]::-moz-range-thumb {
  margin: 0 !important;
  padding: 0 !important;
}

/* Prevent horizontal overflow on all elements */
html {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all content containers respect viewport width */
.container, .left-panel, .right-panel, .header, 
.card, .form-group, .form-control, .btn,
.kpi-grid, .kpi-card, .goal-item, .goal-controls,
.tabs, .tab, .section, .section-title,
.modal-content, .toast, .scenario, .insight,
.plan-option, .export-buttons, .balance-meter,
.loan-details-container, .loan-item, .loan-fields,
.goal-chart-container, .pie-chart-wrapper, .pie-chart-metrics {
  max-width: 100%;
  box-sizing: border-box;
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  min-height: 100vh;
  color: #333;
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Mobile overflow prevention - extreme measures */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    /* Prevent iOS scroll behaviors */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    scroll-behavior: auto !important;
  }
  
  /* Enable pull-to-refresh and natural scrolling */
  body {
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: auto;
  }
  
  /* Nuclear option - force all elements to stay within viewport */
  * {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    scroll-behavior: auto !important;
  }
  
  /* EXCEPTION: Allow horizontal scrolling for tabs */
  .tabs {
    overflow-x: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Specifically target common overflow culprits (EXCEPT tabs) */
  div, section, header, main, article, aside, nav, footer,
  .container, .left-panel, .right-panel, .header, .card, 
  .form-group, .form-control, .tab, .kpi-grid, 
  .kpi-card, .goal-item, .balance-meter, .timeline-container {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* EXCEPTION: Don't force width on progress bars - let JavaScript control them */
  .progress-fill, 
  #financial-health-bar, 
  #expense-progress,
  .progress-container .progress-fill,
  .progress-bar .progress-fill {
    width: auto !important;
    max-width: none !important;
  }
  
  /* Disable smooth scrolling on mobile */
  html {
    scroll-behavior: auto !important;
  }
}

/* Container with sidebars and extended header background */
.container { 
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: white; 
  min-height: 100vh;
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: visible;
  box-shadow: none;
  display: grid;
  grid-template-columns: 180px 1fr 0.8fr 180px; /* Back to original 4-column layout */
  gap: 0;
  position: relative;
  box-sizing: border-box;
}

/* Ensure desktop layout is enforced on larger screens */
@media (min-width: 769px) {
  .container {
    grid-template-columns: 180px 1fr 0.8fr 180px !important;
    display: grid !important;
  }
  
  .ad-sidebar {
    display: block !important;
  }
  
  .mobile-nav {
    display: none !important;
  }
  
  .mobile-ad-container {
    display: none !important;
  }
}

/* Keep gradient background only for main content header area */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 180px; /* Start after left sidebar */
  right: 180px; /* End before right sidebar */
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1;
}

/* Ad Sidebars - Sticky within their grid area */
.ad-sidebar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 20px 10px;
  min-height: 100vh; /* Use min-height instead of fixed height */
  position: sticky; /* Sticky position instead of fixed */
  top: 0; /* Stick to top of viewport */
  width: 180px;
  z-index: 2;
  box-sizing: border-box;
  overflow-x: hidden; /* Hide horizontal scrollbars */
  overflow-y: auto; /* Allow vertical scrolling if needed */
  align-self: start; /* Align to start of grid area */
}

.left-ad {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.right-ad {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-container {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  color: #6c757d;
  font-size: 0.85rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ad-container:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ad-container.vertical {
  min-height: 600px;
  width: 160px;
  writing-mode: horizontal-tb;
  margin: 10px 0;
}

/* Go to top button */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  z-index: 1000;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top:hover {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.go-to-top:active {
  transform: translateY(0);
}

/* Panels */
.left-panel {
  padding: 30px;
  overflow-y: auto; /* Independent vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scrollbars */
  height: 100vh; /* Fixed height to enable independent scrolling */
  position: sticky;
  top: 0;
  background: #fafbff;
  z-index: 2;
  box-sizing: border-box;
}

.right-panel {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-left: 1px solid #dee2e6;
  overflow-y: auto; /* Independent vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scrollbars */
  height: 100vh; /* Fixed height to enable independent scrolling */
  position: sticky;
  top: 0;
  z-index: 2;
  box-sizing: border-box;
}

/* Header */
.header {
  margin-bottom: 30px;
  text-align: left;
  padding: 25px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  z-index: 3;
}

.header h1 { 
  font-size: 2.2rem; 
  margin-bottom: 10px; 
}

.header p { 
  font-size: 1rem; 
  opacity: 0.9;
  margin-top: -10px;
}

.header svg {
  margin: -10px 0 0 0;  
  display: block;
}

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

.support-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  min-width: 70px;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.support-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.support-button i {
  font-size: 1.2rem;
  color: #ff6b9d;
}

.support-button span {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section { 
  margin-bottom: 25px; 
}

.section-title { 
  font-size: 1.3rem; 
  font-weight: bold; 
  margin-bottom: 15px; 
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title i {
  margin-right: 10px;
  color: var(--primary);
}

.info-icon {
  color: #6c757d;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Cards */
.card { 
  background: #f8f9fa; 
  border-radius: 10px; 
  padding: 25px; 
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Forms */
.form-row { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px; 
  margin-bottom: 20px; 
}

.form-group { 
  margin-bottom: 15px; 
}

.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  color: #6c757d; 
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control { 
  width: 100%; 
  padding: 12px 15px; 
  border: 1px solid #ced4da; 
  border-radius: 6px; 
  font-size: 15px;
  transition: all 0.3s;
}

.form-control:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Currency dropdown with caret moved left from right edge */
#currency-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Buttons */
.btn { 
  background: var(--primary); 
  color: white; 
  border: none; 
  padding: 12px 20px; 
  border-radius: 6px; 
  font-size: 14px; 
  cursor: pointer;
  margin: 3px;
  transition: all 0.3s;
}

.btn:hover { 
  background: #5a67d8; 
  transform: translateY(-2px); 
  box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
}

.btn-sm { 
  padding: 10px 16px; 
  font-size: 13px; 
}

.btn-secondary { background: #6c757d; }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #212529; }
.btn-info { background: var(--info); }
.btn-danger { background: var(--danger); }

/* Progress bars */
.progress-container {
  margin: 15px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ADD this CSS to your main.css or components.css */

  /* Enhanced Balance Modal Styles */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  }

  .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
  }

  /* Plan option hover effects */
  .plan-option {
    transition: all 0.3s ease !important;
  }

  .plan-option:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
  }

  .plan-option.selected {
    border-color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.05) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }

  /* Checkbox styling */
  .plan-checkbox {
    accent-color: var(--primary);
    cursor: pointer;
  }

  /* Button styling */
  .btn {
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
  }

  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .btn:active {
    transform: translateY(0);
  }

  /* Scrollbar styling for modal */
  .modal-content ::-webkit-scrollbar {
    width: 6px;
  }

  .modal-content ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .modal-content ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }

  .modal-content ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  /* Responsive design */
  @media (max-width: 768px) {
    .modal {
      padding: 10px;
    }
    
    .modal-content {
      max-height: 90vh;
      padding: 15px;
    }
    
    .plan-metrics {
      grid-template-columns: 1fr 1fr !important;
    }
    
    .plan-option {
      padding: 12px !important;
      margin-bottom: 8px !important;
    }
  }

  @media (max-width: 480px) {
    .plan-metrics {
      grid-template-columns: 1fr !important;
    }
    
    .btn {
      padding: 8px 12px !important;
      font-size: 0.9rem;
    }
  }

/* Simple Clean About & Legal Styles */
.about-card, .legal-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-content {
  display: block;
}

.about-text h4 {
  color: #2c3e50;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-text h4 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-text p {
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.key-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item span {
  color: #4a5568;
}

.feature-item strong {
  color: #2c3e50;
  font-weight: 600;
}

.quick-links {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #cbd5e1;
  margin-top: 20px;
}

.quick-links h5 {
  color: #2c3e50;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 10px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border-radius: 4px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
}

.quick-link:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-color: var(--primary);
}

.quick-link i {
  font-size: 0.9rem;
  width: 14px;
}

/* Simple Legal Section */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.disclaimer-box {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  color: #92400e;
}

.disclaimer-box i {
  font-size: 1.3rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-box strong {
  color: #78350f;
  font-size: 1rem;
  font-weight: 600;
}

.disclaimer-box p {
  margin: 8px 0 0 0;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #a16207;
}

.legal-links-section h5 {
  color: #2c3e50;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.legal-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.legal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.2s ease;
}

.legal-link:hover {
  background: white;
  border-color: var(--primary);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.legal-link i {
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.legal-link div {
  flex: 1;
}

.legal-link strong {
  font-size: 0.9rem;
  color: #2c3e50;
  margin-bottom: 2px;
  display: block;
  font-weight: 600;
}

.legal-link small {
  font-size: 0.8rem;
  color: #7c8ba1;
  line-height: 1.4;
}

.copyright-section {
  text-align: center;
  padding: 20px;
  background: #f1f5f9;
  border-radius: 6px;
  margin-top: 20px;
  border: 1px solid #cbd5e1;
}

.copyright-text p {
  margin: 6px 0;
  font-size: 0.9rem;
}

.copyright-text p:first-child {
  font-weight: 600;
  color: #2c3e50;
}

.copyright-text p:last-child {
  color: #64748b;
  font-style: italic;
}

.version-info {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-style: italic;
}

/* Simple Responsive Design */
@media (max-width: 768px) {
  .key-features {
    grid-template-columns: 1fr;
  }
  
  .legal-links-grid {
    grid-template-columns: 1fr;
  }
  
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-card, .legal-card {
    padding: 18px;
  }
  
  .disclaimer-box {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .disclaimer-box i {
    align-self: center;
    margin-bottom: 8px;
  }
}

/* Legal Modal Styles */
.legal-modal-content {
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.legal-modal-body {
  padding: 20px;
  line-height: 1.6;
}

.legal-modal-body h3 {
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.legal-modal-body h4 {
  color: #495057;
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
}

.legal-modal-body p {
  margin-bottom: 12px;
  color: #6c757d;
}

.legal-modal-body p strong {
  color: #495057;
}

.legal-modal-body ul {
  margin: 10px 0 10px 20px;
}

.legal-modal-body li {
  margin-bottom: 5px;
  color: #6c757d;
}

/* Responsive legal modal */
@media (max-width: 768px) {
  .legal-modal-content {
    margin: 20px 10px;
    max-width: calc(100vw - 20px);
    max-height: 85vh;
    margin-top: 40px;
  }
  
  .legal-modal-body {
    padding: 15px;
  }
  
  .legal-modal-body h3 {
    font-size: 1.3rem;
  }
  
  .legal-modal-body h4 {
    font-size: 1rem;
  }

  /* Ensure modal header is always visible on mobile */
  .legal-modal-content .modal-header {
    padding-bottom: 10px;
    margin-bottom: 15px;
    flex-shrink: 0;
  }

  .legal-modal-content .modal-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .legal-modal-content .close-modal {
    font-size: 1.8rem;
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
  }

  .legal-modal-content .close-modal:hover,
  .legal-modal-content .close-modal:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
  }

  /* Mobile responsive legal links grid */
  .legal-links-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .legal-link {
    padding: 12px !important;
    min-height: 60px !important;
  }

  .legal-link i {
    font-size: 1.4rem !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    width: 2rem !important;
    text-align: center !important;
  }

  .legal-link strong {
    font-size: 0.95rem !important;
  }

  .legal-link small {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  .legal-link > div {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* Extra small mobile screens - ensure modal header is never trimmed */
@media (max-width: 480px) {
  .legal-modal-content {
    margin: 30px 5px;
    max-width: calc(100vw - 10px);
    max-height: 80vh;
    margin-top: 50px;
  }

  .legal-modal-content .modal-header {
    padding: 10px 0;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .legal-modal-content .modal-title {
    font-size: 1.1rem;
    padding-right: 10px;
    line-height: 1.3;
  }

  .legal-modal-body {
    padding: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-modal-content .close-modal {
    font-size: 1.6rem;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: normal;
    background-color: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
  }

  .legal-modal-content .close-modal:active {
    background-color: rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
  }
}