/* طبقة الجاهزية للنشر: لا تغيّر مقاسات سطح المكتب، وتفعّل الاستجابة والوصول على الشاشات الأضيق. */
.skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 1000;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  color: #0f2740;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #d9a94a;
  outline-offset: 2px;
}

.v-stage {
  position: relative;
}

.doc-open {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #8fc5ed;
  border-radius: 9px;
  background: rgba(15, 39, 64, .94);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 39, 64, .2);
}

.doc-open:hover {
  background: #163a61;
  border-color: #d9a94a;
}

.doc-open:focus-visible {
  outline: 3px solid #d9a94a;
  outline-offset: 2px;
}

.v-frame > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

.privacy-card {
  width: min(920px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 18px 22px;
  border: 2px solid #8fc5ed;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f4f9fd 100%);
  box-shadow: 0 8px 24px rgba(15, 39, 64, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #16324e;
  text-align: center;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f3fc;
  color: #0f4f7b;
  font-size: 12px;
  font-weight: 700;
}

.privacy-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
}

.privacy-note {
  max-width: 760px;
  margin: 0;
  color: #526273;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.privacy-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.privacy-item {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid #d5e5f1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
}

.privacy-label {
  display: block;
  margin-bottom: 3px;
  color: #697b8c;
  font-size: 11.5px;
  font-weight: 700;
}

.privacy-value {
  display: block;
  overflow-wrap: anywhere;
  color: #0f2740;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }

  .mf {
    height: auto !important;
    min-height: 100vh;
    padding: 6px !important;
  }

  .mf-frame,
  .frame {
    height: auto !important;
    min-height: calc(100vh - 12px);
    overflow: visible !important;
  }

  .mf-banner,
  .banner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px !important;
    row-gap: 8px !important;
  }

  .mf-banner > div:first-child,
  .banner > div:first-child {
    flex: 1 1 100% !important;
    justify-content: center !important;
    text-align: center;
  }

  .mf-moe-logo,
  .moe {
    position: static !important;
    left: auto !important;
    top: auto !important;
    order: 2;
    height: 32px !important;
    transform: none !important;
  }

  .mf-banner nav,
  .banner nav {
    order: 3;
    flex: 1 1 auto !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  .mf-content,
  .content {
    flex: none !important;
    min-height: 0;
    overflow: visible !important;
    padding: 12px 10px 8px !important;
  }

  .mf-profile-grid,
  .mf-section-grid,
  .chips,
  .ggrid,
  .grid,
  .warow {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }

  .ggrid {
    flex: none !important;
  }

  .grid,
  .warow {
    max-width: 640px;
  }

  .sub .t,
  .chip .ct {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .v-stage {
    flex: none !important;
    min-height: 70vh;
  }

  .v-frame,
  .v-frame.landscape,
  .v-frame.portrait {
    width: 100%;
    height: 70vh !important;
    min-height: 520px;
    aspect-ratio: auto !important;
  }

  .privacy-card {
    height: auto;
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .mf-banner,
  .banner {
    padding: 9px 8px !important;
  }

  .mf-banner nav,
  .banner nav {
    gap: 13px !important;
  }

  .mf-navlink,
  .navlink {
    font-size: 13px !important;
  }

  .b-title,
  .mf-banner h1 {
    font-size: 15px !important;
  }

  .mf-profile-grid,
  .mf-section-grid,
  .chips,
  .ggrid,
  .grid,
  .warow {
    grid-template-columns: 1fr !important;
  }

  .mf-card {
    min-height: 68px;
  }

  .wa,
  .sub {
    width: 100%;
    padding: 15px 14px 13px !important;
  }

  .v-frame,
  .v-frame.landscape,
  .v-frame.portrait {
    height: 68vh !important;
    min-height: 480px;
  }

  .privacy-card {
    min-height: 0;
    padding: 18px 13px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
