.modal-content {
    width: min(720px, 90vw);
    max-height: 80vh;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    position: relative;
  
    display: flex;
    flex-direction: column;
  }
  
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
  
    padding: 20px 24px 16px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    flex-shrink: 0;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #111;
  }
  
  .modal-close {
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  
  .modal-close:hover {
    opacity: 0.65;
  }
  
  .modal-body {
    flex: 1 1 auto;
    min-height: 0;   /* 중요 */
    overflow-y: auto;
  
    padding: 24px 24px 28px;
  
    line-height: 1.7;
    color: #222;
  }
  
  .modal-body h3,
  .modal-body h4 {
    margin: 24px 0 12px;
  }
  
  .modal-body h3 {
    margin-top: 0;
  }
  
  .modal-body p,
  .modal-body li {
    font-size: 15px;
    word-break: keep-all;
  }
  
  .modal-body ul,
  .modal-body ol {
    padding-left: 20px;
  }
  
  .modal-body hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
  }
  
  .modal {
    display: none;
  }
  
  .modal.show {
    display: flex;
  }

  /* ===== Legal Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
  }
  
  .modal.show {
    display: flex;
  }
  
  .modal-content {
    width: min(720px, 90vw);
    max-height: 80vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  }
  
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #111;
  }
  
  .modal-close {
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  
  .modal-close:hover {
    opacity: 0.65;
  }
  
  .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 24px 28px;
    line-height: 1.7;
    color: #222;
  }
  
  .modal-body h3,
  .modal-body h4 {
    margin: 24px 0 12px;
  }
  
  .modal-body h3 {
    display: none;
  }
  
  .modal-body p,
  .modal-body li {
    font-size: 15px;
    word-break: keep-all;
  }
  
  .modal-body ul,
  .modal-body ol {
    padding-left: 20px;
  }
  
  .modal-body hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
  }