/* Standalone policy pages — same full-screen shell as in-app modals (e.g. Edit Profile) */

body.policy-standalone-page {
  background-color: var(--card-bg);
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
}

.policy-standalone-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--card-bg);
  box-shadow: none;
}

body.policy-standalone-page .policy-standalone-modal {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  z-index: 1 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
  padding-right: 14px !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  padding-left: 14px !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background-color: var(--card-bg) !important;
}

@media (min-width: 768px) {
  body.policy-standalone-page {
    background-color: #f0f2f5;
    padding-top: 12px;
  }

  .policy-standalone-shell {
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
  }

  body.policy-standalone-page .policy-standalone-modal {
    max-width: 930px !important;
    width: min(100%, 930px) !important;
    margin: 0 auto !important;
    min-height: 100dvh !important;
    border-radius: 24px 24px 0 0 !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    box-shadow:
      0 20px 50px rgba(16, 24, 40, 0.08),
      0 6px 16px rgba(16, 24, 40, 0.04) !important;
    padding-top: calc(24px + env(safe-area-inset-top, 0px)) !important;
    padding-right: 20px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 20px !important;
  }
}

a.filter-pill {
  text-decoration: none;
  color: inherit;
}

a.modal-close-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.policy-section-desc a {
  color: var(--primary-color);
  font-weight: 600;
}
