/* ============================================================
   MyHRManager — Legal Pages Styles
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', 'Tahoma', sans-serif;
  line-height: 1.75;
  color: #1a202c;
  background: #f7fafc;
  font-size: 16px;
  padding: 0;
  margin: 0;
}

/* Header */
.site-header {
  background: #1a202c;
  color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #d4af37;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo span {
  color: #fff;
  font-weight: 400;
}

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

.site-nav a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: #d4af37;
}

/* Main container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #d4af37;
}

.hero p {
  font-size: 18px;
  color: #cbd5e0;
  max-width: 600px;
  margin: 0 auto;
}

/* Main content */
.main {
  background: #fff;
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

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

.document h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #d4af37;
}

.document .meta {
  color: #718096;
  font-size: 14px;
  margin-bottom: 32px;
  font-style: italic;
}

.document h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-right: 12px;
  border-right: 4px solid #d4af37;
}

.document h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-top: 24px;
  margin-bottom: 12px;
}

.document p {
  margin-bottom: 16px;
  color: #2d3748;
}

.document ul,
.document ol {
  margin: 16px 0 16px 24px;
  padding-right: 12px;
}

.document li {
  margin-bottom: 10px;
  color: #2d3748;
}

.document strong {
  color: #1a202c;
  font-weight: 600;
}

.document a {
  color: #b8860b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.document a:hover {
  border-bottom-color: #b8860b;
}

/* Language section */
.lang-section {
  direction: rtl;
  text-align: right;
}

.lang-section.en {
  direction: ltr;
  text-align: left;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px dashed #e2e8f0;
}

.lang-section.en h1,
.lang-section.en h2 {
  padding-right: 0;
  padding-left: 12px;
  border-right: none;
  border-left: 4px solid #d4af37;
}

.lang-section.en ul,
.lang-section.en ol {
  margin: 16px 0 16px 0;
  padding-left: 24px;
  padding-right: 0;
}

/* Footer */
.site-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.site-footer a {
  color: #d4af37;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Landing page — cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #d4af37;
}

.card h3 {
  font-size: 20px;
  color: #1a202c;
  margin: 0;
}

.card p {
  color: #718096;
  margin: 0;
  font-size: 15px;
}

.card .arrow {
  color: #d4af37;
  font-weight: 600;
  margin-top: 8px;
}

/* Contact box */
.contact-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 32px;
}

.contact-box p {
  margin: 0;
  font-size: 15px;
}

.contact-box a {
  color: #b8860b;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header .container {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
    gap: 12px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero {
    padding: 50px 0;
  }

  .main {
    padding: 40px 0;
  }

  .document h1 {
    font-size: 24px;
  }

  .document h2 {
    font-size: 19px;
  }
}