:root {
  --primary-color: #dd2323;
  --text-color: #333;
}

html {
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.language-switcher {
  text-align: right;
  margin-bottom: 20px;
}

.lang-link {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  text-decoration: none;
  color: var(--text-color);
  margin: 0 5px;
}

.lang-link:focus {
  outline: none;
}

.lang-link:active {
  color: var(--text-color);
}

.logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  max-width: 200px;
  height: auto;
}

.tabs-container {
  max-width: 800px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 30px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 18px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.tab-btn:focus {
  outline: none;
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-content {
  padding: 20px;
}

.content {
  display: none;
}

.content.active {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .tabs {
    gap: 10px;
  }

  .tab-btn {
    padding: 8px 20px;
    font-size: 16px;
  }

  .wave-decoration {
    margin: 20px -10px;
  }
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.policy-introduction,
.terms-introduction {
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: justify;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.policy-section ul {
  list-style-type: none;
  padding-left: 0;
}

.policy-section li {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
  padding-left: 1.5rem;
  position: relative;
}

.policy-section li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

[dir="rtl"] .policy-section li {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .policy-section li:before {
  right: 0;
  left: auto;
}

.terms-content {
  margin-top: 2rem;
}

.terms-main-content {
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: justify;
}

.terms-section {
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.terms-item {
  margin-bottom: 1.5rem;
}

.item-subtitle {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.item-content {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.subitems-list {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.subitems-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.subitems-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

[dir="rtl"] .subitems-list {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .subitems-list li {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .subitems-list li:before {
  right: 0;
  left: auto;
}

.wave-decoration {
  background-color: #e31e24;
  height: 100px;
  margin: 20px -20px;
}
